Favicon of Claude Code Router

Claude Code Router

A local model gateway that routes coding agents to your chosen providers. Runs on macOS, Windows, Linux or Docker and uses the MIT license.

Claude Code Router is an open-source local model gateway for developers who use coding agents and want to manage their model providers in one place. It runs on macOS, Windows and Linux, with Docker and a CLI with a browser interface also available. The project uses the MIT license.

The gateway connects Claude Code, Codex, OpenCode, Claude Design and other supported agents to a shared local endpoint. You can switch models or providers without repeatedly changing each agent's configuration. Provider support includes OpenAI, Anthropic, Gemini, OpenRouter, DeepSeek, Moonshot and custom compatible endpoints. The gateway runs locally; requests routed to cloud providers go to those services for processing.

Routing rules can choose models based on request conditions, rewrite requests and retry failures. Ordered fallback models let requests move to another model when the first choice fails, while credential pools and key rotation handle multiple provider accounts. A searchable model catalog helps with model selection.

Fusion adds vision, web search and MCP tools to existing models. ToolHub, plugins and built-in browser automation extend the tools available to agents. Request logs show which provider, model and credential handled a call, alongside latency, token use, estimated cost and errors. The interface also exposes tool calls and agent traces. AgentClaw relays agents through messaging services including Slack, Discord, Telegram and Feishu.

Similar to Claude Code Router