Claude Code Router (CCR)
One local control plane for every AI agent: route, fail over, extend, and observe from a single app.
- Source repo
- musistudio/claude-code-router
- Stars
- ★ 38k
- Last updated
- 1mo ago
- License
- MIT
- Primary language
- TypeScript
- FA score
- 62/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformChatGPT · Codex · Claude Code
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A developer using Claude Code who wants to switch models or providers without editing config files.
- Not a fit if
- Environments still on Node.js below version 22
- Users wanting zero-config setup with no routing or credential pool tuning
- Website
- ccrdesk.top ↗ set on GitHub
- Maintenance
- Commits in the last 6 monthslast commit 2026-10-10latest release v3.1.3 (2026-10-09)+14.9 ★/day over 7 days
- Source review
- 62/100 · Some gaps
What does this agent do, and when should you use it?
Claude Code Router (CCR) is a local model gateway that provides a stable local endpoint (default http://127.0.0.1:3456) for coding agents including Claude Code, Claude Design, Codex, Grok CLI, Kimi CLI, Kilo Code, OpenCode, Pi, and ZCode. It supports protocols like OpenAI Chat/Responses, Anthropic Messages, Gemini Generate Content/Interactions, OpenRouter, DeepSeek, SiliconFlow, Moonshot, Kimi Code, Mistral, Z.AI, Bailian, and custom compatible endpoints. CCR offers a desktop app (macOS, Windows, Linux), a CLI via npm, and Docker deployment. Core capabilities include provider presets, model discovery, routing rules, retries, credential pools, key rotation, fallback models, Fusion vision, web search, MCP tools, and ToolHub. It provides detailed request logs, latency, token usage, cost estimates, and account status. The project is MIT-licensed and has an active community and sponsor support.
CCR runs as a local proxy that intercepts API requests from multiple AI agents and forwards them to chosen providers based on configured routing rules. It provides routing rules, credential pools, retries, fallback models, request rewriting, and conditional matching. It supports Fusion models (vision, web search, MCP tools) and ToolHub, extending capabilities via plugins. It logs requests and responses, including resolved provider, model, credential, status, latency, tokens, cost, and tool calls. It supports agent relay through Weixin iLink, WeCom, Slack, Discord, Telegram, LINE, Feishu, and DingTalk via AgentClaw.
- A developer using Claude Code who wants to switch models or providers without editing config files.
- A team using multiple AI agents (e.g., Claude Code and Codex) that wants to unify model configuration and credentials.
- A user needing high availability with retries, credential pools, and fallback models to keep requests running.
- A user wanting to add vision, web search, or MCP tool capabilities to existing models using Fusion and ToolHub.
- An organization requiring detailed audit logs, cost estimates, and performance metrics for AI usage.
- A user needing to relay agent requests through enterprise communication platforms like Slack or DingTalk via AgentClaw.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npm install -g @musistudio/claude-code-routerdocker compose up -d --build
- Runtime
- Node.js 22+
- Install notes cover
- Windows · macOS · Linux · Docker
How do you install or deploy this agent?
Desktop app: Download the installer for macOS, Windows, or Linux from GitHub Releases and launch it. CLI: Ensure Node.js 22+, run npm install -g @musistudio/claude-code-router, then execute ccr ui. Docker: Clone the repo and run docker compose up -d --build.
How do you use this agent?
After launching CCR, open Providers → Add Provider, choose a built-in preset or custom endpoint, enter the API key, select protocol and models. Start the server (default http://127.0.0.1:3456). In Agent Config, select your agent (e.g., Claude Code), choose a model, and apply the profile. Then use your agent normally; open Logs to see resolved provider, model, status, tokens, latency, and errors. Configure conditions, retries, request rewrites, and fallback models in Routing.
What are this agent's strengths and limitations?
- Centralizes management of multiple agents and providers, reducing configuration fragmentation.
- Supports built-in presets and custom endpoints, compatible with multiple protocols (OpenAI, Anthropic, etc.).
- Provides retries, credential pools, key rotation, and fallback models for high reliability.
- Extends model capabilities via Fusion and ToolHub, supporting vision, search, and MCP tools.
- Offers detailed logs and cost estimation for better observability.
- Active community and sponsor support, with ongoing development.
- Desktop app requires installing an Electron app, which may use significant system resources.
- CLI requires Node.js 22 or higher, which may not be available in older environments.
- Dependent on third-party API keys and subscriptions, with provider lock-in risk.
- Advanced routing and plugin configuration has a learning curve.
- Some features (e.g., AgentClaw) require additional external service configuration.
- Documentation is mostly in English, with limited Chinese resources.
How does this agent compare with similar options?
Similar tools include LiteLLM and OpenRouter, but CCR focuses on a local control plane and agent management without relying on cloud services.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Claude Code Router (CCR) This agent | 62 · Some gaps | Desktop appFree + model costs | ★ 38k | 1mo ago | TypeScript | ChatGPT · Codex · Claude Code |
| Puppetmaster | 73 · Some gaps | CLIFree + model costs | ★ 472 | 4d ago | Python | Codex · Claude Code |
| ccxray | 76 · Good | CLIFree + model costs | ★ 296 | 8d ago | JavaScript | Claude Code · Claude API |
| Runtm | 60 · Some gaps | CLIFreemium | ★ 304 | 1d ago | Python | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The product is explicitly a local gateway: the README gives a 127.0.0.1 default and describes routing, credentials, and request logs, which supports some data-flow visibility. The CLI handles configuration, service tokens, and configuration files, but the supplied material does not show credential encryption, broad permission boundaries, controls on outbound data, user confirmation, a complete side-effect inventory, or rollback mechanisms, so trust controls receive partial credit. The dependency list and overrides show dependency management, but there is no vulnerability audit or full supply-chain evidence. The MIT license and repository attribution are visible; publisher identity remains unknown.
The README, package metadata, and CLI code largely agree on a local gateway, management UI, and configuration workflow; Node requirements and desktop build constraints are also documented. Availability depends on external model services, providers, and npm packages, with no offline fallback or availability commitment shown. The CLI includes clear errors for invalid arguments, startup failures, and unavailable gateways, but the supplied excerpt cannot establish coverage for all failure cases.
The README names a broad set of coding agents, CLI and desktop applications, providers, routing, tools, deployment modes, and use cases, so audience and scenarios are well covered. The CLI explicitly rejects unsupported arguments or launch modes for some agents and surfaces, but the complete capability boundary, compatibility matrix, and limitations are not exhaustive in this packet. The local service default, Node 22 requirement, and desktop and Docker paths show concrete environment support, while remote deployment details point to external documentation.
The README is organized around quick start, architecture, features, deeper documentation, and support; installation covers desktop, CLI, Docker, and builds, including platform differences. The license file and package metadata both state MIT. Product and command names are mostly stable, though the monorepo package names and many agent names add some naming complexity. Examples focus on installation and routing, and no FAQ is included; some limitations are disclosed, but the supplied material contains no change log. Maintainers and support channels are discoverable through links and sponsorship information, but specific maintenance responsibility and update commitments are unclear.
Routing, multiple providers, failover, capability extensions, and request observability in one interface address fragmented agent configuration and offer clear marginal value. Log fields and configuration steps support operational use, but the material does not show full output examples or how cost estimates are validated. Desktop, CLI, and Docker options plus a shared local endpoint offer useful benefits; setup, provider configuration, and maintaining an additional gateway also incur costs that are not quantified.
README claims about the local port, Node version, commands, supported scope, and some limitations can be partly matched to package metadata and CLI configuration, startup, and argument checks. Test files show specific static test cases for the Claude Design plugin, but do not substantiate every integration claim in the README; no execution or testing was performed for this assessment. The material distinguishes feature descriptions from setup instructions, but broad compatibility and capability claims lack evidence mapped to each claim, warranting only partial credit.
- The gateway handles provider credentials, prompts, and responses. Review local access controls, log retention, and remote deployment settings; the supplied material does not fully explain these handling details.
- The README lists many agents and providers, but the supplied evidence covers only part of the CLI and Claude Design tests; it does not establish that every integration works in a target environment.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Highlights - Rebuild the bundled model catalog and publish it to [models.ccrdesk.top](https://models.ccrdesk.top/models.json). The catalog refreshes from the CDN at startup and hourly, with bundled and cached data available offline. - Improve routing script token estimation, gateway restart recovery, and raw trace delivery. - Fix Codex session affinity, protocol-specific provider aliases, and upstream streaming resets. - Add the Y-API provider preset and bound OpenRouter catalog requests with a timeout. What's Changed …View on GitHub ↗ -
Release notes excerpt
Highlights - Fix Codex workspace launching and network requirements handling, and preserve approval reviewer settings. - Protect configuration saves against stale concurrent edits and preserve provider capabilities, routing rules, and fallback settings. - Bundle the gateway regression fixes in every release: valid Anthropic tool IDs and replay histories, complete Fusion traces, and accurate upstream HTTP status and headers. - Improve fallback error details, Anthropic reasoning compatibility, OpenCode Go cache usage, and live OAuth credential refresh during model discovery and requests. …View on GitHub ↗ -
Release notes excerpt
What's Changed * fix(gateway): surface per-attempt failure details in aggregate error messages by @zeal-up in https://github.com/musistudio/claude-code-router/pull/1773 * fix(gateway): raise and make configurable the core config-acceptance timeout by @fszcd in https://github.com/musistudio/claude-code-router/pull/1794 * fix(usage): price routed models instead of rule aliases (#1787) by @cpruijsen in https://github.com/musistudio/claude-code-router/pull/1790 …View on GitHub ↗
FAQ
Does CCR slow down request latency?
Can I use CCR without the desktop app?
ccr ui) provides a browser-based management UI, and Docker deployment is also available.What protocols does CCR support?
Does CCR support multiple accounts and credential pools?
How do I debug routing issues?
Is Claude Code Router (CCR) free?
Is Claude Code Router (CCR) open source?
Is Claude Code Router (CCR) safe to use?
Is Claude Code Router (CCR) still maintained?
Who makes Claude Code Router (CCR)?
What is Claude Code Router (CCR)'s official website?
Thanks — we use this to improve the page.