Model Routing for Coding Agents, Explained
Updated November 11, 2026 · first published October 15, 2026 · by the AQ team
Model routing means the harness picks a model for each request instead of you picking one for the session, which changes what you pay, which usage pool drains and how reproducible a run is. As of November 11, 2026, Cursor Auto's Cost mode bills as a Cursor-model request from the weekly pool, while Balance and Intelligence on Teams and Enterprise bill by the routed model and can use prepaid credit for third-party routes. Cursor also lists Gemini 4 Carbon at a temporary $2 per million input tokens and $10 per million output tokens through November 30, rising to $4 and $20 on December 1; that is a model-price promotion, not a subscription price cut.
AQ runs coding agents in isolated git worktrees with shared live terminals, a code editor and app previews on AQ-managed or team-controlled machines. Its built-in agent can pin a model or use AQ Auto, which chooses a model for each turn and writes the reason on the transcript.
What is model routing?
A model router is a small decision layer in front of a pool of models that chooses one per request, usually by classifying the prompt's task type and difficulty, then weighing price, capability and current availability. The idea predates the products: the RouteLLM paper (UC Berkeley, Anyscale and Canva, July 2024) trained routers on human preference data and reported, on its own benchmarks, cost reductions of over 85 percent on MT Bench while keeping 95 percent of GPT-4's quality. Products ship the same bet: most coding requests do not need the most expensive model, and a classifier can tell which ones do.
Three adjacent mechanisms get called routing but are not the same thing:
- Fallback switches models only when the primary fails. Claude Code, for example, can retry a turn on a configured fallback model when the primary is overloaded or unavailable: a reliability feature, not task-based selection.
- Role splits assign fixed models to fixed jobs. Claude Code's opusplan alias uses Opus during plan mode and Sonnet for execution; OpenCode's small_model option sends lightweight work like title generation to a cheaper model. The assignment is static.
- Effort dials change how hard one model thinks (reasoning effort in Codex, thinking budgets elsewhere) without changing which model runs.
True routing is dynamic: the same session can land on different models from one request to the next.
Which coding tools route models automatically? (November 2026)
| Tool | Automatic routing as of November 2026 | What decides |
|---|---|---|
| Cursor | Yes: Cursor Router (the relaunched Auto) | An ML classifier per agent request, by task type and complexity, under a Cost, Balance or Intelligence mode |
| GitHub Copilot | Yes: auto model selection, with task optimization in Copilot Chat on GitHub.com | Real-time health and availability tracking plus a task-complexity assessment, with Efficiency, Balance and Intelligence tiers |
| ChatGPT | Yes, since GPT-5 (August 2025) | A real-time router choosing between fast and reasoning models by conversation type, complexity, tool needs and explicit intent |
| OpenRouter (API) | Yes: Auto Router and the coding-tuned Auto Code | A decision model rates the request, then routing policy weighs live prices, cache status and benchmark performance within a cost tier |
| Claude Code | No per-task router | You set a model alias; opusplan is a fixed plan/execute split, and fallbacks cover availability, not task difficulty |
| Codex CLI | No | The model comes from config or a flag; reasoning effort is a dial on that model |
| OpenCode | No main-model router | You set the model; small_model (or an automatic cheaper pick from your provider) covers lightweight tasks only |
Cursor relaunched Auto as the Cursor Router: a machine-learning classifier runs on each agent request and routes by task type and complexity, with the stated goal of picking the most cost-effective model that still produces comparable results. As of November 11, 2026, Cost uses the previous Auto logic, Balance optimizes intelligence, speed and cost, and Intelligence chooses more capable models for harder tasks. Balance and Intelligence consume usage limits faster than Cost. Individual plans have Cost mode only; Teams and Enterprise can enable all three modes. Enterprise model blocks are respected, and Cursor requires Grok 4.6 for the router to work.
GitHub Copilot's auto model selection documentation, checked November 11, 2026, lists availability in Copilot in the cloud, Copilot Chat on GitHub Mobile, Eclipse, Xcode and Visual Studio. Task optimization is generally available in Copilot Chat on GitHub.com: one system tracks real-time model health and availability, another evaluates task complexity, and Efficiency, Balance and Intelligence tiers change the routing preference. Auto excludes models outside your plan or administrator's policy. Paid plans get a 10 percent discount on model costs when using auto in Copilot Chat or Copilot cloud agent.
ChatGPT is where routing went mainstream: OpenAI's GPT-5 system card (August 2025) describes a real-time router picking between a fast model and a deeper reasoning model based on conversation type, complexity, tool needs and explicit intent (asking it to think hard counts), trained continuously on signals like model-switch behavior and measured correctness, with mini variants taking over once usage limits are hit. The API never got the router: API callers pick a model by name.
OpenRouter treats routing as an API product. Its current Auto Router documentation, checked November 11, 2026, describes Auto and a coding-tuned Auto Code. A decision model rates eleven aspects of the request, then routing policy weighs live prices, cache status and benchmark performance within your cost tier to choose both model and reasoning effort. Allowed and excluded model lists constrain the pool, sessions avoid unnecessary model switches to preserve prompt cache, and the response's model field reports which model answered.
And where there is no router, say so plainly: Claude Code runs the alias or model you set, Codex CLI runs the model in its config file or flags, and OpenCode runs your configured model, each rechecked against the vendor's documentation on November 11, 2026 (Claude Code, Codex, OpenCode). Their automatic behaviors (fallback chains, opusplan, small_model) are real but fixed-role, not per-request selection.
What signals can a router use?
Across the products above, the inputs reduce to a short list:
- Task class and difficulty. The core signal everywhere: a rename is not a refactor, and classifiers can tell them apart from the prompt and context.
- Context size. A request carrying 300k tokens of repository context can only go to models whose context window fits it, which alone can decide the route.
- Price and cache. Cursor states the cost-effective-comparable-result goal outright, and OpenRouter weighs live prices, cache status and a cost tier.
- Availability and health. Copilot routes around degraded models in real time; Claude Code's fallback chain is this signal without the rest of the router.
- Policy and plan. Enterprise-facing routers exclude models an admin blocked or the plan does not include.
- Your stated intent. GPT-5's router listens for explicit cues, and most routers let a manual model pick override them entirely.
What routing means for cost and usage limits
Routing changes your bill from a price you chose to a distribution you influence. On usage-based pricing you pay the routed model's rate per request: OpenRouter charges the selected model's standard rate with no additional router fee, while Copilot charges for the model auto selects, minus its 10 percent discount on paid plans. That can land below always running the frontier model, but it is not a savings guarantee: two similar days can cost different amounts, and a router update can shift your average with no change on your side.
Cursor now has a more specific answer. Its model and plan pricing and Router documentation, checked November 11, 2026, separate the mode, plan and routed model:
| Cursor Auto mode and plan | How the request bills | Cursor Token Rate |
|---|---|---|
| Cost, on individual plans with Auto and on Teams/Enterprise | A Cursor-model request that draws from the weekly pool, whatever model serves it | No |
| Balance or Intelligence, on Teams/Enterprise with Cursor Router enabled: Cursor-model route | The routed model's list price, drawn from the weekly pool | No |
| Balance or Intelligence, on Teams/Enterprise with Cursor Router enabled: third-party route | The routed model's API list price, paid from prepaid credit | $0.25 per million input, output and cached tokens on eligible models |
Third-party models are not in the included weekly pool. On individual Premium plans and above, direct third-party requests pay API list price from prepaid credit, with no Cursor Token Rate; Plus and Free exclude third-party models. On Teams and Enterprise, the $0.25 per million token rate applies only to eligible third-party requests. Cursor models and Cost mode are exempt, as are third-party models whose cache-read price is strictly below $0.10 per million tokens across every pricing tier. Do not assume every third-party request pays the rate.
Gemini 4 Carbon is a current example, not a plan reprice. Cursor's official November 11 announcement offers 50 percent off through November 30: $2 per million input tokens and $10 per million output tokens, rising to $4 and $20 on December 1. The live model-pricing table and Gemini 4 Carbon page confirm those dates and rates. For 1 million input tokens plus 1 million output tokens with no cached tokens, the model charge through November 30 is $12 from prepaid credit on an individual Premium-or-higher plan. An eligible Teams/Enterprise Balance or Intelligence route adds $0.50 of Cursor Token Rate, making $12.50. On December 1 those totals become $24 and $24.50 at list rates, before any applicable regional data-residency uplift. Carbon's promotional $0.10 cache-read price does not qualify for the exemption because that exemption requires strictly below $0.10 across every pricing tier.
On subscription plans the same routing logic applies to limits rather than dollars: a router that reaches for the expensive model burns a plan window faster, the dynamic behind Claude Code's usage limits and the subscription versus API credits tradeoff generally. Cursor makes that explicit when Balance and Intelligence consume usage limits faster than Cost. ChatGPT inverts it: there the limit changes the routing, with mini models taking over at the cap.
What routing means for reproducibility
A routed session is not reproducible the way a pinned one is. The same prompt on the same repository can land on different models on different days because the router updated, the pool changed, a model degraded, or a policy shifted. That is fine for everyday work and bad for anything you need to compare: with a router in the loop, you no longer know what you measured. The practical hygiene: know where your tool reports the routed model (OpenRouter returns it in the model field; Cursor admins can show it for Balance and Intelligence, but it is hidden by default), record it when a run matters, and switch to a pinned model when the variable must hold still. Cursor's model pool also changes over time, so a logged model name is evidence about that run, not a promise about the next one. A/B testing a new coding model on your own repo covers the controlled version of that comparison.
When is a pinned model the right call?
- Evaluations and bake-offs. When comparing models, harnesses or prompts, pin everything except the thing under test.
- Bisecting a regression. When agent output quality drops, you need to know whether the model changed under you before blaming your prompt or your repo.
- Long, stateful sessions. Mid-task switches can change style and judgment midstream; for a delicate multi-hour refactor, one model the whole way is easier to review.
- Compliance. If policy says which models may see your code, a pin is simpler to attest than a router plus an exclusion list.
- Learning a model's character. Calibrated trust comes from watching the same model work for a while.
For routine fixes, small features and triage, routing removes a repeated decision without promising a lower bill. Which harness you run matters more than which router it ships; the coding agent harness directory maps the field.
Where AQ fits
AQ is the multiplayer coding harness where engineering teams run AI coding agents like Claude Code and Codex together: shared live terminals, a code editor, and app previews, in your own cloud. Agents run as the real CLIs (Claude Code, Codex, Cursor Agent, Kimi, Grok, or plain shells) in isolated worktrees and persistent sessions on team-controlled or dedicated AQ-managed machines, so each CLI's own model behavior, routed or pinned, is what you get under your own login. AQ never marks up usage on your own subscriptions. Sessions stream live to the browser, survive a closed laptop and resume from another device, and teammates can open the same workspace and watch the same session.
AQ's built-in agent also offers AQ Auto, which chooses a model for each turn and writes the choice and its reason on the transcript. AQ Auto is separate from Cursor Router. For a model comparison, every AQ workspace gets its own git worktree and branch, so two pinned or routed runs cannot collide and both keep running after everyone disconnects. The Free plan runs one person's agents on your own Mac with the AQ Mac app, with no time limit. The AQ Pro plan is $50 per user per month during early access (standard $200, billed monthly), with team-controlled VMs or a dedicated always-on AQ-managed machine, the rate locked for your first 12 months and $10 of AQ credits per seat each month.
Frequently asked questions
What is model routing in AI coding tools?
Model routing is when the tool picks which model handles each request instead of you picking one for the session. A router classifies the request (task type, difficulty, context size) and weighs price, capability and availability, sending easy work to fast, cheap models and hard work to frontier models. As of November 2026, Cursor's Router, GitHub Copilot's auto model selection, ChatGPT's GPT-5 router and OpenRouter's Auto Router all work this way.
Does Claude Code automatically route between models?
No, not per task. As of November 2026 Claude Code runs the model alias you set, and its automatic behaviors are narrower: the opusplan alias always uses Opus in plan mode and Sonnet for execution (a fixed split, not a decision per request), and configured fallback models only take over when the primary is overloaded or unavailable. Per Anthropic's documentation, rate-limit and billing errors do not trigger a model switch.
Is Cursor's Auto mode cheaper than picking a model myself?
Not necessarily. As of November 11, 2026, the outcome depends on your plan, optimization mode, routed model, weekly pool and token-rate eligibility. Cost draws from the weekly pool as a Cursor-model request with no Cursor Token Rate. On Teams and Enterprise, Balance and Intelligence can route to a Cursor model from that pool or a third-party model at API list price from prepaid credit; eligible third-party routes also add $0.25 per million tokens. Balance and Intelligence consume usage limits faster than Cost. Compare the same tasks against a pinned model rather than assuming routing saves money. Gemini 4 Carbon's temporary rate ends after November 30 and does not change the subscription price.
Can I see which model a router picked?
Usually, and you should check where. As of November 2026, OpenRouter returns the served model in the response's model field and offers optional router metadata explaining the pick. In Cursor Balance and Intelligence, admins control whether the routed model appears, and it is hidden by default. Record the served model for any run you might need to explain or reproduce later.
Should I use automatic model routing or pin one model for coding?
Route when you want the tool to choose and model identity is not a variable you need to control. Pin a model when you are evaluating or comparing models, bisecting a quality regression, running a long delicate session you want stylistically consistent, or attesting to a compliance rule about which models see your code. The cleanest comparisons pin everything except the variable under test.