> ## Documentation Index
> Fetch the complete documentation index at: https://docs.link-token.farhr.com/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/linktoken/gqi3se8Hxx4jF5Uf/images/cursor/1.png?fit=max&auto=format&n=gqi3se8Hxx4jF5Uf&q=85&s=9ab308598af9d4b9449317a4a0367587" 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://link-token.cn/v1`

<img src="https://mintcdn.com/linktoken/gqi3se8Hxx4jF5Uf/images/cursor/2.png?fit=max&auto=format&n=gqi3se8Hxx4jF5Uf&q=85&s=6ff093161cfe6e25d6a86b3b606920f7" 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/linktoken/gqi3se8Hxx4jF5Uf/images/cursor/5.png?fit=max&auto=format&n=gqi3se8Hxx4jF5Uf&q=85&s=71db8ddd2c651dab422692d6e81f1f26" 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/linktoken/gqi3se8Hxx4jF5Uf/images/cursor/3.png?fit=max&auto=format&n=gqi3se8Hxx4jF5Uf&q=85&s=4d7467cb487ac1b9b543c4cd1101ded3" 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/linktoken/gqi3se8Hxx4jF5Uf/images/cursor/4.png?fit=max&auto=format&n=gqi3se8Hxx4jF5Uf&q=85&s=1bd3c5eb0d75b5d80b7d9515edd949bb" 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. |

***
