Use Cursor with Shannon
Put your Shannon key in Cursor's OpenAI key field, override the OpenAI base URL, and add the Shannon model id as a custom model.
- From the Cursor docs, Nov 7, 2026
- OpenAI Chat Completions
- About 3 min
About Cursor
Cursor is an AI code editor built on VS Code, and many VS Code extensions work in it. Its Agent edits several files, runs terminal commands and fixes errors, with Ask, Plan and Debug modes beside it. With the Shannon key and base URL in its settings, Cursor's chat and Agent run on the Shannon model you add.
What you need
- A Shannon API key
- Keys & usage
- Base URL
-
https://api.shannon-ai.com/v1Endpoint:/v1/chat/completions - Every snippet below follows your choice.
Set it up
-
Enter the key and the base URL
Open Cursor Settings → Models and find the API keys. Paste your Shannon key into OpenAI API Key and turn it on. Turn on Override OpenAI Base URL and enter the URL with
/v1and nothing after it.Cursor Settings → ModelsOpenAI API Key: YOUR_API_KEY Override OpenAI Base URL: https://api.shannon-ai.com/v1 -
Add the Shannon model
In the model list on the same page, add a custom model with the exact Shannon id and switch it on.
Custom modelKimi-K3-uncensored-NVFP4 -
Pick it in chat
Choose the model in the chat panel's model picker. Cursor sends your requests through its own servers, which then call Shannon.
Check that it works
Send: What does this project do?
You should see: Cursor reads your files and answers with the Shannon model selected in the picker.
Models that fit Cursor
Every id below meets what Cursor needs. The first one is the default in the snippets.
| Model id | Context window | Max output | Image input |
|---|---|---|---|
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
Kimi-K3.1-Pro-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
MiMo-V2.6-Pro-uncensored-NVFP4 | 1,022,976 | 131,072 | Yes |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | Yes |
shannon-3 | 196,608 | 65,536 | Yes |
Good to know
- Cursor's API keys page covers provider keys only. Override OpenAI Base URL is not described there; Cursor staff explained its behaviour on the Cursor forum in September 2026.
- The OpenAI key and the override apply to every model that is not a Claude or Gemini model, including Cursor's own Composer and Grok. With the key on, those models are rejected.
- "Custom API keys only work with chat models": Tab completion keeps using Cursor's built-in models.
- Cursor's docs describe your own OpenAI key for "standard, non-reasoning chat models"; how Agent mode treats other models behind the override is not documented.
- On Teams and Enterprise plans, Cursor adds its Cursor Token Rate ($0.25 per million tokens) to requests made with your own key. Individual plans pay only Shannon.
- Cursor's Zero Data Retention policy does not cover requests made with your own key.
Tips
- Put project rules in
.cursor/rules/as.mdcfiles, or in anAGENTS.mdat the root or in subfolders;/create-rulein Agent writes a rule for you. Shift+Tabrotates between the Agent modes; Ask is read-only, for questions about the codebase, and Plan writes a plan before any code.Cmd+/(Ctrl+/on Windows and Linux) loops through your models, a quick way to switch to the Shannon model and back.- Type
@in the chat input to attach context such as files, terminals, earlier chats, a commit or a branch. - Add MCP servers in
.cursor/mcp.jsonfor one project or~/.cursor/mcp.jsonfor all of them; Cursor asks before it uses an MCP tool.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| "This model does not support custom API keys" | The OpenAI key is on and a Cursor model such as Composer or Grok is selected. | Pick the Shannon model, or turn the OpenAI key off in Cursor Settings → Models to use Cursor's models. |
404 Not Found | The base URL lacks /v1 or ends in /chat/completions; Cursor adds the path itself. | Use exactly https://api.shannon-ai.com/v1. |
401 Unauthorized | The key is missing, mistyped or rotated. | Copy the key again from Keys & usage; it starts with sk-. |
context_length_exceeded / "prompt is too long" | The conversation is longer than the model's window. | Start a new chat, let the tool compact it, or pick a model with a larger window. |
insufficient_quota | Your balance cannot pay for the request. | Top up or change plan; the request is not retried by itself. |
Questions
Does Cursor work with Shannon?
Yes, for chat models: Shannon's key goes in OpenAI API Key, https://api.shannon-ai.com/v1 in Override OpenAI Base URL, and the Shannon id is added as a custom model.
Does my key pass through Cursor?
Yes. Cursor routes every request through its servers to build the final prompt. The key is sent with each request and is not stored there.
Can Tab completion use Shannon?
No. Tab completion always uses Cursor's built-in models.