Claude Code model router
Claude Code Router
Routes Claude Code requests to different models and providers based on rules you configure.
Install
npm install -g @musistudio/claude-code-routergit clone https://github.com/musistudio/claude-code-router.gitFrom the README
Claude Code Router
Manage every agent and provider from one place.
Connect Claude Code, Claude Design, Codex, Grok CLI, Kimi CLI, Kilo Code, OpenCode, Pi, ZCode, WorkBuddy, and compatible API clients to the providers you choose—then route, fail over, extend, and observe every request from one app.
Why use Claude Code Router?
Claude Code Router (CCR) is a local model gateway and control plane for coding agents. It gives Claude Code, Claude Design, Codex, Grok CLI, Kimi CLI, Kilo Code, OpenCode, Pi, ZCode, WorkBuddy, and compatible API clients one stable local endpoint, while you manage the providers, models, accounts, routing rules, and tools behind it from one place.
Use CCR to:
- Manage all agents and providers together instead of maintaining a separate model configuration for every client.
- Switch providers or models without changing your workflow or repeatedly editing agent configuration files.
- Keep requests running with retries, credential pools, key rotation, and ordered fallback models.
- Add capabilities to existing models with Fusion vision, web search, MCP tools, and ToolHub.
- See what actually happened through request logs, resolved routes, latency, token usage, cost estimates, and account status.
CCR supports OpenAI Chat / Responses, Anthropic Messages, Gemini Generate Content / Interactions, OpenRouter, DeepSeek, SiliconFlow, Moonshot, Kimi Code, Mistral, Z.AI, Bailian, and custom compatible providers.
Supported Agents
Claude Code (CLI & APP)
Codex (CLI & APP)
Grok CLI (CLI)
Kimi CLI (CLI)
Kilo Code (CLI)
OpenCode (CLI & APP)
Pi (CLI)
ZCode (APP)
Claude Design (APP)
WorkBuddy (APP)
Quick Start
Desktop app (recommended)
1.
Download Claude Code Router…Details
- Repository
- musistudio/claude-code-router
- Website
- ccrdesk.top
- Language
- TypeScript
- License
- MIT
- Last updated
- 10 October 2026
FAQ
What is Claude Code Router?
Routes Claude Code requests to different models and providers based on rules you configure. It is a model router for Claude Code, from musistudio/claude-code-router on GitHub.
How do I install Claude Code Router?
Run npm install -g @musistudio/claude-code-router, then follow the setup in the README.
Is Claude Code Router popular?
musistudio/claude-code-router has 37,979 GitHub stars and 3,191 forks, and is included in 3 curated Claude Code lists. It was last updated on 10 October 2026.
More model routers & proxies
CLIProxyAPI
57krouter-for-me/CLIProxyAPI
Proxy that exposes subscription-based CLIs as OpenAI, Gemini or Claude compatible APIs usable by Claude Code.
Rtk
85krtk-ai/rtk
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
CC Switch
152kfarion1231/cc-switch
Cross-platform desktop app for switching Claude Code providers, configs and MCP servers.
Headroom
79kheadroomlabs-ai/headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Caveman
117kJuliusBrussee/caveman
why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.
OmniRoute
84kcheaper-inference/OmniRoute
Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.