Skip to content
  1. Home
  2. AI tools
  3. Claude Code Router

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

Command 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

Worth knowingNon-Anthropic models may handle Claude Code's tools less reliably; the README carries sponsor and affiliate links.

Sources

The summary is ours, written from the README. Spotted an error? See how we work.

More for automation & ops

See the topic →
  • Hermes Agent

    NousResearch/hermes-agent

    Self-improving open-source agent with TUI, gateway, skills and cron

    ToolGitHub stars: 263k
  • Disk Cleanup plugin

    NousResearch/hermes-agent

    Auto-track and remove temp files created during Hermes sessions

    ToolGitHub stars: 263k
  • Google Meet plugin

    NousResearch/hermes-agent

    Join Google Meet, transcribe captions and follow up afterwards

    ToolGitHub stars: 263k
  • n8n

    n8n-io/n8n

    Self-hostable workflow automation with AI agent nodes

    ToolGitHub stars: 210k