Download

What is an LLM router?

Tyler J. CagleUpdated 10 min read

Key facts

An LLM router is software that sits between an application and several large language models and decides which model handles each request. Most routers aim to lower cost without losing answer quality, or to keep requests flowing when a provider fails. Auto, the Mac app for all your coding agents, is one kind of LLM router: it picks a model for each turn, after the person's own rules, and uses the AI subscriptions they already pay for first.

Several products with similar names, including LiteLLM's Auto Router, OpenRouter's Auto Router and Cursor's Auto, are made by other companies and are unrelated to Auto. Auto wrote this post. Claims about other products come from their own docs, linked where used and read on October 22, 2026.

What does an LLM router do?

An LLM router takes a request addressed to one model name, chooses which model or provider answers it, and returns the answer to the app. You call OpenRouter's Auto Router by sending openrouter/auto as the model, for example, and you deploy Microsoft Foundry's model router like any single model (October 22, 2026). The choice can rest on the prompt's text, how hard the task looks, price, availability, the user's rules or the user's subscriptions.

What kinds of LLM routers are there?

There are five common kinds: gateways, rule-based routers, learned or classifier routers, cascades and plan-aware routers. Many products combine two or more.

KindHow it picksWhat it optimizes
GatewaySends a named model's request to one of several providers, by price, load or failuresUptime and price per token
Rule-basedFixed rules, such as a keyword, a mode or a context lengthPredictable choices you control
Learned or classifierA trained or heuristic classifier predicts which model will answer well enoughCost at a target quality
CascadeTries a cheaper model, scores the answer, and moves up when the score is too lowCost, with extra calls on hard requests
Plan-awareWeighs which models your subscriptions already cover against per-token pricesUse of plans you already pay for

Gateways usually keep the model you asked for and change where it runs. LiteLLM's Router adds retries, fallbacks and least-busy, latency-based or cost-based strategies, and OpenRouter favors providers without recent outages, then the lowest price (October 22, 2026). To see how each gateway differs from Auto, read Auto vs LiteLLM, Auto vs OpenRouter or Auto vs Vercel AI Gateway. If you are leaving a gateway, Portkey alternatives for coding agents, OpenRouter alternatives for coding agents, LiteLLM alternatives for gateways and coding agents and Claude Code Router alternatives list the other options and what each is best for. CLIProxyAPI alternatives compares a gateway that picks among signed-in accounts with the other options. Magpie alternatives for Codex and Claude Code covers the local gateway where you design the routing groups yourself, and ZenMux alternatives for Codex and Claude Code covers the hosted gateway with model insurance.

Rule-based routers follow rules someone wrote. Claude Code's opusplan setting uses Opus in plan mode and Sonnet for execution (October 22, 2026). Rules are easy to predict, and they cover only the cases someone wrote down. Auto takes rules written in plain English, such as "Use Claude Opus 5.5 for UI work", and How to write model routing rules in plain English has examples to copy.

Learned and classifier routers predict which model will answer well enough. RouteLLM (June 2024) trained routers on human preference data, and its authors reported cost reductions of over 85% on MT Bench, 45% on MMLU and 35% on GSM8K against using only GPT-4, at 95% of GPT-4's performance. Hybrid LLM (ICLR 2024) reported up to 40% fewer calls to the large model with no drop in response quality. Microsoft Foundry's model router and Amazon Bedrock intelligent prompt routing are products of this kind (October 22, 2026).

Cascades try a cheaper model first. FrugalGPT (May 2023) scores each answer and calls the next model only when the score falls below a threshold; its authors reported matching GPT-4 with up to 98% lower cost on their tasks. A hard request can pass through several models before it is answered. A cascade can also step up effort on one model. In its guide Which Claude model should you build with? (November 9, 2026), Anthropic reports that running Claude Opus 5.5 at low effort and re-running only the failures at high passed about 97% of a SWE-bench Pro subset at about $0.17 per task, against 95.3% at $0.29 per task with every task at high.

Plan-aware routers know which AI subscriptions you already pay for and which models each one covers, and weigh that coverage against per-token prices when they pick. Auto is one. In Codex, OpenAI models run on the ChatGPT plan; in Claude Code, Claude models run on the Claude plan; other models are paid per use. For the other ways to make those plans last, see How to cut Claude Code and Codex costs.

What are the trade-offs of using an LLM router?

Every LLM router accepts some risk to quality, latency or caching in exchange for lower cost or better uptime.

Is Auto the same as LiteLLM's or OpenRouter's Auto Router?

No. Auto is a Mac app for all your coding agents, and the products below are built by other companies for other setups.

NameWhat it isHow you use it
AutoMac app that adds models from different providers to all your coding agents (Claude Code, Codex, Cursor, etc.) and picks one for each turnPick AutoRouter in the Codex model menu, or with /model in Claude Code
LiteLLM Auto RouterLiteLLM proxy feature, in beta, that sorts each request into a tier mapped to a modelauto_router/complexity_router in your LiteLLM config
OpenRouter Auto RouterAPI model ID that classifies the prompt's task type and ranks models by what OpenRouter users spend on itSend openrouter/auto as the model
Cursor AutoAuto option in Cursor's model picker; on Teams and Enterprise plans, Cursor Router classifies each agent requestChoose AutoRouter in Cursor

For routers that work with Codex and Claude Code, see model routers for Claude Code and Codex, compared. For one product at a time, see how Auto compares with other gateways and routers. If you are weighing a learned router such as Not Diamond's API, Not Diamond alternatives for model routing compares it with OpenRouter's Auto Router, RouteLLM and the rest.

Where does Auto fit among LLM routers?

Auto is a plan-aware router that applies the person's rules first and makes every model clear a quality bar for the task before price counts. For each turn:

  1. If one of your rules applies, it decides the turn, for example "Use Claude Opus 5.5 for UI work."
  2. Otherwise AutoRouter works out how hard the turn is and only considers models that clear the quality bar for it.
  3. Hard work goes to the most capable model your plans cover, and to credits only when none is strong enough.
  4. Everything else goes to the model that costs you least, often your plan or a low-cost open model. Unclear work is never treated as a quick task.

In the landing page's 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 so the plan isn't touched. Every turn shows its model, what it cost and why, and choosing a specific model in the picker sends turns straight to it. Auto sometimes misjudges how hard a task is, and you can rate the pick when it does. It works with all your coding agents (Claude Code, Codex, Cursor, etc.) on macOS 14 or later, and it is in beta. More in how AutoRouter picks a model for each turn.

Questions

Is an LLM router the same as an LLM gateway?

A gateway is the proxy that forwards requests to providers, and a router is the logic that chooses the model; many gateways include one. LiteLLM's proxy offers both load balancing and Auto Routing, while Cursor's Auto is a router inside an app. Cursor Auto mode vs Copilot auto vs Auto compares the routers built into coding tools.

Does an LLM router lower answer quality?

It can, whenever it sends a request to a model that can't handle it. RouteLLM's savings were measured at 95% of GPT-4's benchmark performance (July 1, 2024). Unless one of your rules names a model, Auto makes every model clear a quality bar for the task before price counts, and it sends unclear work to a model that can do it well.

Does Auto publish benchmarks?

Not for its own routing yet. For an engineering team, Auto builds a free benchmark built from the team's own shipped work, then tunes routing, skills and prompts against it. How do you build an AI coding benchmark for your company? walks through building one yourself from merged pull requests, an open scorecard for benchmarking coding agents on your own codebase gives the files to record and score it in, how to test an AGENTS.md change before it reaches your team uses one to check a change to your agents' instructions, and grading coding agents: tests, rubrics or an LLM judge covers how to score the results. Ratings from people and tests of each new model as it becomes available retune its routing, and the Auto team reviews real routing decisions. How do you test a model router change before it ships? describes how the team checks a routing change before it ships. How Ramp, Cursor and Uber build AI coding benchmarks compares how three companies built theirs.

What does Auto cost?

Auto Free is $0 a month and routes across the AI subscriptions you already pay for. Pro includes usage each month and adds every other model; paid models are billed at the provider's price plus 10%.

Sources