Cursor
Cursor takes an OpenAI-compatible key and base URL in its own settings. Add each model you want under its opencheap/ name and pick it in the chat.
What you need
Set it up
- 1Open Cursor Settings, then Models.
- 2Under OpenAI API Key, paste your key.The key from the console.
- 3Turn on Override OpenAI Base URL, paste the URL and click Verify.
https://api.opencheap.si/v1 - 4Click Add Custom Model, type the name as it is here (opencheap/ and the model id), and enable it.For example
opencheap/claude-sonnet-5: opencheap/ and any id from the Models page. - 5Pick it in the chat's model menu.
Keep the opencheap/ in front of the model id: Cursor keeps names that start with claude- for its own Anthropic connection and answers "Model name is not valid", so a plain claude-sonnet-5.5 never reaches the base URL. OpenCheap accepts opencheap/ in front of every model id.
What Cursor does with your key
Cursor's documentation says your own keys work for chat models only; Tab completion keeps using Cursor's built-in models. It also says requests made with them are routed through Cursor's servers, so the base URL must be reachable from the internet: OpenCheap's is, a proxy on localhost is not.
When it does not answer
- "Model name is not valid": the name starts with claude-. Add it as
opencheap/claude-sonnet-5. - 401 invalid_api_key: the key under OpenAI API Key is not an OpenCheap key, or was revoked. Paste it again from the console.
- 404 not_found: the base URL is not
https://api.opencheap.si/v1exactly (no/v1,/v1twice, or a full request URL). - 402 insufficient_balance: top up in the console, or pick a cheaper model.
What was checked
The steps are the ones the console shows when you create a key. Cursor's limits are from its own documentation (cursor.com/docs/settings/api-keys), read on November 17, 2026. The error answers were read from the live API the same day.