Setup guide

Connect Cursor

Cursor is an AI code editor. It can use CheapTokens for chat through its OpenAI key and base URL override settings.

Before you start

The snippets below use claude-sonnet-5-5. Pick another model to update them.

Steps

  1. Install Cursor from cursor.com/download and sign in to your Cursor account.
  2. Open Cursor Settings → Models and expand API Keys.
  3. Turn on OpenAI API Key and paste your CheapTokens key. Turn on Override OpenAI Base URL and enter the base URL.
    Cursor Settings → Models
    OpenAI API Key:             YOUR_API_KEY
    Override OpenAI Base URL:   https://cheaptokens.pw/v1
  4. Click + Add model, type claude-sonnet-5-5 and switch it on. Then click Verify.
  5. Pick claude-sonnet-5-5 in the model selector of the chat and send a message.

Check that it works

Send a short message in Cursor, then open Dashboard → Usage. The request appears there within a few seconds, with its model, tokens and cost.

Good to know

If something goes wrong

What you seeWhat to do
401 or invalid_api_keyThe key is wrong, disabled or has extra spaces. Create a new key and paste it again.
402 or insufficient_quotaYour balance is empty. Top up under Billing.
404 or model_not_foundThe model ID has a typo. Copy it from the models page.
404 on every requestThe base URL is wrong. Check whether this tool needs the /v1 ending (see the steps above).
429Too many requests per minute. Wait a few seconds and retry.

Prefer a guided version? Open the setup wizard →