Cursor allows developers to override the default OpenAI Base URL to route inline completions, chat, and Composer through custom infrastructure.
Cursor Settings Setup
- Open Cursor and press
Cmd + ,(orCtrl + ,) to open Settings. - Navigate to Cursor Settings → Models.
- Under OpenAI API Key, click to enable custom configuration:
- OpenAI API Key: Enter your Toknix key (
tk_live_...). - Override OpenAI Base URL: Enter
https://api.toknix.in/v1
- OpenAI API Key: Enter your Toknix key (
Adding Custom Model IDs
In Cursor's Model list, click + Add Model and input any model ID from the Toknix catalog:
gpt-6-astraclaude-opus-5-5deepseek-v4.1-flashkimi-k3
Verification
Open Cursor Chat (Cmd + L) and ask a test question. Check GET /v1/usage in your terminal to verify that Cursor requests are successfully logging against your Toknix balance.