Claude Code Router (CCR)

One local control plane for every AI agent: route, fail over, extend, and observe from a single app.

Stars
★ 38k
Last updated
9d ago
License
MIT
Primary language
TypeScript

At a glance

How it runs
Desktop appCLISelf-hosted service
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
Node.js 22npmDocker (optional)Shell / CLINetwork accessLocal filesystem
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

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.

  1. A developer using Claude Code who wants to switch models or providers without editing config files.
  2. A team using multiple AI agents (e.g., Claude Code and Codex) that wants to unify model configuration and credentials.
  3. A user needing high availability with retries, credential pools, and fallback models to keep requests running.
  4. A user wanting to add vision, web search, or MCP tool capabilities to existing models using Fusion and ToolHub.
  5. An organization requiring detailed audit logs, cost estimates, and performance metrics for AI usage.
  6. A user needing to relay agent requests through enterprise communication platforms like Slack or DingTalk via AgentClaw.

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?

Pros
  • 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.
Limitations
  • 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 51 · Major gaps Desktop appFree + model costs ★ 38k 9d ago TypeScript ChatGPT · Codex · Claude Code
Puppetmaster 68 · Some gaps CLIFree + model costs ★ 468 today Python Codex · Claude Code
ccxray 73 · Some gaps CLIFree + model costs ★ 296 1d ago JavaScript Claude Code · Claude API
Runtm 63 · Some gaps CLIFreemium ★ 302 2d ago Python Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
51/ 100 5-point scale 2.6 / 5
This review covers the source as of Aug 09, 2026. The project has shipped 6 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 10/29
Reliability 6/14
Adaptability 12/18
Convention 11/18
Effectiveness 9/13
Verifiability 3/8
Why each dimension lost points
Trust10 / 29 · 1.7/5

Evidence shows the project provides a local gateway, API key management, routing rules, and logging, but does not clearly specify least privilege, user confirmation, data flow transparency, sensitive data handling, dependency security, external effects, rollback, and source attribution. Therefore, these criteria are only partially met, scoring 1.

Reliability6 / 14 · 2.1/5

The project includes unit tests and architecture tests, indicating some consistency, but dependency availability and failure messages are not detailed enough, so scores are 1 or 2.

Adaptability12 / 18 · 3.3/5

The project targets multiple agents and providers, offering rich configuration options, but capability boundaries and trigger precision are not detailed, so score 2.

Convention11 / 18 · 3.1/5

The project provides detailed README, installation instructions, examples, and documentation, but known limitations and changelog are unclear, so score 2.

Effectiveness9 / 13 · 3.5/5

The project offers multiple features like routing, failover, logging, but cost-benefit and output usability are not quantified, so score 2.

Verifiability3 / 8 · 1.9/5

The project provides tests and documentation, but the correspondence between claims and evidence is unclear, and external verification is lacking, so score 1.

Risks and how to mitigate them
  • Publisher identity is unverified; proceed with caution.
  • Dependency security is not explicitly audited; check supply chain risks.
  • Sensitive data handling details are not disclosed; verify API key storage security.
Evidence confidence: Low Reviewed Aug 09, 2026 Reviewed revision 47f36494317a New commits since this review; the score may not cover them
See the full review method →

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v3.1.3
    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 ↗
  2. v3.1.2
    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 ↗
  3. v3.1.1
    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?
CCR runs as a local proxy adding a network hop, but it defaults to a loopback address, minimizing latency. Actual impact depends on routing rules and provider performance.
Can I use CCR without the desktop app?
Yes, the CLI (ccr ui) provides a browser-based management UI, and Docker deployment is also available.
What protocols does CCR support?
It supports OpenAI Chat/Responses, Anthropic Messages, Gemini Generate Content/Interactions, OpenRouter, DeepSeek, SiliconFlow, Moonshot, Kimi Code, Mistral, Z.AI, Bailian, and custom compatible providers.
Does CCR support multiple accounts and credential pools?
Yes, it supports credential pools and key rotation for load balancing and failover.
How do I debug routing issues?
Use the Logs view to see resolved provider, model, status, and errors for each request, which helps in debugging.
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related agents