Use Cline with TokenMaster
Cline is an autonomous coding agent for VS Code. Its OpenAI Compatible provider runs it on any TokenMaster model.
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
- Open Cline, click the settings (gear) icon and set API Provider to OpenAI Compatible.
- Enter Base URL
https://tokenmaster.store/v1and yourtm-…key in API Key. - Choose a Model ID from the list Cline loads, or type one such as
anthropic/claude-sonnet-5.5. - Under Model Configuration, set Context Window Size and Max Output Tokens to the model's values (see its model page) and enable image support for vision models.
Good to know
- Coding agents resend the whole context on every step, so input tokens dominate the bill. Models with a low cached-input price are much cheaper for long sessions.
- 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 Cline 4.1 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.