Roo Code setup (VS Code)
Choose OpenAI Compatible in Roo Code, fill in three fields, and use the latest Claude and GPT models.
Updated 2026-11-16
1. Get an API key
Sign up in the TokenMilo console, top up and create a key under API Keys.
2. Configure Roo Code
- Open Roo Code in VS Code and click the gear icon.
- API Provider: OpenAI Compatible.
- Base URL:
https://api.tokenmilo.com/v1(with /v1). - API Key: your TokenMilo key.
- Model: e.g.
claude-sonnet-5-5orgpt-6.1-sol. - In the model settings set Context Window Size to
200000, tick Prompt Caching and Image Support, then save.
3. Check it works
Run a small task and check Usage Logs in the console. Model IDs are in the model list.
FAQ
Why not use Roo Code’s built-in Anthropic provider?
It only accepts models from its own list. Unknown IDs such as claude-sonnet-5-5 silently fall back to the older Sonnet 4.5. The OpenAI Compatible provider uses exactly the model you enter.
Is Roo Code still maintained?
No — the repository has been archived. Existing installs still work, but Cline or Kilo Code are better long-term choices with the same setup idea.
Should I enable Prompt Caching?
Yes. It removes most of the input cost in long sessions.
Related guides
- Cursor setup — Add Claude and GPT models to Cursor with your own key.
- Cline setup (VS Code) — Configure the Cline coding agent with Claude via TokenMilo.
- Kilo Code setup — Add a TokenMilo custom provider to the Kilo Code agent.
- Continue setup (VS Code & JetBrains) — Configure Claude and GPT in Continue’s config.yaml.
- Trae custom model setup — Add Claude and GPT to the Trae IDE as custom models.
- Zed setup — Use TokenMilo models in the Zed editor’s agent panel.
Need an API key?
Sign up at TokenMilo, top up, and create a key in the console in under a minute.