Roo Code
Roo Code is an open source autonomous coding agent extension for VS Code. It supports both OpenAI-compatible and Anthropic custom base URLs, so you can route coding modes (Code, Architect, Ask, Debug) through LivRouter with one API key.
Option 1: OpenAI-compatible provider (all catalog models)
- Install the Roo Code extension in VS Code and open Settings → Providers.
- Select OpenAI Compatible as the API Provider.
- Set Base URL to
https://api.livrouter.com/v1. - Paste your LivRouter API key from the API keys page.
- Enter an exact model ID from the model catalog (for example
claude-sonnet-4-6,glm-5.3, ordeepseek-v4-pro).
Option 2: Anthropic provider for Claude models
If you want Anthropic-native prompt caching and Messages formatting for Claude models in Roo Code, select Anthropic as the provider, check Use custom base URL, set the URL to https://api.livrouter.com (without /v1), and select a Claude ID from the Claude family catalog.
Verify and troubleshoot
- Run a short prompt in Ask or Code mode and confirm the reply completes cleanly.
- Check Usage logs to verify the model ID and token cost.
- 404 with Anthropic provider: remove any trailing
/v1fromhttps://api.livrouter.com. - 401 or invalid key: make sure you pasted a LivRouter key with available credits rather than an OpenAI or Anthropic account key.
- Tool-use failures: Roo Code depends on structured tool calls; pick a coding or reasoning model from the catalog and check Errors & troubleshooting.
Compare this setup with Cline, or review plans and billing before running heavy agent sessions.