Setup guide
Connect Continue
Continue is an open-source coding assistant for VS Code and JetBrains IDEs. You add CheapTokens as a model in its config.yaml.
Before you start
- A CheapTokens account with some balance. Create one if you haven't.
- Your API key from Dashboard → API key. It starts with
ct_live_. - Any text model from the models page. They all work over the OpenAI Chat Completions format.
The snippets below use claude-sonnet-5-5. Pick another model to update them.
Windows
-
Install the Continue extension. In VS Code open Extensions (
Ctrl+Shift+X, orCmd+Shift+Xon macOS) and search for it, or run this in a terminal:Terminalcode --install-extension Continue.continue
-
Open the Continue config file. In the Continue panel, open the configs dropdown above the chat box and click the cog next to Local Config. The file is
%USERPROFILE%\.continue\config.yaml. -
Replace its contents with this and save. Continue reloads the file on save.config.yaml
name: CheapTokens version: 0.0.1 schema: v1 models: - name: CheapTokens claude-sonnet-5-5 provider: openai model: claude-sonnet-5-5 apiBase: https://cheaptokens.pw/v1 apiKey: YOUR_API_KEY roles: [chat, edit, apply] capabilities: [tool_use] defaultCompletionOptions: contextLength: 200000 maxTokens: 8192 -
Pick CheapTokens claude-sonnet-5-5 in the model dropdown under the chat box and send a message.
macOS
-
Install the Continue extension. In VS Code open Extensions (
Ctrl+Shift+X, orCmd+Shift+Xon macOS) and search for it, or run this in a terminal:Terminalcode --install-extension Continue.continue
-
Open the Continue config file. In the Continue panel, open the configs dropdown above the chat box and click the cog next to Local Config. The file is
~/.continue/config.yaml. -
Replace its contents with this and save. Continue reloads the file on save.config.yaml
name: CheapTokens version: 0.0.1 schema: v1 models: - name: CheapTokens claude-sonnet-5-5 provider: openai model: claude-sonnet-5-5 apiBase: https://cheaptokens.pw/v1 apiKey: YOUR_API_KEY roles: [chat, edit, apply] capabilities: [tool_use] defaultCompletionOptions: contextLength: 200000 maxTokens: 8192 -
Pick CheapTokens claude-sonnet-5-5 in the model dropdown under the chat box and send a message.
Linux
-
Install the Continue extension. In VS Code open Extensions (
Ctrl+Shift+X, orCmd+Shift+Xon macOS) and search for it, or run this in a terminal:Terminalcode --install-extension Continue.continue
-
Open the Continue config file. In the Continue panel, open the configs dropdown above the chat box and click the cog next to Local Config. The file is
~/.continue/config.yaml. -
Replace its contents with this and save. Continue reloads the file on save.config.yaml
name: CheapTokens version: 0.0.1 schema: v1 models: - name: CheapTokens claude-sonnet-5-5 provider: openai model: claude-sonnet-5-5 apiBase: https://cheaptokens.pw/v1 apiKey: YOUR_API_KEY roles: [chat, edit, apply] capabilities: [tool_use] defaultCompletionOptions: contextLength: 200000 maxTokens: 8192 -
Pick CheapTokens claude-sonnet-5-5 in the model dropdown under the chat box and send a message.
Check that it works
Send a short message in Continue, then open Dashboard → Usage. The request appears there within a few seconds, with its model, tokens and cost.
Good to know
- In JetBrains IDEs, install the Continue plugin from the plugin marketplace instead. The config file is the same.
capabilities: [tool_use]lets Agent mode work with a model Continue doesn't recognise. Addimage_inputfor models that read images.- To add more models, repeat the block under
models:with another model ID. - Autocomplete needs its own entry with
roles: [autocomplete]. A small, cheap model works best there.
If something goes wrong
| What you see | What to do |
|---|---|
401 or invalid_api_key | The key is wrong, disabled or has extra spaces. Create a new key and paste it again. |
402 or insufficient_quota | Your balance is empty. Top up under Billing. |
404 or model_not_found | The model ID has a typo. Copy it from the models page. |
| 404 on every request | The base URL is wrong. Check whether this tool needs the /v1 ending (see the steps above). |
| 429 | Too many requests per minute. Wait a few seconds and retry. |
Prefer a guided version? Open the setup wizard →