# Cursor (https://inference.net/docs/integrations/cursor)

Cursor supports custom API keys for standard chat models and exposes an OpenAI
base URL override in its Models settings.

<Callout title="Feature limits apply" tone="info">

Cursor documents custom API keys for standard chat models. Specialized
features such as Tab Completion can continue using Cursor's built-in models and
billing even when a custom chat key is enabled.

</Callout>

## Configure Cursor manually

<Steps>
  <Step title="Create a project key">

Create a key in [API keys](/dashboard/api-keys/) and keep it available while you
configure Cursor. Do not paste the key into project files or Cursor rules.

  </Step>
  <Step title="Enter the key in Cursor">

Open **Cursor Settings → Models → API Keys**. Turn on the **OpenAI API key**
toggle to enable custom API key use, then enter the [Inference.net project
key](/dashboard/api-keys/) in the **OpenAI API key** field.

  </Step>
  <Step title="Override the OpenAI base URL">

Turn on the **Override OpenAI base URL** toggle and set the OpenAI base URL
override to:

```text
https://api.inference.net/v1
```

  </Step>
  <Step title="Add your model">

Add a standard chat model ID from the [model catalog](/models/) to Cursor's
model list. Some models already appear in Cursor's list — for those, toggle
the model on instead of adding it.

  </Step>
  <Step title="Send a test prompt">

Start a new standard chat with the custom model. After the response completes,
confirm its spend and tokens in [Usage](/dashboard/usage/).

  </Step>
</Steps>

## CLI availability

The released `fast` CLI does not currently register `fast cursor on`. Manual
setup is not tracked by the CLI, and `fast cursor off` cannot restore your prior
Cursor settings.

## Revert the manual setup

Return to **Cursor Settings → Models → API Keys**. Turn off the **OpenAI API
key** toggle or remove the custom key, turn off the **Override OpenAI base
URL** toggle, and reselect the Cursor-managed model you used previously.

<Callout title="Do not revoke a shared key accidentally" tone="warning">

Removing the key from Cursor does not revoke it in Inference.net. Revoke it from
the API Keys dashboard only when no other application uses that key.

</Callout>

## Troubleshooting

- **Requests fail with the custom base URL** — include `/v1` in the base URL
  override.
- **Cursor rejects the selected model** — use a model supported by Cursor's
  standard chat custom-key flow.
- **Chats keep using the old endpoint or model** — start a new chat after
  changing either one.
- **If the test prompt fails** — test the same key and model with the
  [getting-started request](/docs/getting-started/) to separate gateway and
  Cursor configuration issues.