Claude Code Router alternatives
AutoRouter7 min read
The main Claude Code Router alternative for people on subscriptions is AutoRouter, the Mac app for Codex and Claude Code, which picks the model for each request with no API keys or routing rules to write, using the Claude and ChatGPT plans you already pay for. LiteLLM and Bifrost suit a shared team gateway, OpenRouter and Requesty one hosted bill, and Portkey budgets and request logs. Claude Code's own /model and opusplan need nothing installed (docs).
AutoRouter wrote this post, so weigh its rows accordingly. Every claim about another product comes from that product's own docs or pricing page, linked where it is used and read on November 16, 2026.
What does Claude Code Router do, and why look elsewhere?
Claude Code Router (CCR) is a free, MIT-licensed gateway on your own machine that sends Claude Code, Codex and other coding agents to the providers and models you choose (GitHub). It is active: version 3.1.5 shipped on November 16, 2026, as a desktop app for macOS, Windows and Linux, an npm CLI that needs Node.js 22 or later, or a Docker image.
People look elsewhere because CCR leaves the decisions to you. You add providers and API keys, or import a local sign-in, then write the routing: custom rules match in list order and the first match rewrites the request, and script rules run Node.js for anything more (routing docs). CCR doesn't judge how hard a request is on its own. Claude Code Router, explained and compared covers how it works in version 3.
Which Claude Code Router alternatives are there?
Seven options cover what people use CCR for, each best at one job:
- AutoRouter is best for developers who code with agents on ChatGPT, Claude, Grok or Gemini subscriptions. It is a Mac app that adds 20+ models to the model picker in Codex and Claude Code, with no API keys or endpoints to set up, and it also works in Cursor, Claude Desktop, T3 and Terminal. It uses the plans you already pay for first, lets any of those apps use any of your plans (a Claude plan in Codex, or a ChatGPT plan in Claude Code), and picks the model for each request after your own rules, which you can write in plain English. Free costs $0 and routes across two subscriptions; Pro is $50 a month with $20 of included usage and connects any number of plans (AutoRouter).
- LiteLLM is best for a platform team that wants one self-hosted gateway for every developer, with virtual keys, budgets and logs. It documents Claude Code signed in with a Claude Pro, Max, Team or Enterprise plan (tutorial, GitHub).
- Bifrost is best for a fast self-hosted team gateway under Apache 2.0. It forwards a Claude Code subscription sign-in on its
/anthropicroute while its virtual keys apply governance, and subscription limits still apply (docs, GitHub). - OpenRouter is best for one balance across hundreds of models with nothing to run. Claude Code connects with three environment variables and bills OpenRouter credits, with a 5.5% fee on credit purchases on Standard (guide, pricing).
- Requesty is best for a hosted bill with fallbacks and spend by repo and branch. It connects with
ANTHROPIC_BASE_URLandANTHROPIC_AUTH_TOKEN, and Pay as you go adds 5% to model prices (docs, pricing). - Portkey is best for budgets, rate limits and request logs on each provider. Developer is free and Production is $49 a month as of November 16, 2026 (pricing, Claude Code docs).
- Vercel AI Gateway is best if you already use Vercel:
vercel ai-gateway coding-agents setupconfigures Claude Code, Codex, Cursor and six other agents in one command, with no markup on tokens (changelog, pricing).
OpenRouter alternatives for coding agents compares what each hosted option charges, and LiteLLM alternatives for gateways and coding agents covers self-hosted gateways in more depth. CLIProxyAPI alternatives for Codex and Claude Code covers the proxy that serves API endpoints from CLI sign-ins, and Claude Code alternatives covers replacing Claude Code itself.
How do the Claude Code Router alternatives compare?
They differ most in how the model gets chosen, as of November 16, 2026:
| Tool | Best for | Picks the model by | Setup |
|---|---|---|---|
| Claude Code Router | Full control on one machine | Rules and scripts you write | Add providers and keys, write rules, apply an agent profile |
| AutoRouter | Coding agents on subscriptions | Your rules, then how hard each request is | Install, sign in to plans, click Enable |
| LiteLLM | Self-hosted team gateway | Model names you configure | Proxy with PostgreSQL, virtual keys |
| Bifrost | Fast self-hosted gateway | Model names you configure | npx -y @maximhq/bifrost, virtual keys |
| OpenRouter | One hosted balance | Your choice, or its Auto Router | API key and three variables |
| Requesty | Hosted bill with fallbacks | Your choice, with routing policies | API key and two variables |
| Portkey | Budgets and logs | Configs with conditions and fallbacks | API key and a provider header |
| Claude Code settings | Nothing to install | You, or opusplan by mode | None |
How does AutoRouter pick a model without routing rules?
AutoRouter applies your rules first, if you write any, and otherwise works out how hard each request is from the text you typed. It then only considers models that clear the quality bar for that task. Hard work goes to the most capable model your plans cover, and everything else goes to the model that costs you least, which is often your plan or a low-cost open model.
In the landing page's examples, which are illustrations, a change across six files goes to Claude Opus 5.5 on the Claude plan, and a commit message goes to a low-cost open model without touching the plan. Every request shows its model, what it cost and why, and you can rate a pick or choose a model yourself. AutoRouter sometimes misjudges how hard a task is and has no published benchmarks yet. How AutoRouter picks a model for each turn covers the full order, and How to write model routing rules in plain English covers writing your own.
What can you do with no extra tool?
Claude Code can switch models by itself in two cases, with nothing installed. /model opusplan uses Opus in plan mode and Sonnet for execution, and --fallback-model tries up to three models when the main one is overloaded or unavailable (docs).
# Opus while planning, Sonnet while executing
/model opusplan
# Try Sonnet, then Haiku, if the main model is overloaded
claude --fallback-model sonnet,haiku
Neither one reaches models from other providers, and the fallback chain doesn't switch on rate-limit or billing errors. How to change the model in Claude Code covers the rest of what Claude Code can do on its own.
When is Claude Code Router still the better choice?
Keep CCR when you want every routing decision in your own hands, when you are on Windows or Linux, or when requests should go straight from your machine to providers. It is free, supports agents beyond Codex and Claude Code, such as OpenCode, Kimi CLI and Pi, and its rules can match any header or body field (GitHub, routing docs). OpenCode vs Claude Code compares OpenCode itself with Claude Code.
AutoRouter needs macOS 14 or later, and its requests pass through AutoRouter's servers on their way to each provider. Model routers for Claude Code and Codex, compared covers the wider field, AutoRouter vs Portkey and AutoRouter vs Requesty compare two of the hosted options, and What is an LLM router? the kinds of router these tools are built on.
Questions
Is Claude Code Router still maintained?
Yes. Claude Code Router released version 3.1.5 on November 16, 2026 and had about 38,000 GitHub stars that day (GitHub).
Does Claude Code Router work with Codex?
Yes. Claude Code Router lists Codex among its supported agents, along with OpenCode, Kimi CLI, Pi and others (GitHub). AutoRouter also works in Codex, the app and the CLI, and in Cursor, Claude Desktop, T3 and Terminal.
Can I use my Claude plan in Codex?
Yes, with AutoRouter. Any app AutoRouter supports can use any plan you connect, so a Claude plan can run in Codex and a ChatGPT plan in Claude Code. Free connects two subscriptions and Pro connects any number.
Do I need API keys for a Claude Code Router alternative?
It depends on the tool. AutoRouter needs none, since it signs in to your plans. OpenRouter, Requesty and Portkey need their own API key, and LiteLLM and Bifrost need provider keys or a passed-through Claude sign-in (LiteLLM, Bifrost).
Sources
- AutoRouter
- Claude Code Router on GitHub
- Claude Code Router routing docs
- Claude Code model configuration
- LiteLLM on GitHub
- LiteLLM, Claude Code with a Claude subscription
- Bifrost on GitHub
- Bifrost, Claude Code
- OpenRouter, Claude Code integration
- OpenRouter pricing
- Requesty, Claude Code
- Requesty pricing
- Portkey pricing
- Portkey, Claude Code
- Vercel, coding agents in one command
- Vercel AI Gateway pricing