# Cursor

[Cursor](https://cursor.com) is an AI editor based on VS Code. Cursor has many restrictions on third-party APIs, so **we recommend installing the Claude Code or Codex extension in Cursor** to use BeeRoute. The experience is exactly the same as in VS Code.

## Option 1: Install the Claude Code / Codex Extension (Recommended)

Cursor is compatible with VS Code extensions. After installing one, configure it by following the corresponding tutorial:

| Extension | Group | Setup tutorial |
| :--- | :--- | :--- |
| Claude Code | `ClaudeCode` | [Claude Code tutorial](agent/claude-code.md), section "Use in VS Code, Cursor, and Other Editors" |
| Codex | `CodeX` | [Codex tutorial](agent/codex.md), section "IDE Extensions and ChatGPT Desktop App" |
| Cline | `default` | [Cline tutorial](agent/cline.md) |
| Kilo Code | `default` | [Kilo Code tutorial](agent/kilo-code.md) |

## Option 2: Use Cursor's Built-In Override OpenAI Base URL (Limited)

Cursor's settings include an **Override OpenAI Base URL** option that sends OpenAI-format requests to BeeRoute. Before using it, be aware of these limitations:

- A paid Cursor plan is required to use a custom API key;
- It only applies to chat and Agent. **Tab completion still uses Cursor's own models**;
- All requests are relayed through Cursor's servers;
- Cursor treats model names starting with `claude-` as Anthropic models, and they do **not** go through this URL. This option is therefore only suitable for models such as GPT, DeepSeek, Kimi, GLM, and Qwen;
- Once enabled, Cursor's built-in OpenAI models are also sent to this URL;
- This option does not appear in Cursor's official documentation, and its behavior may change between versions.

Setup steps:

1. Open Cursor Settings → **Models** → **API Keys**.
2. Turn on **OpenAI API Key** and enter your BeeRoute key (`default` group).
3. Turn on **Override OpenAI Base URL** and enter `https://beeroute.ai/v1`.
4. Add a custom model to the model list using a model ID from BeeRoute, for example `gpt-6.2-sol`, `deepseek-flash`, or `kimi-k3.1-pro`.
5. Select that model in chat or Agent to test it.

To use Claude models in Cursor, use Option 1.

Reference: Cursor official documentation, [API Keys](https://cursor.com/docs/settings/api-keys).
