Claude Code with other models: routers and proxies (2026)
Our pick
Start with opencodex if you want Claude Code to run on DeepSeek, Gemini, Kimi or a local Ollama model. It is a local gateway that accepts the Anthropic Messages API and translates each request for the provider you pick. It installs with npm (npm install -g --allow-scripts=bun @bitkyc08/opencodex), and ocx claude starts Claude Code through it. It is MIT licensed. The table shows its last commit and latest release, and how the other tools compare.
Best for
- A gateway for a team, with keys and cost tracking
BerriAI/litellmA self-hosted AI gateway for 100+ LLM providers with virtual keys, spend tracking, guardrails and load balancing. Its Python SDK can run Claude Code, Codex, OpenCode, pi or Deep Agents on any model through the gateway.
- Falling back from a paid plan to cheap and free providers
decolua/9routerConnects Claude Code, Codex, Cursor and Cline to 40+ providers through a local endpoint. It falls back from subscription to cheap to free providers. Install with npm install -g 9router; the dashboard opens at localhost:20128.
- Switching providers from a desktop app
farion1231/cc-switchA desktop app for Windows, macOS and Linux that switches API providers in one click for Claude Code, Codex, Gemini CLI and other tools. It also manages MCP servers, skills and prompts, so you do not hand-edit config files.
- Claude Code on a local model through Ollama
ollama/ollamaOllama runs open models on your own machine and also offers cloud models. Run ollama launch claude to connect it to Claude Code.
- Claude Code on a local model on a Mac
raullenchai/Rapid-MLXA local LLM server for Apple Silicon. rapid-mlx launch claude-code starts the server and Claude Code, using a private profile that leaves your existing Claude Code settings alone.
- Cheap tasks on a local model, hard ones on your plan
Fast-Editor/LynkrAn LLM gateway with tier routing. lynkr wrap claude puts it in front of Claude Code and can send simple tasks to a free local Ollama model and complex ones to your subscription or API.
The repos compared
Checked on Nov 25, 2026: the oldest day any repo in the table was last read from GitHub.
| Repo | Stars | Last commit | Latest release | Licence | Needs |
|---|---|---|---|---|---|
| lidge-jun / opencodex A provider proxy that lets Claude Code and OpenAI Codex use other models. | 18,838 GitHub (opens in new tab) | Active Dec 1, 2026 | v2.100.12, Nov 30, 2026 | MIT | |
| BerriAI / litellm An AI gateway that calls 100+ model APIs in the OpenAI format. | 64,283 GitHub (opens in new tab) | Active Dec 2, 2026 | v1.112.0, Dec 1, 2026 | Custom | |
| cheaper-inference / OmniRoute An MIT-licensed AI gateway: one endpoint in front of many model providers. | 91,687 GitHub (opens in new tab) | Active Dec 2, 2026 | v3.8.54, Nov 17, 2026 | MIT | |
| decolua / 9router Connects Claude Code, Codex, Cursor, Cline and Copilot to other model providers. | 33,071 GitHub (opens in new tab) | Active Nov 23, 2026 | v0.5.35, Jul 16, 2026 | MIT | |
| farion1231 / cc-switch A desktop assistant app for Claude Code, Codex and OpenCode. | 158,555 GitHub (opens in new tab) | Active Dec 2, 2026 | v4.0.44, Nov 27, 2026 | MIT | Windows: Windows 10 and above; macOS: macOS 12 (Monterey) and above; Linux: x86_64 or… |
| Fast-Editor / Lynkr A CLI tool that works as an HTTP proxy for the Claude Code CLI. | 643 GitHub (opens in new tab) | Active Nov 29, 2026 | v9.6.0, Jun 23, 2026 | Apache-2.0 | |
| ollama / ollama Runs open models on your own machine and also offers cloud models. | 188,776 GitHub (opens in new tab) | Active Dec 2, 2026 | v0.40.18, Nov 24, 2026 | MIT | |
| raullenchai / Rapid-MLX An OpenAI- and Anthropic-compatible model server for Apple Silicon. | 4,203 GitHub (opens in new tab) | Active Dec 2, 2026 | v1.1.2, Nov 25, 2026 | Apache-2.0 | |
| musistudio / claude-code-router Routes requests from Claude Code and other agent clients across the model providers you choose. | 38,447 GitHub (opens in new tab) | Active Nov 21, 2026 | v3.1.6, Nov 21, 2026 | MIT |
Install commands
Copied from each repo. Read its setup steps before you run anything.
lidge-jun/opencodex
npm install -g --allow-scripts=bun @bitkyc08/opencodex
# Node 18+; the Bun runtime is bundled automatically
ocx start
# proxy + dashboard on localhost:10100 cheaper-inference/OmniRoute
brew install --cask zoispag/tap/omniroute-tray Questions
Can I use Claude Code with DeepSeek?
Yes, through a gateway. opencodex connects Claude Code to Claude, Gemini, Grok, GLM, DeepSeek, Kimi, Qwen, Ollama and other providers. OmniRoute is a gateway for Claude Code, Codex, Cursor, OpenCode, Cline and Copilot, and its models include DeepSeek.
What is a Claude Code router?
A gateway or proxy that sits between Claude Code and the model provider. Claude Code talks to the gateway, and the gateway sends each request on to the provider you chose. opencodex, for example, accepts the Responses, Chat Completions and Anthropic Messages APIs and translates each request into whatever the provider speaks. claude-code-router is a separate open-source project of that name; it is not listed on this site yet.
Can Claude Code run with local models?
Yes. Ollama has a launch command for it (ollama launch claude). On a Mac with Apple Silicon, Rapid-MLX has rapid-mlx launch claude-code. Lynkr can send simple tasks to a local Ollama model and the rest to your subscription or API.
Are these routers free?
The projects are open source, and the Licence column shows each licence. With OmniRoute you bring your own provider accounts, and each provider controls its own limits, availability and terms.
Do these tools only work with Claude Code?
No. opencodex works with Codex, Claude Code, Claude Desktop and Grok Build. 9router works with Claude Code, Codex, Cursor and Cline. cc-switch manages Claude Code, Codex, Gemini CLI, OpenCode and more.
