← All buyer guides

Best LLM Routers in 2026: 11 Tools Compared

Compare Weave Router, OpenRouter, LiteLLM, Cursor and seven more routing tools by coding workflow, model selection, subscriptions, deployment and task results.

By Co-Founder CTO
Published Updated Read Time: 12 min
On this page

Weave Router selects models inside Claude Code, Codex and other coding tools your team already uses. Its managed policy considers request difficulty and cache costs, and escalates when work stalls.

Weave reports average token-spend savings of 40% with Router. Its July 2026 customer update reported Router cost cuts of 20–80%. In the September paired coding benchmarks below, Router used 48–54% less cost per trial than direct GPT-6 Astra and finished 2.2–2.5x faster, with both solve rates shown. These are separate customer and benchmark results. Customer results, benchmark details.

The practical differences between routers are who operates model selection, which budget pays for each request, and how much control developers retain. Weave combines a managed coding policy with native model controls, per-session cost records and an Apache-2.0 self-hosting path. The comparisons below cover the differences in setup, capacity, policy operation and deployment.

This guide is written by Weave. Product descriptions were reviewed November 13, 2026; the published benchmark below evaluates named versions, not every current product in this list.

Which router should you choose?

Scroll horizontally if needed →

ToolHow it worksWhat Weave adds
Weave RouterManaged model selection, client setup and an Apache-2.0 releaseManaged routing across coding clients or a separate self-hosted frozen policy
OpenRouter Auto / Auto CodeAutomatic model and effort selection on an API-credit or BYOK pathManaged coding policy and client setup
Cursor RouterNative routing in Cursor's agent workflowA shared routing setup across Claude Code, Codex and other supported clients
Ramp RouterA managed gateway with opt-in coding strategiesA coding policy, linked-seat workflow and a commercial self-hosting path together
LiteLLMA general gateway with configurable Auto RoutingA hosted coding policy without operating the gateway
RouteLLMAn open model-selection framework and serving pathCoding routing without building and calibrating the system yourself
Not Diamond CodeGated coding recommendations with local forwardingSelf-serve setup for a multi-client routing pilot
Portkey / Prisma AIRS AI GatewayConditional routing and gateway governanceCoding model selection without writing your own request-routing rules
Microsoft Foundry Model RouterModel selection within FoundryCoding routing outside a Foundry deployment
Amazon Bedrock Intelligent Prompt RoutingSelection within supported model-family configurationsOne coding policy across the providers and models you enable in Weave
Vercel AI GatewayShared access, virtual models, fallbacks and session affinityA coding-session selection policy

1. Weave Router

Weave handles the model decision as the agent reads files, writes code and works through failed tests. Its policy considers request difficulty, the cost of rebuilding a warm cache and signs that a task needs a stronger model. The installer connects Claude Code, Codex, GitHub Copilot CLI, OpenCode and Pi. Cursor setup covers Agent/Ask; Tab and Apply remain on Cursor's models. Product, source and setup.

Automatic routing does not have to remove developer control. In Claude Code 2.1.242 and later, the installer adds Weave Auto to the native model picker. Another model choice passes through when the organization can serve it. GitHub Copilot CLI gets a weave/auto entry. Claude Desktop’s Code tab and local Cowork use a separate installer with a local proxy and trusted certificate on macOS or Linux; cloud Cowork is outside that path. Client setup and model controls.

Choose hosted Weave to leave policy operations with Weave, or run the Apache-2.0 release commercially in your infrastructure. Self-hosting gives you control of the routing service and provider configuration. It uses a frozen HMM policy, with Google’s embedding API as the default; use make up-hmm to load it because plain make up starts a stub classifier. Self-hosted policy.

Code Max is free for the first month with $10 in credits for $50 in usage across open models, then costs $10/month. The request export helps teams inspect usage and cost.

Weave also publishes engineering research from the separate analytics platform. By July 2026, that analysis covered more than 2 million human and AI code contributions across 20,000+ engineers at 1,000+ companies. Use the Router task results below to evaluate routing performance and the engineering data to understand broader output trends. Published research scale.

The engineering analytics platform is a separate product from Router. It adds code-output, review, quality and cost analysis, but a Router plan does not automatically include those reports or join every request to a merged PR. Evaluate the products together when you need both model selection and engineering measurement, with each connection's scope made explicit.

2. OpenRouter

OpenRouter's Auto Code chooses a model and effort per turn, paid through API credits or provider keys.

What Weave adds over OpenRouter

Weave operates a coding-specific routing policy across supported clients, with cache-aware selection and escalation.

Weave can use OpenRouter as a configured upstream, so its catalog can remain part of your setup. In Weave's September 2026 evaluation, the earlier OpenRouter Auto Beta policy solved 25.0% of Terminal-Bench tasks versus Weave's 62.1% on the same tasks and graders, with the two evaluation runs conducted within three days of each other; that unpaired arm used a policy OpenRouter has since replaced, so it is dated evidence, not a test of Auto Code (results).

Auto Code, detailed comparison.

3. Cursor Router

Cursor Router provides real automatic selection centered on Cursor's editor and agent runtime, including its SDK.

What Weave adds over Cursor Router

Weave Router works across Claude Code, Codex, GitHub Copilot CLI and OpenCode. A team can use one routing service while engineers retain their preferred coding clients.

Weave's Cursor integration covers Agent and Ask; Tab and Apply stay on Cursor's models. Check those paths separately during a rollout so engineers know which requests use the shared routing service.

Cursor Router, Weave source and client setup.

4. Ramp Router

Ramp's default coding workload keeps the requested model; Switchyard and Jev Auto add model selection as opt-in beta strategies.

What Weave adds over Ramp Router

Weave operates the hosted coding policy and also provides an Apache-2.0 self-hosting path. Weave Auto handles request difficulty, cache costs and escalation.

The managed service and self-hosted release are separate operating choices. Use hosted Weave for its operated policy, or evaluate the frozen Apache-2.0 policy with your own provider configuration.

Ramp workloads, detailed comparison.

5. LiteLLM

LiteLLM Auto Routing already supports classifiers, stall escalation, cache-aware behavior and subscriptions.

What Weave adds over LiteLLM

Hosted Weave operates model selection, cache-aware switching and escalation for the connected coding clients. Your platform team does not have to deploy and maintain a routing gateway to use that service.

In a pilot, test client setup, forced-model behavior and request-cost records.

LiteLLM Auto Routing, Weave quickstart, detailed comparison.

6. RouteLLM

RouteLLM provides an Apache-2.0 framework for evaluating and calibrating model selection, plus an OpenAI-compatible server.

What Weave adds over RouteLLM

Weave's hosted service includes coding-client setup, session handling, cache-aware decisions and escalation. The team can use an operated policy without developing and calibrating its own router.

With RouteLLM, the team owns the development and calibration built on the framework. With hosted Weave, engineers can connect their coding clients and test the provided policy on completed tasks, costs and latency.

RouteLLM repository, Weave setup.

7. Not Diamond Code

Not Diamond advertises multi-harness support, but Code access is gated and its detailed public setup covers Claude Code. Its recommendation service receives derived metadata rather than raw prompts unless you consent.

What Weave adds over Not Diamond Code

Weave provides self-serve installers for Claude Code, Codex, GitHub Copilot CLI, OpenCode and Pi. The off command restores a client's previous setup, which makes a pilot easier to reverse.

A pilot can include several supported clients and a pinned model baseline. Compare completed tasks and request costs, and use the off command to restore the previous client setup when the test ends.

Not Diamond Code, detailed comparison.

8. Portkey / Prisma AIRS AI Gateway

Portkey, now Prisma AIRS AI Gateway, provides conditional routing and governance controls for teams defining application-specific rules.

What Weave adds over Portkey / Prisma AIRS AI Gateway

Weave operates a model-selection policy for coding work. It weighs request difficulty and cache-rebuild costs and can escalate stalled work, so the team does not have to author its own request-routing rules.

The coding rollout can be evaluated separately from application gateway governance. Connect the supported coding clients, inspect the models chosen across a session and compare the cost of completed tasks with a pinned baseline.

Portkey conditional routing, Weave policy.

9. Microsoft Foundry Model Router

Foundry Model Router provides automatic selection across its available catalogs, deployments and regions, including agentic scenarios.

What Weave adds over Microsoft Foundry Model Router

Weave connects coding clients and provider accounts without requiring a Foundry deployment.

Configure the clients and accounts your engineers use, then inspect which models serve each request. The setup lets the team evaluate managed coding selection independently of a Foundry deployment.

Foundry Model Router, Weave subscription configuration.

10. Bedrock Intelligent Prompt Routing

Bedrock Intelligent Prompt Routing selects within supported model-family configurations.

What Weave adds over Bedrock Intelligent Prompt Routing

Weave selects models across the providers your organization enables. It weighs cache costs and can escalate stalled work while engineers continue using their existing coding clients.

Bedrock prompt routing, Weave Router.

11. Vercel AI Gateway

Vercel AI Gateway already provides coding-agent setup, shared access, virtual models, fallbacks and session affinity.

What Weave adds over Vercel AI Gateway

Weave adds an operated coding-model policy across clients.

Inspect which capacity serves a request, how a forced-model choice behaves and what happens when the enabled allowance is exhausted.

Vercel coding agents, virtual models, Weave configuration.

Check routing behavior

Keep plan and usage costs visible in the test. Inspect the request export to understand which models served your work.

The same applies to model control. Test Weave Auto, a forced model and a session that stalls. The request export records the requested and served models, routing reason, provider and available policy information. Inspect the actual decisions after a model pin or an escalation instead of inferring them from model-mix totals. Managed Weave and the frozen self-hosted policy are separate operating choices, so test the version you intend to run.

What Weave's published results establish

Weave's Router 2.0 evaluation used the same Codex harness and tasks for paired Router and direct GPT-6 Astra runs, with two attempts per task.

Scroll horizontally if needed →

BenchmarkSolve rate: Weave / AstraCost per trial: Weave / AstraTime: Weave / Astra
Terminal-Bench 4.0, 66 tasks62.1% / 60.6%$5.22 / $10.0320.5 / 44.1 minutes
SWE-Atlas Codebase QnA, 124 tasks62.1% / 66.1%$2.31 / $5.046.8 / 16.7 minutes

That is 48% lower cost per trial and 2.2x faster completion on Terminal-Bench, and 54% lower cost per trial and 2.5x faster completion on SWE-Atlas. Router solved one more Terminal-Bench task and five fewer SWE-Atlas tasks than Astra. These September results show the cost, speed and solve-rate tradeoff for the tested configurations.

Compare what it costs to finish your coding work

Choose representative tasks and a pinned baseline. Keep the harness, tools, task inputs and acceptance checks the same. Record every run, including failures and retries. Compare completed tasks, total billed cost, elapsed time, review effort and any fixes needed afterward.

Weave's Router reporting breaks spending down by user, session and model, with request counts, cost per request and model mix. Its savings estimate compares routed work with a selected fixed model and adjusts for measured token-work differences, task success and cache costs where those measurements exist. It is not a head-to-head result against another routing product. Forced-model, pass-through, subscription-served and other unmeasured paths can report zero savings; zero does not mean that no request was served.

For a slow session, inspect the per-call timing fields: routing latency, upstream latency, total latency and time to first token. Review cache reads and creation alongside the requested and served models. That separates time spent choosing a model from time spent waiting for it, and helps explain why a nominally cheaper model did not make a particular session cheaper. Keep the full task result, retries, plan fees and subscriptions in the final comparison.

Frequently asked questions

Which model router should a Claude Code or Codex team evaluate first?

Choose Weave Router when you want Weave to operate coding-model selection, account for cache costs and escalate stalled work. Start with the setup guide.

How should we compare coding-router costs?

Weave reports average token-spend savings of 40% with Router. For your own budget, compare the cost of completing the same accepted tasks, including retries, plan fees and subscriptions. The billing guide explains allowances and credits; session costs help you inspect what the test actually consumed.

Start with Weave’s setup guide and its public source. For an organization-wide view of whether AI spending supports useful code output, evaluate the separate Token Intelligence and Code Intelligence products. Detailed comparisons also cover Cognition Adaptive and Fusion, Nadir, Martian and OpenCode Go.

See the work behind your AI spend

Compare code output, AI cost and quality, then inspect the work behind the trend.

Book a demo