Use Xantly with Roo Code

Roo Code is a Cline fork with custom per-mode models. Pair it with Xantly to route Code mode to Claude, Architect to GPT, and commit-message to fast speed-tier models.

Roo Code is a Cline fork with extra features for multi-agent orchestration, custom modes, and enterprise workflows. Same Xantly setup as Cline, with one additional pattern: per-mode model assignment.

Prerequisites

Setup

  1. Open Roo's settings (gear icon in the Roo sidebar).
  2. Under API Provider, select OpenAI Compatible.
  3. Configure:
FieldValue
Base URLhttps://api.xantly.com/v1
API Keyxantly_sk_...
Model IDxantly/auto-quality
  1. Save.

Custom modes per model (Roo-specific win)

Roo's killer feature is custom modes, configure different personalities (Code, Architect, Reviewer, Debugger) with different models. Xantly pairs perfectly with this:

ModeRecommended ModelWhy
Codexantly/auto-qualityBest code generation
Architectanthropic/claude-sonnet-4.6Strong planning/design reasoning
Revieweropenai/gpt-5.4Good at structured output + critique
Debuggerxantly/auto-qualityNeeds tool calling reliability
Docsxantly/auto-valueCheap, fine quality
Commit Messagexantly/auto-speedFast, trivial task

Configure each mode's model in Roo's settings → Modes → pick mode → API Configuration → override model.

Verify tool-calling

Same as Cline. Load a project, ask:

Read package.json, check which deps are out of date, propose a patch.

Roo should fire tool calls (read_file, think, write_to_file) and land a patch. If tool-calling fails, swap the model to xantly/auto-quality or anthropic/claude-sonnet-4.6.

What you get

Gotchas

Model ID must include provider prefix. anthropic/claude-sonnet-4.6, not claude-sonnet-4.6. Bare slugs that don't match the catalog get rejected.

Custom modes cache their model choice. After changing a mode's model, restart VS Code to force Roo to reload.

Roo is the #1 IDE Extension on OpenRouter by token volume. Heavy users can blow through T1 credit budgets fast, consider setting a daily USD cap on your Xantly API key (dashboard → API Keys → Edit → Daily Budget USD).

Next steps