Skip to content
Sign in
  • Browse all toolsFilter by category and pricing
  • Browse categoriesWriting, code, image, audio and more
  • Compare toolsPut up to three side by side
  • Read the blogGuides and comparisons
www.github.com

Claude Code Router

Local model gateway for routing coding agents across providers, models, and accounts.

Claude Code Router is a local model gateway and control plane that routes coding-agent requests across providers, models, and accounts. Claude Code Router serves developers managing agents such as Claude Code and Codex, with retries, fallbacks, tools, and request logs. Access is available through an MIT-licensed open-source project.

At a glance

Pricing
FreeOpen-source project licensed under the MIT License. The repository does not state provider API pricing.
Added
28 Oct 2026

About Claude Code Router

Claude Code Router is an open-source local model gateway and control plane for coding agents. Claude Code Router gives developers a stable local endpoint for Claude Code, Claude Design, Codex, Grok CLI, Kimi CLI, Kilo Code, OpenCode, Pi, ZCode, WorkBuddy, and compatible API clients.

Claude Code Router centralizes provider settings, model selection, credentials, agent profiles, and routing rules. Routing capabilities include conditions on request headers and bodies, request rewrites, retries, and ordered fallback models. Credential pools and key rotation support request continuity. Fusion adds vision, web search, and MCP tools, while ToolHub and built-in browser automation extend available capabilities. Request logs expose resolved providers, models, credentials, latency, token usage, estimated costs, and tool calls.

Claude Code Router is available under the MIT License through its public repository. Access options include desktop downloads for macOS, Windows, and Linux, an npm CLI with a browser-based management interface, and Docker deployment. Provider setup involves choosing a preset or custom endpoint, entering an API key, and selecting protocols and models.

Claude Code Router suits developers managing multiple coding agents or switching between model providers. The npm CLI requires Node.js 22 or newer. Windows desktop packaging must run on Windows x64 because of a native Electron module dependency.

What you can do

  • Shared local endpoint for coding agents and compatible API clients
  • Provider presets, custom endpoints, and model discovery
  • Conditional routing, request rewrites, retries, and ordered fallbacks
  • Credential pools and key rotation
  • Fusion vision, web search, MCP tools, and ToolHub
  • Request logs with latency, token usage, and estimated costs
  • Client keys with expiration and local usage limits
  • Desktop, npm CLI, and Docker deployment options

Pros and cons

What works

  • Centralizes agent profiles, providers, models, and credentials
  • Supports multiple provider protocols and custom compatible endpoints
  • Provides request-level routing and usage visibility
  • Available as an MIT-licensed open-source project

What to watch

  • The npm CLI requires Node.js 22 or newer
  • Provider setup requires endpoint, API key, protocol, and model configuration
  • Windows desktop packaging must run on Windows x64

Who Claude Code Router is for

Developers managing coding agents and multiple model providers

  • Connect multiple coding agents to a shared local model endpoint
  • Switch model providers without repeatedly editing agent configuration
  • Configure retries, credential rotation, and fallback models
  • Add vision, web search, and MCP tools to existing models
  • Inspect request routes, token usage, latency, and estimated costs

Claude Code Router FAQ

What is Claude Code Router?

Claude Code Router is an open-source local model gateway and control plane for coding agents. Claude Code Router supplies a stable local endpoint while centralizing providers, models, accounts, routing rules, tools, and request logs.

Is Claude Code Router free?

Claude Code Router is available as an open-source project under the MIT License. Claude Code Router offers desktop downloads, an npm CLI, and Docker deployment; the repository does not state prices for provider API usage.

Which coding agents does Claude Code Router support?

Claude Code Router supports Claude Code, Claude Design, Codex, Grok CLI, Kimi CLI, Kilo Code, OpenCode, Pi, ZCode, WorkBuddy, and compatible API clients. Claude Code Router provides agent profiles with model overrides, scopes, environment settings, and launch entries.

How does Claude Code Router handle routing and failover?

Claude Code Router supports routing conditions on request headers and bodies, prefixes, request rewrites, retries, and ordered fallback models. Claude Code Router also provides credential pools and key rotation to help keep requests running.

How do you install Claude Code Router?

Claude Code Router offers desktop downloads for macOS, Windows, and Linux, an npm CLI, and Docker deployment. Claude Code Router requires Node.js 22 or newer for the npm CLI, which starts the gateway and a browser-based management interface without Electron.

Which providers and API protocols does Claude Code Router support?

Claude Code Router supports OpenAI Chat and Responses, Anthropic Messages, Gemini Generate Content and Interactions, OpenRouter, DeepSeek, SiliconFlow, Moonshot, Kimi Code, Mistral, Z.AI, Bailian, and custom compatible providers. Claude Code Router includes provider presets, protocol probing, model discovery, and connectivity checks.

From the community

No reviews yet

Be the first to review this tool. What you write helps the next person choose.

Keep exploring

Alternatives to Claude Code Router

Cherry Studio

www.github.com

Open-source AI workstation for multi-model chat, agents, local knowledge bases, and image creation.

Freemium

Superpowers

www.github.com

An open-source skills framework for coding agents, covering design, planning, testing, debugging, and code review.

Free

OpenAI Agents SDK

www.github.com

Open-source Python framework for multi-agent workflows, tool use, sandbox tasks, and voice agents

Free

LibreChat

www.librechat.ai

An open-source interface for AI conversations, agents, code execution, and Model Context Protocol connections.

Free