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
12d ago v3.1.6
FARS reviewed
Nov 08, 2026 +3 new
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
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.

  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.

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-router
  • docker 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

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 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?

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

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.

Reliability8 / 14 · 2.9/5

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.

Adaptability14 / 18 · 3.9/5

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.

Convention13 / 18 · 3.6/5

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.

Effectiveness10 / 13 · 3.8/5

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.

Verifiability5 / 8 · 3.1/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 057abaa1f955 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/claude-code-router.svg)](https://followagents.com/en/agents/claude-code-router)
<a href="https://followagents.com/en/agents/claude-code-router"><img src="https://followagents.com/badge/claude-code-router.svg" alt="FARS review"></a>

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.6
    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 ↗
  2. v3.1.5
    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 ↗
  3. v3.1.4
    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.4
    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.
Was this page helpful?
View on GitHub ↗ Install ↓

Host ecosystems

Compare agents like this one

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

Related concepts