Cursor
Cursor is an AI-native code editor that connects to AutoRouter via an OpenAI-compatible API
Cursor
Cursor is an AI-native code editor built on VS Code, with built-in AI chat, code completion, and Agent mode. By configuring an OpenAI-compatible endpoint, you can point Cursor at AutoRouter and use any model distributed through your AutoRouter gateway.
- Website: https://www.cursor.com/cn
- Documentation: https://docs.cursor.com
Only Cursor Pro and above support custom models. Free plans will result in errors.
📦 Prerequisites
What you'll need
- Cursor installed (Pro subscription or above)
- An AutoRouter endpoint (must end with
/v1) - An AutoRouter API key (generated in the console)
- A model ID exactly matching one exposed by your AutoRouter console (e.g.
claude-sonnet-4-6,gpt-5.4)
🚀 Configuration Steps
1. Install Cursor
Download and install from the Cursor website.
2. Open Model Settings
In Cursor, click the settings icon → Cursor Settings → Models.
3. Set API Key and Base URL
- Enable OpenAI API Key and enter your AutoRouter API key.
- Enable Override OpenAI Base URL and enter your AutoRouter endpoint, for example:
https://autorouter.top/v1
4. Add Models
In Add or search model, enter the model name and click Add Custom Model.
Some model names require aliases in Cursor:
| Actual Name | Use in Cursor |
|---|---|
kimi-k2.5 | kimi-k2-5 |
glm-4.7 | glm-4-7 |
| Other models | Same as the model ID in your AutoRouter console |
5. Start Using
Select the model from the chat panel to begin.
If you cannot find the added model, turn off Auto mode in the chat panel, then select from the dropdown list.
❓ Common Issues
The model xxx does not work with your current plan or api key.
You are on the Cursor free plan, which does not support custom models. Upgrade to Cursor Pro or above.
We're having trouble connecting to the model provider. or Unauthorized
- Verify the API key is correct and the Base URL ends with
/v1. - Model name conflicts:
glm-4.7andkimi-k2.5conflict with Cursor built-in model names — use the aliases listed above. - The model ID must exactly match the name exposed in your AutoRouter console.