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) eliminates the need to manage separate model configurations and API keys for every coding agent you use. It acts as a centralized control plane that provides a single, stable local endpoint for various coding tools, allowing you to switch between different AI providers and models without reconfiguring your individual agent settings.

How it works

CCR functions as a local model gateway. You connect your preferred AI providers (such as OpenAI, Anthropic, Gemini, or custom endpoints) to the CCR dashboard. Once configured, you point your coding agents—like Claude Code, Codex, or Grok CLI—to the CCR local server address. The router then manages the traffic, applying your custom routing rules, retries, and fallback models behind the scenes.

Who it’s for

This tool is designed for developers who use multiple AI-powered coding agents and want a unified way to manage their API credentials, monitor token usage, and implement advanced routing logic without manually updating configuration files for every individual application.

Highlights

  • Centralized management for multiple coding agents including Claude Code, Codex, Grok CLI, Kimi CLI, and more.
  • Advanced routing capabilities such as automatic retries, credential pools, key rotation, and ordered fallback models.
  • Comprehensive observability with logs tracking latency, token usage, cost estimates, and agent traces.
  • Extensibility features like Fusion vision, web search, and MCP tool integration.
  • Flexible deployment options via a desktop application, CLI, or Docker.

Related

  • Project
  • Project
  • Project
  • Project
  • Project