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

Note: Roo Code is no longer maintained. New users should see the Cline or Kilo Code guides.

1. Get an API key

Sign up in the TokenMilo console, top up and create a key under API Keys.

2. Configure Roo Code

  1. Open Roo Code in VS Code and click the gear icon.
  2. API Provider: OpenAI Compatible.
  3. Base URL: https://api.tokenmilo.com/v1 (with /v1).
  4. API Key: your TokenMilo key.
  5. Model: e.g. claude-sonnet-5-5 or gpt-6.1-sol.
  6. 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

Need an API key?

Sign up at TokenMilo, top up, and create a key in the console in under a minute.

Get API key See all models