Use Cursor with TokenMaster

Cursor can send chat requests to a custom OpenAI base URL, but only part of the editor uses it. Read the limits below before relying on it.

You will need

  • An API key starting with tm- (Console → API keys) — Get an API key
  • Base URL: https://tokenmaster.store/v1
  • A model ID, e.g. anthropic/claude-sonnet-5.5 (see the model list)

Setup

Cursor sends these requests from its own servers, and Tab completion, Apply and some Agent features always use Cursor's built-in models.
  1. Open Cursor Settings → Models and paste your tm-… key into OpenAI API Key.
  2. Turn on Override OpenAI Base URL, enter https://tokenmaster.store/v1 and click Verify.
  3. Add the exact TokenMaster model ID (e.g. anthropic/claude-sonnet-5.5) with Add model and select it in chat.

Good to know

  • The override is global: while it is on, Cursor's own OpenAI models stop working until you switch it off again.
  • In Agent mode Cursor may send Responses-style requests to the chat endpoint; TokenMaster recognises and answers them, but this path is best-effort. For agentic coding we recommend Claude Code, Codex CLI or Cline.
  • Not available through TokenMaster: image generation, speech, rerank, the Assistants API, and OpenAI-hosted tools. Chat Completions, the Responses API (stateless), the Anthropic Messages API and embeddings are available.

Checked against Cursor 3.x on 2026-10-19. Menu names can change between versions.

Troubleshooting

  • 401 / invalid API key — check the key was copied in full and has not been deleted in the console.
  • 404 — the base URL is wrong. It must end in /v1 unless the guide says otherwise.
  • Model not found / not available — use the exact ID from the model list (vendor/model, lowercase). Some vendors are not available in every region.
  • Errors mentioning /responses — the tool is using OpenAI's Responses API. TokenMaster accepts it, but statelessly (no previous_response_id) and without OpenAI-hosted tools; if the tool relies on those, switch it to Chat Completions as noted above.
  • 402 / insufficient balance — top up in the console; requests are refused rather than run up a debt.

Coding assistants

All integration guides → · All model prices →