DocsTool guidesCursor
Cursor
The AI code editor. Add ACCTOKEN as a custom OpenAI endpoint for Chat. Tab completion keeps using Cursor’s own models.
Root URLhttps://intl.acctoken.com+ /v1https://intl.acctoken.com/v1Full paththe whole endpoint, e.g. https://intl.acctoken.com/v1/chat/completions
Before you start
- An ACCTOKEN API key. Create one on API Keys in the console.
- Cursor installed and signed in.
01Connection details
- Format
- OpenAI Chat Completions
- Base URL
https://intl.acctoken.com/v1+ /v1- API key
YOUR_API_KEYin the OpenAI API Key field- Model
deepseek-v4.1-flashadded as a custom model- Where
- Cursor Settings → Models
02Set it up
- Open Cursor Settings and go to Models.
- Under API Keys, paste your key into OpenAI API Key.
- Turn on Override OpenAI Base URL and enter
https://intl.acctoken.com/v1. - Add a custom model with the exact model ID, for example
deepseek-v4.1-flash, and switch it on. - Choose that model in Chat.
Good to know
- Cursor sends these requests from its own servers, so the base URL has to be reachable from the internet.
intl.acctoken.comis. - While the override is on, Cursor sends its OpenAI-type models to this URL, its built-in ones included. Turn it off to go back to Cursor’s own models.
- Tab completion always uses Cursor’s own models.
- This setup covers Chat in Ask mode.
03Check it works
Send a short message in Chat with the model selected. A reply means the key, URL and model all work. If not, try the same values with the cURL command in Quickstart to see whether the problem is in Cursor or in the values.
Common problems
Invalid token
Paste the key into OpenAI API Key again; make sure all of it was copied.
No available channel for model … (distributor)
The custom model name does not match a model ID. Copy the ID from the Models page.
Unexpected token '<', or an HTML page
The base URL is missing /v1. Use https://intl.acctoken.com/v1.
Something else? Look up the exact message in Errors.