> ## Documentation Index
> Fetch the complete documentation index at: https://doc.onetoken.one/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor

***

## Use a third-party API in Cursor (OpenAI / Anthropic)

Cursor lets you bring your own API key so you can spend your own quota (e.g. DeepSeek or a relay) instead of Cursor subscription limits.

***

## Step 1: Enable API mode

1. Open **Cursor**.
2. Open settings:
   * Click the **gear (Cursor Settings)** in the upper right.
   * Or press `Ctrl + Shift + J` (Windows/Linux) / `Cmd + Shift + J` (macOS).

<img src="https://mintcdn.com/onetoken-9a3c590a/KFIRj5hibFTyL0AW/images/cursor/1.png?fit=max&auto=format&n=KFIRj5hibFTyL0AW&q=85&s=e449369ba69d254dc362555371cd3ae5" width="950" height="604" data-path="images/cursor/1.png" />

3. In the sidebar or window, open **General** or **Models**.
4. Enable the OpenAI API key field and paste your token.
5. Enable **Override OpenAI Base URL** and set `https://onetoken.one/v1`

<img src="https://mintcdn.com/onetoken-9a3c590a/KFIRj5hibFTyL0AW/images/cursor/2.png?fit=max&auto=format&n=KFIRj5hibFTyL0AW&q=85&s=3c3847645a382435edbe84d01cd4cf2d" width="1742" height="974" data-path="images/cursor/2.png" />

## Step 2: Manage models

To make sure Cursor calls the right models, enable or add them in settings.\
Names **must not** collide with Cursor’s built-ins—pick models from the **Cursor** category in the model hub.

1. Find the **Models** section in the same settings page.
   <img src="https://mintcdn.com/onetoken-9a3c590a/KFIRj5hibFTyL0AW/images/cursor/5.png?fit=max&auto=format&n=KFIRj5hibFTyL0AW&q=85&s=4a50a2538648413e56f300145e115cc8" width="1682" height="490" data-path="images/cursor/5.png" />

2. **Toggle on** the models you need (e.g. `gpt-4o`, `claude-3-5-sonnet`).

3. **Add custom models**: e.g. for DeepSeek, click **+ Add Model**.
   <img src="https://mintcdn.com/onetoken-9a3c590a/KFIRj5hibFTyL0AW/images/cursor/3.png?fit=max&auto=format&n=KFIRj5hibFTyL0AW&q=85&s=d813ebf0d9f09b7552bc2d10be7138c0" width="1304" height="304" data-path="images/cursor/3.png" />

4. Enter the exact model id (e.g. `deepseek-chat` or `deepseek-reasoner`).
   <img src="https://mintcdn.com/onetoken-9a3c590a/KFIRj5hibFTyL0AW/images/cursor/4.png?fit=max&auto=format&n=KFIRj5hibFTyL0AW&q=85&s=afaf0a2a8b14a383b4a52e43c4000bd9" width="1236" height="298" data-path="images/cursor/4.png" />

***

## Step 3: Use it in the editor

1. Back in the editor.
2. `Ctrl + L` (Chat) or `Ctrl + K` (Edit).
3. In the **model dropdown** at the bottom of the input, choose your third-party model.
4. **Note**: With your own key, some Cursor-only optimizations may differ; quality depends on the API you selected.

***

## Troubleshooting

| Symptom             | Fix                                                                        |
| :------------------ | :------------------------------------------------------------------------- |
| **Verify failed**   | Base URL should end at `/v1`, not `/chat/completions`.                     |
| **No reply**        | Check third-party balance / quota.                                         |
| **Built-in models** | With BYOK, Cursor usually bills your key first, not the subscription pool. |

***
