Skip to main content
Connecting Cursor to BetterToken requires configuring the API endpoint and manually adding your preferred models.

Prerequisites

Custom model configuration requires a Cursor Pro subscription. On the free plan you’ll see:The model does not work with your current plan or api keyAlso clear any conflicting env vars before starting:
unset OPENAI_API_KEY
unset OPENAI_BASE_URL

Setup

1

Open the model settings

In Cursor, click Settings (gear icon, bottom left), then select the Models tab.
2

Configure the BetterToken API

Under API Keys:
  1. Check Override OpenAI Base URL
  2. Enter: https://www.bettertoken.com/v1
  3. Enter your BetterToken API Key in the OpenAI API Key field
  4. Click the button on the right and select Enable OpenAI API Key to verify
3

Add models

Under Models:
  1. Click View All ModelsAdd Custom Model
  2. Enter a model name, for example:
    • Claude: claude-sonnet-4-5, claude-opus-4-5, claude-haiku-4-5
    • GPT: gpt-4o, gpt-4o-mini
  3. Click Add, then enable the model
Unlike Claude Code and Codex, Cursor requires you to explicitly specify which model to use.
4

Select a model and start

In the Cursor chat panel, choose your added model from the dropdown to start coding.

Supported models

SeriesModelDescription
Claudeclaude-sonnet-4-5Balanced — recommended for everyday coding
Claudeclaude-opus-4-5Most capable — best for complex tasks
Claudeclaude-haiku-4-5Fastest — best for simple completions
GPTgpt-4oOpenAI flagship
GPTgpt-4o-miniLightweight, faster responses

Troubleshooting

Model returns no content: Try changing Settings → Network to HTTP/1.0. Authentication error: Check that the API Key is correct and base_url is https://www.bettertoken.com/v1 (.com, not .ai).