musistudio/claude-code-router

One local control plane for every AI agent: route across models, fuse new capabilities, orchestrate tools, and stay fully in control.

What it solves

Claude Code Router (CCR) solves the fragmentation of managing multiple AI coding agents and model providers. Instead of configuring each agent (like Claude Code, Codex, or Grok CLI) individually with different API keys and endpoints, CCR provides a single local gateway that centralizes the management of providers, routing rules, and credentials.

How it works

CCR acts as a local control plane and model gateway. It sits between the AI agent and the model provider. The agent connects to a stable local endpoint (defaulting to http://127.0.0.1:3456), and CCR then routes the request to the selected provider and model based on predefined profiles and routing rules. It supports various protocols including OpenAI Chat, Anthropic Messages, and Gemini Generate Content.

Who it’s for

It is designed for developers using multiple AI coding agents and providers who want to switch models without changing agent configurations, ensure reliability through failovers, and monitor their token usage and costs in one place.

Highlights

  • Centralized Management: Manage multiple agents and providers from a single dashboard.
  • Advanced Routing: Supports ordered fallbacks, retries, key rotation, and credential pools to keep requests running.
  • Capaiblity Extensions: Adds features like Fusion vision, web search, and MCP tools to existing models.
  • Observability: Detailed logs for latency, token usage, cost estimates, and resolved routes.
  • Broad Compatibility: Supports a wide array of agents (Claude Code, Codex, Grok CLI, etc.) and providers (OpenAI, Anthropic, DeepSeek, etc.).

Related

  • Project
  • Project
  • Project
  • Project
  • Project