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
- 12d ago v3.1.6
- FARS reviewed
- Nov 08, 2026 +3 new
- 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 30 dayslast commit 2026-11-21latest release v3.1.6 (2026-11-21)+13.4 ★/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.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
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 | 12d ago | TypeScript | ChatGPT · Codex · Claude Code |
| Puppetmaster | 73 · Some gaps | CLIFree + model costs | ★ 487 | 12d ago | Python | Codex · Claude Code |
| SandBase CLI | 58 · Major gaps | — | ★ 185 | 10d ago | TypeScript | Codex · Claude Code |
| Outsourcerer | 67 · Some gaps | Agent plugin / skillFree + model costs | ★ 211 | 3d ago | Shell | 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
v3.1.6 - View CCR provider usage in the Codex desktop app. - Enable native image generation and editing in Codex profiles and select a model from a configured Images API provider. CCR displays the native preview once and adapts requests for Grok Imagine. - Fix signed Node runtime discovery in current macOS Codex app layouts. Downloads | Platform | Installer | | --- | --- | | Windows x64 | [EXE](https://github.com/musistudio/claude-code-router/releases/download/v3.1.6/Claude-Code-Router_3.1.6.exe) | …View on GitHub ↗ -
Release notes excerpt
v3.1.5 This release contains the October/November issue fixes merged since v3.1.4. - Fix provider credential fallback, vendor-qualified model routing, stale profile model selections, and context-window/reasoning metadata discovery. - Preserve native Anthropic safeguards, classifier verdicts and tool-use IDs through virtual models and JSON/SSE. Profiles with internal gateway tools explicitly reject incompatible safeguards requests; upstream eligibility still controls no-charge server review. …View on GitHub ↗ -
Release notes excerpt
What's Changed * fix(docker): stop handing the management token to unauthenticated clients by @mertkayacs in https://github.com/musistudio/claude-code-router/pull/1871 New Contributors * @mertkayacs made their first contribution in https://github.com/musistudio/claude-code-router/pull/1871 Full Changelog: https://github.com/musistudio/claude-code-router/compare/v3.1.3...v3.1.4View 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?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.