Docs · Apps · Coding

Cursor

Use TokenHaven models in Cursor's chat and agent.

All apps
WhereCursor Settings → Models → OpenAI

You’ll need an API key. Create one in Dashboard → API keys and give it a monthly limit if the app is shared.

  1. 01

    Open the model settings

    In Cursor, open Settings and go to Models.

  2. 02

    Add your key

    In the OpenAI section, paste your TokenHaven key into API Key and press Enter, then turn on Use API Key.

  3. 03

    Override the base URL

    Turn on the Base URL override and enter the TokenHaven base URL.

    Base URL
    https://api.tokenhaven.ai/v1
  4. 04

    Add the models you want

    Add a custom model and type a TokenHaven model id exactly as it appears on your Models page, then pick it in a new chat.

    Model
    anthropic/claude-sonnet-4.5

Good to know

  • Cursor's own features, such as Tab completion, keep using Cursor's models. Your key is used for chat and agent requests with the models you add.
  • What a custom key can be used for depends on your Cursor plan.

Cursor’s own docs · Model ids are on the models page.