Beta
Download

Model routers for Claude Code and Codex, compared

AutoRouter8 min read

AutoRouter, the Mac app for Codex and Claude Code, adds 20+ models to both apps as of October 2026, picks one for each turn after your own rules, uses your ChatGPT and Claude plans first, and shows each turn's model, what it cost and why. claude-code-router and LiteLLM are open-source gateways you run yourself. Weave Router scores each request, hosted or self-hosted; OpenRouter bills one balance of credits; and Portkey adds budgets and logs. For simple cases, Claude Code's opusplan and Codex profiles need nothing installed.

AutoRouter wrote this post, so weigh its rows accordingly. Claims about the other tools come from their own pages, linked where used and checked on October 22, 2026.

What does a model router do for Claude Code and Codex?

A model router sits between your coding agent and providers and picks the model for each request. Claude Code sends requests wherever ANTHROPIC_BASE_URL points (docs), and Codex accepts custom providers under [model_providers.<id>] (docs).

Which routers use your ChatGPT or Claude plan?

AutoRouter and Weave Router use the plans you already pay for before paid models; claude-code-router, LiteLLM and Portkey document passing a plan sign-in through; OpenRouter bills its own credits.

How do the routers compare?

They differ most in how they choose a model, as of October 22, 2026:

ToolUses your plansRuns as
AutoRouterYes, firstMac app, macOS 14+, beta
claude-code-routerImports Claude Code and Codex sign-insLocal gateway: desktop app, CLI or Docker
Weave RouterClaude plan in Claude Code; ChatGPT plan for listed models in CodexHosted, or self-hosted
OpenRouterNo, bills OpenRouter creditsHosted API
LiteLLMClaude plans pass throughSelf-hosted gateway
PortkeyClaude Max via Anthropic DirectHosted, or self-hosted gateway
ToolPrice (October 22, 2026)How it picks the model
AutoRouterFree $0; Pro $20/month with $20 of usage; paid models at provider price + 10%; Enterprise priced by seatsYour rules first, then a model that clears the quality bar for the turn
claude-code-routerOpen source (MIT), no fee listedYour ordered rules or scripts
Weave RouterHosted: 5% of routed spend; Apache-2.0 to self-hostScores every request with a cluster scorer
OpenRouterList price; 5.5% fee on credit purchases (Standard)Auto Router: about 30 task types, ranked by 7-day spend
LiteLLMOpen source (MIT); Enterprise features need a license keyAuto router (beta): complexity tiers you map to models
PortkeyDeveloper free; Production $49/monthConfigs: conditions, weights, fallbacks
Built-in pickersYour planYou choose; opusplan switches by mode

AutoRouter applies your rules first, written in plain English, such as "Use Claude Opus 5.5 for UI work." Otherwise it only considers models that clear the quality bar for the turn, and price decides between those. In the landing page's examples, 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. How AutoRouter picks a model covers the full order.

Every AutoRouter turn 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, while Weave Router publishes its benchmark methodology. Does model routing make your results worse? looks at that risk.

The others document their methods: Weave Router, OpenRouter's Auto Router, LiteLLM's auto router, claude-code-router and Portkey's conditional routing.

What does each router cost?

Every option pays providers for work your plans don't cover. As a worked example at prices checked on October 22, 2026, say those turns come to $100 at provider list prices in a month.

AutoRouter Pro costs the most on paid usage here, and that 10% on paid models is how AutoRouter earns. Price only decides between models that already clear the quality bar, your plans come first, and AutoRouter earns nothing on plans.

An illustrative example week on AutoRouter's landing page (October 22, 2026) has 30% hard, 45% medium and 25% quick turns at Claude Opus, Sonnet and Haiku 5.5 list prices, with cached input at a tenth of the input price. Pro sends 85% of quick and 75% of medium turns to open models, which its included usage pays for. In that example, Free does 1.9× the work of using a frontier model for everything, and Pro does 2.9×.

What do Claude Code and Codex do without a router?

Both apps let you pick and save models yourself, and Claude Code also switches models in plan mode and on server errors.

# Claude Code: Opus while planning, Sonnet while executing
/model opusplan

# Claude Code: try Sonnet, then Haiku, if the main model is overloaded
claude --fallback-model sonnet,haiku

# Codex: start with ~/.codex/deep-review.config.toml
codex --profile deep-review

These cost nothing extra and keep you on your plan, but you do the routing. AutoRouter adds a pick for every turn and models from every provider in the same picker.

When is something other than AutoRouter the better choice?

Choose another tool if you're not on a Mac, need prompts kept in your infrastructure, run a team on API keys, or use another coding agent.

To try AutoRouter, download it, sign in to your plans, allow Accessibility and click Enable for each app. Then choose AutoRouter as the model in a new session: from the model menu in Codex, or with /model in Claude Code.

Questions

Is LiteLLM's autorouter the same as AutoRouter?

No, LiteLLM's auto router is a beta feature of the open-source LiteLLM gateway (docs), and OpenRouter's Auto Router is the openrouter/auto model (docs). AutoRouter is a separate Mac app for Codex and Claude Code by Fractal Works, Inc.

Can I still pick a model myself?

Yes, every option here lets you pick a model yourself. In AutoRouter, choosing a model in the Codex or Claude Code picker sends turns straight to it, and AutoRouter routes only while it is the model selected.

What happens when my Claude or ChatGPT plan runs out?

With AutoRouter Pro, when a ChatGPT or Claude plan hits its limit, Pro keeps those turns going from the monthly usage until the plan resets, and if that runs out too, AutoRouter asks you to top up. Claude Code's own fallback chain doesn't switch models on rate-limit or billing errors (docs). How Claude Code usage limits work explains the limits.

Does AutoRouter store my prompts?

AutoRouter doesn't store transcripts, but it keeps the message that opens each turn, up to 4,000 characters, to review routing, plus records of the model chosen, tokens and cost (privacy).

Sources