
Claude Code Router
Route Claude Code requests to any model provider.
About
Claude Code Router is an open-source local gateway that routes requests from Claude Code (and compatible clients like Codex and ZCode) to the model provider you choose. Instead of being locked to Anthropic, you can route workloads by type: cheap models for background tasks, long-context models for big refactors, reasoning models for hard problems. It supports OpenAI-compatible APIs, Anthropic, Gemini, OpenRouter, DeepSeek, Ollama, SiliconFlow, Moonshot, Mistral, Z.AI, and custom providers.
It ships as an npm package (npm install -g @musistudio/claude-code-router, command ccr), with request/response transformers, dynamic model switching via /model, fallback routing, API key rotation, usage statistics, and a plugin system. A desktop variant (Claude Code Router Desktop) offers a control panel instead of JSON config, and GitHub Actions integration can run Claude tasks in CI. Docs live at ccrdesk.top; the project is MIT-licensed.
What it can do
- Route Claude Code traffic to any model provider\nPer-workload routing (background, thinking, long-context)\nDynamic /model switching, fallbacks, and key rotation\nTransformers, plugins, GitHub Actions, and desktop UI
Setup
npm install -g @musistudio/claude-code-router; configure ~/.claude-code-router/config.json
Prerequisites
Claude Code installed; API keys for your chosen providers
Use cases
Works with
Trust score — 8/10
Scored 8/10 (verified tier, metrics-v1). Evidence: Verified via vendor site/docs/GitHub and reputable coverage, wave 101; Trending score 80/100 from researcher assessment.
Sources
Every fact above was checked against these sources. Where a claim comes from the provider and couldn't be independently verified, the text says so.