Tool Setup · As of 2026-11-25

Roo Code API Setup (Nov 2026): Anthropic Custom Base URL, OpenAI Compatible, Per-Mode Models and Cost Control

To use Roo Code with your own API key, create two configuration profiles: one with the Anthropic provider, Use custom base URL ticked and https://api.qcode.cc/api for Claude, and one with the OpenAI Compatible provider and https://api.qcode.cc/openai/v1 for GPT-6.2 and Chinese models such as GLM, Kimi, DeepSeek and Qwen. As of 2026-11-25 the last release is Roo Code 3.54.0, the GitHub repository has been archived (read-only) since 2026-05-15, and the Anthropic provider's model list stops at claude-opus-4-6 / claude-sonnet-4-6. This guide covers what still works, how to give each mode its own model, and how to keep cost visible. QCode is an independent third-party API service and is not affiliated with Anthropic, OpenAI or the Roo Code team.

Updated 2026-11-26

Key facts

  • Status: Roo Code 3.54.0 (15 May 2026) is the final release. The repo RooCodeInc/Roo-Code was archived on 2026-05-15, and its README says the extension "was shut down on May 15th". The original team moved to a new product, Roomote. No fixes or new model entries are coming.
  • Install: QCode's test found no listing for RooVeterinaryInc.roo-cline in the VS Code Marketplace. Install roo-cline-3.54.0.vsix from Open VSX or GitHub Releases.
  • Claude: use the Anthropic provider with a custom base URL. The model dropdown is fixed; the newest usable entries are claude-sonnet-4-6 and claude-opus-4-6. The old default claude-sonnet-4-5 returns not_found_error.
  • GPT and Chinese models: use OpenAI Compatible. The model field accepts any ID through the Use custom: entry, so gpt-6.2-sol, glm-5.3, kimi-k3.1-pro, deepseek-v4.1-flash and qwen3.8-max can all be entered there. QCode has not tested native tool calling for the Chinese models, so try a small task before you rely on one in Code mode.
  • Protocol rule on QCode: Claude only goes through the Anthropic path, GPT only through the OpenAI path, and Chinese models accept either.
  • Modes remember models. Each mode (Code, Architect, Ask, Debug, Orchestrator) keeps the last model or profile you used with it.

What Roo Code is, and should you still use it?

Roo Code (originally a fork of Cline, marketplace ID RooVeterinaryInc.roo-cline) is an open-source, Apache-2.0 coding agent for VS Code. It reads and edits files, runs terminal commands, uses MCP servers, and splits work into modes, each with its own prompt and tool permissions. Its two most-loved features are modes and API configuration profiles, which let you bind a different model to each mode.

Now that the project is archived, the honest answer is this. If you already have a Roo Code workflow, custom modes and team habits, it keeps working with a custom API today, and this page shows you how. If you are starting fresh, or you need Claude 5.x models (Opus 5.5, Sonnet 5.5, Fable 5.2), choose an actively maintained tool from the same family: Cline, Kilo Code, or the community continuation Zoo Code that the Roo Code README points to. An archived extension also gets no security fixes, so keep it out of untrusted repositories.

Prerequisites

Item Requirement
Editor VS Code (QCode tested 1.147.0 on Windows 11) or a compatible fork
Extension roo-cline-3.54.0.vsix from Open VSX or GitHub Releases (tag v3.54.0)
API key A QCode key starting with cr_ (one key covers both protocols)
Endpoints Anthropic: https://api.qcode.cc/api; OpenAI: https://api.qcode.cc/openai/v1. Regional hosts asia.qcode.cc and us.qcode.cc use the same paths

Step 1: Install Roo Code 3.54.0 from a VSIX

  1. Download roo-cline-3.54.0.vsix from Open VSX (publisher RooVeterinaryInc) or from the GitHub release v3.54.0.
  2. In VS Code, open the Extensions panel, click Views and More Actions... (the ... menu) and choose Install from VSIX....
  3. Or install from a terminal:
code --install-extension ./roo-cline-3.54.0.vsix

Installing by ID (code --install-extension rooveterinaryinc.roo-cline) fails with "Extension ... not found", because the marketplace no longer serves it. After installing, turn off auto-update for this extension so nothing replaces the file you checked.

Step 2: Claude through the Anthropic provider

  1. Click Get Started (or the gear icon, then Providers). The default provider is OpenRouter, so change API Provider to Anthropic.
  2. Anthropic API Key: paste your cr_ key, with no spaces or quotes.
  3. Tick Use custom base URL and enter https://api.qcode.cc/api. Do not add a trailing slash or /v1/messages; Roo Code appends the path itself.
  4. Leave Pass Anthropic API Key as Authorization header instead of X-Api-Key unticked.
  5. Model: pick claude-sonnet-4-6 for everyday coding or claude-opus-4-6 for hard problems. Do not keep claude-sonnet-4-5.
  6. Click Save (or Finish on first run). Roo Code does not save while you type.

Why not Opus 5.5? In 3.54.0 the Anthropic dropdown is a fixed list built before the Claude 5 family shipped, and there is no field for a custom Claude ID. You also can't route Claude through the OpenAI Compatible provider, because QCode only serves Claude on the Anthropic protocol. If you need claude-opus-5-5 or claude-fable-5-2, use Cline, Kilo Code or Claude Code.

Step 3: GPT and Chinese models through OpenAI Compatible

  1. Click + next to the profile selector and name the new profile, for example qcode-gpt.
  2. Set API Provider to OpenAI Compatible.
  3. Base URL: https://api.qcode.cc/openai/v1 (this field always shows; there is no checkbox).
  4. API Key: the same cr_ key.
  5. Model: type gpt-6.2-sol. If it is not in the searchable list, click the Use custom: gpt-6.2-sol entry; pressing Enter alone doesn't select it.
  6. Under Model Configuration, check Max Output Tokens and Context Window, and fill Input Price and Output Price from /models so Roo Code's cost display is meaningful.
  7. Click Save.

Make one profile per model you use often, for example qcode-gpt (gpt-6.2-sol), qcode-astra (gpt-6.2-astra), qcode-glm (glm-5.3), qcode-kimi (kimi-k3.1-pro), qcode-deepseek (deepseek-v4.1-flash) and qcode-qwen (qwen3.8-max). Roo Code needs native tool calling, so test each Chinese model on a small task before you trust it in Code mode.

Step 4: Give each mode its own model

Roo Code ships five built-in modes:

Mode Tools Good fit (QCode IDs) Why
Code (default) read, edit, command, MCP claude-sonnet-4-6 or gpt-6.2-sol Many edits; balanced price per token
Architect read, MCP, edit Markdown only claude-opus-4-6 or gpt-6.2-astra Few long reasoning turns, high value per token
Ask read, MCP deepseek-v4.1-flash, glm-5.3 or qwen3.8-max Explanations; cheap and fast is fine
Debug read, edit, command, MCP claude-sonnet-4-6 or kimi-k3.1-pro Needs reliable tool calls and log reading
Orchestrator delegates with new_task gpt-6.2-sol or claude-sonnet-4-6 Plans subtasks; each subtask then runs in its own mode

To bind them, open the Prompts tab, pick a mode and choose its API configuration profile. Roo Code also remembers the last profile used with each mode, so switching with /architect, /code, /ask, /debug or /orchestrator (or Ctrl + . on Windows/Linux, ⌘ + . on macOS) swaps the model automatically. Pin your most-used profiles from the dropdown so they stay at the top.

Step 5: Verify that it works

  1. Start a new task in Code mode with a small prompt, such as "List the files in this folder and summarise package.json". A successful run shows an API Request line that is not red and ends with Task Completed.
  2. Switch to a mode bound to an OpenAI Compatible profile and repeat.
  3. If something fails, test the key outside the editor. In bash:
curl https://api.qcode.cc/api/v1/messages \
  -H "x-api-key: $QCODE_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model":"claude-sonnet-4-6","max_tokens":32,"messages":[{"role":"user","content":"Reply with pong"}]}'

In Windows PowerShell, call curl.exe (not curl, which in Windows PowerShell 5.1 is an alias for Invoke-WebRequest), or use Invoke-RestMethod. A JSON reply with "content" means the key and endpoint work, so the remaining problem is in Roo Code's settings.

Cost: where the money goes in Roo Code

  • Model choice per mode matters most. On QCode's /models page (read 2026-11-25), claude-sonnet-4-6 is $3 / $15 per million input/output tokens and claude-opus-4-6 is $5 / $25. For comparison, claude-opus-5-5, which Roo Code can't select, is $4 / $20, and gpt-6.2-sol is $2 / $10. Billing is the official price × the service multiplier, currently ×1.0 for Anthropic and OpenAI models.
  • Orchestrator multiplies requests. Every subtask is its own conversation with its own context. Bind Orchestrator to a mid-priced model and cap how many subtasks you let it start.
  • Prompt caching. The Anthropic provider supports Claude prompt caching, which cuts the cost of the repeated system prompt and file context. Keep tasks focused rather than very long, so the cache keeps hitting.
  • Rate limit per profile. Each profile has a Rate Limit setting (0 = off) that sets a minimum gap in seconds between requests. It is a simple brake for unattended runs.
  • Fill in prices for custom models. Roo Code only shows a meaningful task cost for OpenAI Compatible models if you enter Input/Output prices in Model Configuration.

Common errors and fixes

Symptom Likely cause Fix
No extensions found. when searching Marketplace no longer lists Roo Code Install the 3.54.0 VSIX (Step 1)
not_found_error: model: claude-sonnet-4-5 Retired default model Choose claude-sonnet-4-6 or claude-opus-4-6
API Request Failed mentioning the model is not available on this endpoint A Claude ID sent through OpenAI Compatible Use the Anthropic provider with https://api.qcode.cc/api
404 on every message (Anthropic profile) Base URL ends in /v1/messages or has a trailing slash Use exactly https://api.qcode.cc/api
404 (OpenAI Compatible profile) /v1 missing from the base URL Use https://api.qcode.cc/openai/v1
401 / invalid key Space or quote pasted with the key, or the Authorization-header box ticked Re-paste the key, untick the box, Save
Settings gone after reopening Closed without Save Click Save before leaving settings
Tool-calling errors or the model "talks" instead of editing Model's native tool calling is weak or partial Use a different model for Code/Debug; keep that model for Ask
Context errors on long tasks Wrong Context Window in Model Configuration Set it to the model's real limit, start a fresh task

FAQ

Is Roo Code still maintained in 2026?

No. The GitHub repository was archived on 2026-05-15 and 3.54.0 is the last release. Existing installs keep working, but there will be no new model entries, fixes or security patches.

Can I use Claude Opus 5.5 in Roo Code?

Not with Roo Code 3.54.0. The Anthropic provider has a fixed list that ends at claude-opus-4-6, and Claude can't be sent through OpenAI Compatible on QCode. Use Cline, Kilo Code or Claude Code for Opus 5.5 and Fable 5.2.

What base URL do I enter for Claude in Roo Code?

https://api.qcode.cc/api, with Use custom base URL ticked. Don't add /v1 or /v1/messages; Roo Code adds the path. For GPT and Chinese models, the OpenAI Compatible base URL is https://api.qcode.cc/openai/v1.

Do I need two API keys for Claude and GPT?

No. One QCode key works on both the Anthropic and OpenAI paths. You still need two Roo Code profiles, because each profile uses one provider type.

Which model should each Roo Code mode use?

A common split is a strong model for Architect (claude-opus-4-6 or gpt-6.2-astra), a balanced one for Code and Debug (claude-sonnet-4-6 or gpt-6.2-sol), and a cheap fast one for Ask (deepseek-v4.1-flash, glm-5.3). Bind them in the Prompts tab.

Can I use GLM, Kimi, DeepSeek or Qwen in Roo Code?

They can be entered through an OpenAI Compatible profile with the custom model ID, for example glm-5.3 or qwen3.8-max. QCode has not tested native tool calling for them, so try a small task first, because Roo Code depends on native tool calls.

Where does Roo Code store my API key?

In VS Code's Secret Storage, not in a plain-text settings file. Exported settings may still contain keys, so don't share an export without checking it.

Should I migrate away from Roo Code?

If you rely on new models or security updates, plan a move to Cline, Kilo Code or Zoo Code. Your QCode key and both base URLs work the same way there.

Try it before you commit

The QCode Starter plan is the cheapest way to check your Roo Code profiles against real work: a daily dollar quota deducted at the official API price ×1.0 for Claude and GPT (Chinese models at the rate shown on /models), one cr_ key for Claude, GPT and Chinese models, and no change to your workflow. Personal plans start from $9 per 30 days; see /pricing for current prices and /models for live per-model rates.

Sources: RooCodeInc/Roo-Code GitHub repository and releases page; Roo Code docs (Anthropic provider, OpenAI Compatible provider, Using Modes, API Configuration Profiles); QCode docs page for Roo Code; QCode /models. All read 2026-11-25.

Try it before you commit

One key for both the Anthropic Messages API and OpenAI-compatible APIs. Claude and GPT are billed at the official price ×1.0; live rates are on /models.

Not sure where to start?

Try it for a week

Small Pack: $4 for $30 of quota, valid 7 days

Use it every day

Starter: $9.00/month with $5 of quota every day — just $0.060 per $1 of quota, vs about $0.113 for the Medium Pack