Router One

Connect Roo Code to every model through one endpoint

Roo Code is a popular open-source AI coding agent for VS Code (it began as a Cline fork) that bills through whatever API provider you plug in. Pointing its OpenAI-compatible provider at Router One unlocks GPT, Claude, Gemini, and DeepSeek family models behind one key — and since agents burn tokens fast, the per-request cost trace shows exactly where each session's spend went.

Configuration

In Roo Code's settings, set the API Provider to "OpenAI Compatible" and fill in base URL, key, and a model ID from the /models page:

roo-code-settings
# Roo Code → Settings → API Provider: OpenAI Compatible
Base URL:  https://api.router.one/v1
API Key:   sk-your-router-one-key
Model ID:  <copy the exact ID from /models>

Pick a model

Copy the exact model ID from the /models page — IDs are case-sensitive, and the page lists each model's context window, capabilities, and current per-token rates. Create a dedicated API key per tool with its own maxSpend cap, so one runaway tool can't affect other workloads.

Verify and observe

After your first request, open Dashboard → Logs to see its full trace: model, tokens, cost, latency, and status code. From here every Roo Code call has a ledger and a trail instead of being a black box.

FAQ

Is the setup the same as Cline?
Nearly — Roo Code keeps Cline's provider model: settings (gear icon) → API Provider → "OpenAI Compatible", then Base URL, API Key, and Model ID. Different modes can use different models.
Which models can Roo Code use through the gateway?
Any chat-capable model in the catalog — GPT, Claude, Gemini, DeepSeek, and Mistral families. The /models page is the source of truth for model IDs and per-token rates.
Does this work from Mainland China?
Yes. The gateway is reachable from Mainland China without a VPN, and the configuration is identical to the global setup.
How do I debug a 401/403/429?
Open Dashboard → Logs first to see whether requests reached the gateway and with what status, then walk the error-codes reference to check env vars, key status, and limits.