Claude Code model router
Claude Code Model Router
A lightweight API gateway that lets you switch to third-party AI models when using Claude Code.
Install
npx claude-code-model-router@latest setupFound in the project README. Check it for setup steps after installing.
git clone https://github.com/luwill/Claude-Code-Model-Router.gitFrom the README
๐ ccmr โ Claude Code Model Router Switch between 40+ third-party models mid-conversation โ no restarts, no config editing. ccmr is a lightweight gateway that runs on your machine: Claude Code talks to it, and it forwards every request verbatim to whichever model you pick โ DeepSeek, Kimi, Qwen, GLM, MiniMax, Step, MiMo or Doubao Seed, 44 models across 8 vendors, all prewired. Type /model kimi in a session and the very next message runs on Kimi. When a key dies, the error tells you exactly which env var to fix, where to get a new key, and the command that verifies it. Config edits hot-reload in about a second. Loopback-only by default; everything stays local. English ยท ็ฎไฝไธญๆ Why ccmr For most setups, switching models means editing env vars or config files and restarting Claude Code. ccmr is a live gateway: switching happens inside the session (/model, effective on the next message, context preserved), because Claude Code always faces one stable local address โ the change happens behind it. Honest scope: ccmr is an Anthropic-protocol passthrough gateway โ it does no protocol conversion and only talks to vendors' official Anthropic-compatible endpoints (that's why Zhipu CN is supported via its Coding Plan only: its pay-as-you-go side offers no Anthropic endpoint). Streaming, tool calls and thinking blocks are forwarded as-is; your context is never parsed or rewritten. Quick start You can also run the gateway in the foreground with ccmr start (logs in your terminal); gateways auto-started by ccmr claude log to ~/.ccmr/gateway.log. Plain claude still uses your official subscription โ the two modes have fully isolated configs. Commands Config discovery: -c path > ./models.yaml > ./config/models.yaml > ./.claude-router.yaml > ~/.ccmr/models.yaml. An explicit -c thatโฆ
Details
- Repository
- luwill/Claude-Code-Model-Router
- Language
- TypeScript
- License
- MIT
- Last updated
- 19 October 2026
FAQ
What is Claude Code Model Router?
A lightweight API gateway that lets you switch to third-party AI models when using Claude Code. It is a model router for Claude Code, from luwill/Claude-Code-Model-Router on GitHub.
How do I install Claude Code Model Router?
Run npx claude-code-model-router@latest setup, then follow the setup in the README.
Is Claude Code Model Router popular?
luwill/Claude-Code-Model-Router has 35 GitHub stars and 3 forks. It was last updated on 19 October 2026.
More model routers & proxies
Helm API
31EasyMetaAu/helm-api
Self-hosted LLM gateway โ route OpenAI/Anthropic/Gemini traffic by config, not code. Fallback, protocol translation, telemetry.
Claudecodex
35karem505/claudecodex
Use Claude Code's UI with OpenAI GPT-5.6 (Sol/Terra/Luna) as the engine โ powered by your ChatGPT Plus/Pro subscription via a local Codex proxy. One-line install; plain claude stays untouched.
LocalCodeCli
33Corporationakht/LocalCodeCli
A powerful local proxy for Claude Code CLI and Codex CLI supporting NVIDIA NIM, Google,Gemini, DeepSeek, and local Ollama models. Use claude code and codex for free in the terminal, VSCode extension, and discord like OpenClaw (voice supported)
Krouter
33sifxprime/krouter
Universal AI router โ save 20-40% tokens with RTK and never stop coding. Connect Claude Code, Cursor, Antigravity, Kiro, Copilot, Codex, Cline & any OpenAI-compatible client to 40+ providers & 100+ models via one local endpoint. Zenith sub-1ms failover, MITM, multi-account.
Problem Solver Skill
36cathrynlavery/problem-solver-skill
Claude Code skill for systematic problem diagnosis using progressive disclosure โ 55-line router + 7 on-demand framework references
Squeezr
34sergioramosv/squeezr
AI-powered Claude Code proxy that uses Haiku to semantically compress context and save thousands of tokens
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.