Claude Code Router
Local gateway that routes coding agents to the model providers you pick
What it is
A local model gateway, available as a desktop app or CLI, that gives Claude Code, Codex, OpenCode and other agents one endpoint and lets you decide which provider and model serves each request. You add providers with your own API keys, define routing rules, retries and fallbacks, and inspect request logs with tokens, latency and cost estimates.
Good for
- Send background tasks to a cheaper model
- Fail over to another provider on errors
- See per-request tokens, latency and cost
Install or run
npm install -g @musistudio/claude-code-routerCommand as given in the project README. Read the repository before you run anything on your machine.
What you need
Node.js 22+ for the CLI; API keys for the providers you add
Sources
- https://github.com/musistudio/claude-code-router (project README, read 10 Nov 2026)
- https://api.github.com/repos/musistudio/claude-code-router (GitHub API, read 13 Nov 2026)
The summary is ours, written from the README. Spotted an error? See how we work.