Claude Code model router

Claude Code Router

Routes Claude Code requests to different models and providers based on rules you configure.

37,979 stars 3,191 forksModel routers & proxies Source

Install

Install
npm install -g @musistudio/claude-code-router
From source
git clone https://github.com/musistudio/claude-code-router.git

From the README

Claude Code Router

Manage every agent and provider from one place.

Connect Claude Code, Claude Design, Codex, Grok CLI, Kimi CLI, Kilo Code, OpenCode, Pi, ZCode, WorkBuddy, and compatible API clients to the providers you choose—then route, fail over, extend, and observe every request from one app.

Why use Claude Code Router?

Claude Code Router (CCR) is a local model gateway and control plane for coding agents. It gives Claude Code, Claude Design, Codex, Grok CLI, Kimi CLI, Kilo Code, OpenCode, Pi, ZCode, WorkBuddy, and compatible API clients one stable local endpoint, while you manage the providers, models, accounts, routing rules, and tools behind it from one place.

Use CCR to:

- Manage all agents and providers together instead of maintaining a separate model configuration for every client.
- Switch providers or models without changing your workflow or repeatedly editing agent configuration files.
- Keep requests running with retries, credential pools, key rotation, and ordered fallback models.
- Add capabilities to existing models with Fusion vision, web search, MCP tools, and ToolHub.
- See what actually happened through request logs, resolved routes, latency, token usage, cost estimates, and account status.

CCR supports OpenAI Chat / Responses, Anthropic Messages, Gemini Generate Content / Interactions, OpenRouter, DeepSeek, SiliconFlow, Moonshot, Kimi Code, Mistral, Z.AI, Bailian, and custom compatible providers.

Supported Agents

        Claude Code (CLI & APP)

        Codex (CLI & APP)

        Grok CLI (CLI)

        Kimi CLI (CLI)

        Kilo Code (CLI)

        OpenCode (CLI & APP)

        Pi (CLI)

        ZCode (APP)

        Claude Design (APP)

        WorkBuddy (APP)

Quick Start

Desktop app (recommended)

1.
   Download Claude Code Router…
Read the full README on GitHub

Details

Language
TypeScript
License
MIT
Last updated
10 October 2026

FAQ

What is Claude Code Router?

Routes Claude Code requests to different models and providers based on rules you configure. It is a model router for Claude Code, from musistudio/claude-code-router on GitHub.

How do I install Claude Code Router?

Run npm install -g @musistudio/claude-code-router, then follow the setup in the README.

Is Claude Code Router popular?

musistudio/claude-code-router has 37,979 GitHub stars and 3,191 forks, and is included in 3 curated Claude Code lists. It was last updated on 10 October 2026.

More model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.