Setup guide
Connect Roo Code
Roo Code is an AI coding agent that runs inside VS Code. It connects to CheapTokens through its OpenAI Compatible provider.
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.
Steps
-
Install the Roo Code 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 RooVeterinaryInc.roo-cline
-
Open the Roo Code panel from the VS Code side bar and click the gear icon to open its settings.
-
Set API Provider to
OpenAI Compatible, then fill in these fields:Roo Code settingsBase URL: https://cheaptokens.pw/v1 API Key: YOUR_API_KEY Model: claude-sonnet-5-5
-
Under Model Configuration, set Context Window to
200000and Max Output Tokens to8192. Roo Code can't look these up for a custom model. -
Click Save, then Done, and send a message in the Roo Code panel.
Check that it works
Send a short message in Roo Code, then open Dashboard → Usage. The request appears there within a few seconds, with its model, tokens and cost.
Good to know
- Roo Code was shut down by its makers on 15 May 2026 and gets no more updates. The last version still installs and works. Its community successor is Zoo Code (
code --install-extension ZooCodeOrganization.zoo-code), which has the same settings screen. - Roo Code needs a model that supports tool calling. If a model replies but never edits files, try another one.
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 →