Integrate Cursor

Connect Cursor to TokenCode through the unified OpenAI-compatible endpoint.

Configure Cursor

Install Cursor, open Cursor Settings, and go to Models. Enable OpenAI API Key and Override OpenAI Base URL, then enter:

Setting Value
API key Your TokenCode API key
Base URL https://tokencode.dev/v1
Model A model ID from the TokenCode model list

Save the settings, disable Auto in the chat panel, and select the model you added.

Verify the setup

Open a project and ask Cursor Chat to confirm the connection. A normal response means the configuration is active.

Troubleshooting

The custom model is unavailable

Messages about the current plan or API key can mean your Cursor plan does not support custom models. Use Cursor Pro or another plan that provides this feature.

Connection failed or Unauthorized

Verify that the Base URL includes /v1, the API key is complete, and the model ID exists in TokenCode. If the name conflicts with a built-in Cursor model, configure and use a model alias in TokenCode.