Canonical: https://weaveos.com/products/router

Intelligent\
model router for\
coding agents
=============

About half the cost per trial compared with GPT-6 Astra on two coding benchmarks.

- 2.2–2.5× faster per trial
- Terminal-Bench 4.0: 62.1% vs 60.6% solved
- SWE-Atlas: 62.1% vs 66.1% solved

Solve rates compare Router with GPT-6 Astra over two attempts per task.

Loading router example…refactor the auth module: DeepSeek, score 91, cost $$. debug a flaky integration test: Claude, score 96, cost $$$. summarize this pull request: Llama, score 74, cost $. triage 40 support tickets: Gemini, score 82, cost $. migrate the config to YAML: Kimi, score 79, cost $$. draft the release notes: GPT-5, score 88, cost $. explain this stack trace: Claude, score 90, cost $$.

migrate the config to YAML

draft the release notes

explain this stack trace

refactor the auth module

debug a flaky integration test

summarize this pull request

triage 40 support tickets

migrate the config to YAML

draft the release notes

explain this stack trace

refactor the auth module

debug a flaky integration test

summarize this pull request

triage 40 support tickets

migrate the config to YAML

draft the release notes

explain this stack trace

refactor the auth module

debug a flaky integration test

summarize this pull request

triage 40 support tickets

migrate the config to YAML

draft the release notes

explain this stack trace

refactor the auth module

debug a flaky integration test

summarize this pull request

triage 40 support tickets

migrate the config to YAML

draft the release notes

explain this stack trace

refactor the auth module

debug a flaky integration test

summarize this pull request

triage 40 support tickets

migrate the config to YAML

draft the release notes

explain this stack trace

refactor the auth module

debug a flaky integration test

summarize this pull request

triage 40 support tickets

migrate the config to YAML

draft the release notes

explain this stack trace

refactor the auth module

debug a flaky integration test

summarize this pull request

triage 40 support tickets

Kimi79$$

GPT-588$

Claude90$$

DeepSeek91$$

Claude96$$$

Llama74$

Gemini82$

Kimi79$$

GPT-588$

Claude90$$

DeepSeek91$$

Claude96$$$

Llama74$

Gemini82$

Kimi79$$

GPT-588$

Claude90$$

DeepSeek91$$

Claude96$$$

Llama74$

Gemini82$

Kimi79$$

GPT-588$

Claude90$$

DeepSeek91$$

Claude96$$$

Llama74$

Gemini82$

Kimi79$$

GPT-588$

Claude90$$

DeepSeek91$$

Claude96$$$

Llama74$

Gemini82$

Kimi79$$

GPT-588$

Claude90$$

DeepSeek91$$

Claude96$$$

Llama74$

Gemini82$

Kimi79$$

GPT-588$

Claude90$$

DeepSeek91$$

Claude96$$$

Llama74$

Gemini82$

Weave reads every turn your agent takes and sends it to the cheapest model that’ll get it right — saving the frontier ones for when it counts.

Weave reads every turn your agent takes and sends it to the cheapest model that’ll get it right — saving the frontier ones for when it counts.

## Save the frontier modelfor the turns that count.

## Trained on 10× the sessions of 1.0.

A brand new session analysis model.

Benchmarks

## Comparing Weave Router to Astra

Same Codex harness, same tasks, two attempts each — Router and GPT-6 Astra paired on the same day and package.

QualitySpeedCost

Compared with GPT-6 Astra

62.1%2.2×48%62.1%2.5×54%62.1%tasks solved in two attemptsfaster per trial than Astraless cost per trial than Astratasks solved in two attemptsfaster per trial than Astraless cost per trial than Astratasks solved in two attemptsAstra solved 60.6%. One additional task solved out of 66.20.5 minutes versus Astra’s 44.1 minutes per trial.One task apart on 66. Router solved 62.1%; Astra solved 60.6%.Astra solved 66.1%. Five fewer tasks solved out of 124.6.8 minutes versus Astra’s 16.7 minutes per trial.$2.31 per trial, compared with Astra’s $5.04.Astra solved 60.6%. One additional task solved out of 66.

Tasks solved · pass\@2Minutes per trialCost per trialTasks solved · pass\@2Higher is betterLower is betterLower is betterHigher is better

1. Weave Router62.1%20.5 min$5.2262.1%
2. GPT-6 Astra60.6%44.1 min$10.0360.6%
3. OpenRouter Auto25.0%36.0 min$5.5225.0%

0100%100%

### Terminal-Bench 4.0

66 tasksTerminal workflows

62.1%2.2×48%62.1%2.5×54%62.1%tasks solved in two attemptsfaster per trial than Astraless cost per trial than Astratasks solved in two attemptsfaster per trial than Astraless cost per trial than Astratasks solved in two attemptsAstra solved 60.6%. One additional task solved out of 66.20.5 minutes versus Astra’s 44.1 minutes per trial.One task apart on 66. Router solved 62.1%; Astra solved 60.6%.Astra solved 66.1%. Five fewer tasks solved out of 124.6.8 minutes versus Astra’s 16.7 minutes per trial.$2.31 per trial, compared with Astra’s $5.04.Astra solved 66.1%. Five fewer tasks solved out of 124.

Tasks solved · pass\@2Minutes per trialCost per trialTasks solved · pass\@2Higher is betterLower is betterLower is betterHigher is better

1. Weave Router62.1%6.8 min$2.3162.1%
2. GPT-6 Astra66.1%16.7 min$5.0466.1%
3. OpenRouter Auto54.0%5.7 min$1.4954.0%

0100%100%

### SWE-Atlas

124 tasksCodebase QnA

Cost and time are per trial. Quality is pass\@2: a task counts if either of two attempts passed. Router and Astra are paired; OpenRouter is a separate run on the same tasks and graders. Charts share a scale within each metric.

[Benchmark results ](https://weaveos.com/blog/introducing-weave-router-2-0#article-benchmarks)[Reproduce it](https://github.com/weave-os/router/tree/main/bench)

Try Weave Code Max free for your first month with $10 in credits for $50 in usage, then pay $10/month.

[Explore Code Max](https://weaveos.com/products/router/max)

## How production token savings are measured

Weave’s [published production results](https://weaveos.com/blog/introducing-weave-router-2-0) report 40% average token-spend savings with Router. This historical aggregate describes the production usage observed; evaluate your own workload against a fixed comparison model.

In production, Router reporting estimates savings against a fixed comparison model you choose. It adjusts for each harness's token-work ratio, cache effects and task success where that signal exists. Subscription-served requests carry no per-request API charge and show no dollar savings, and ineligible or unmeasured calls are reported at zero. Data can be [exported](https://docs.weaveos.com/router/analytics-export) for finance review.

Read the [savings methodology](https://docs.weaveos.com/router/reporting) before comparing the report with your invoice.

How it works

## Four decisions behind each coding request.

[From the blogWeave Router 2.0: Astra quality at half the cost](https://weaveos.com/blog/introducing-weave-router-2-0 "Weave Router 2.0: Astra quality at half the cost")

- ### How hard is this turn?

  A complexity classifier trained on 10× the sessions of 1.0 scores it in single-digit milliseconds.

- ### Will switching cost more than it saves?

  Cache-aware. It only routes down when the saving beats the cost of rebuilding the cache.

- ### Is the cheap model actually finishing?

  An escalation classifier watches the task. Stall, loop, or miss → back to a frontier model.

- ### How is usage funded?

  Uses each provider key’s Before plans or After plans funding priority.

Easy prompt · Oct 29$9.26 less

push and post replies

Sent to

Claude Opus 5.5

$10.80

Router

Claude Haiku 5.5

$1.54

One example turn, not a benchmark. Benchmark results are above.

Integration

## Your tools stay the same.

Configure your coding client to send requests through Router. Add the provider keys you want to use.

```
npx @weave-os/router
```

Installers are available for Claude Code, Codex, Copilot CLI, OpenCode and Pi. Cursor uses manual configuration. In Claude Code 2.1.242 and later, Weave Auto appears in the native model picker, so engineers keep their workflow. Setup for each client, including the separate local flow for Claude Desktop, is in the [Router documentation](https://docs.weaveos.com/router/overview).

[Hosted setup](https://github.com/weave-os/router#30-second-quickstart)[Self-hosted setup](https://github.com/weave-os/router#or-self-host-the-whole-stack)[Coding-tool configuration](https://github.com/weave-os/router#wire-it-into-your-tools)[API reference](https://github.com/weave-os/router#endpoints)[Routing semantics](https://github.com/weave-os/router/blob/main/docs/SEMANTICS.md)

- claude code
- codex
- cursor

Weave Router

- Claude
- GPT
- DeepSeek
- GLM
- Gemini

Models

## The Weave model pool.

Every turn goes to the cheapest model in the pool that clears your quality bar.

- ### Claude
- ### GPT
- ### DeepSeek
- ### GLM
- ### Gemini

## Compare coding routers

[All comparisons](https://weaveos.com/compare)

- [Weave Router vs Cognition Adaptive ↗](https://weaveos.com/compare/weave-router-vs-cognition)
- [Weave Router vs LiteLLM ↗](https://weaveos.com/compare/weave-router-vs-litellm)
- [Weave Router vs Not Diamond ↗](https://weaveos.com/compare/weave-router-vs-notdiamond)
- [Weave Router vs Ramp Router for coding agents ↗](https://weaveos.com/compare/weave-router-vs-ramp)
- [Weave Code Max vs OpenCode Go ↗](https://weaveos.com/compare/weave-router-vs-opencode-go)
- [Weave Router vs OpenRouter ↗](https://weaveos.com/compare/weave-router-vs-openrouter)
- [Weave Router vs Martian ↗](https://weaveos.com/compare/weave-router-vs-martian)
- [Weave Router vs Nadir ↗](https://weaveos.com/compare/weave-router-vs-nadir)

## Managed coding routing or a self-hosted gateway

This comparison is Weave’s, based on LiteLLM’s public product page as of November 2026. LiteLLM is an open-source AI gateway and proxy for platform teams.

LiteLLM also documents classifiers, cache-aware switching, escalation and subscription support. Weave's addition is an operated coding policy and client setup. Teams can adopt that combination without building and maintaining the gateway themselves. Its savings report uses your chosen comparison model with cache and task-success adjustments, which gives an engineering leader a coding-specific baseline. The two can coexist, with LiteLLM governing application traffic and Router serving coding clients.

| Need                                                            | Better starting point                            | Reason                                                                                                |
| --------------------------------------------------------------- | ------------------------------------------------ | ----------------------------------------------------------------------------------------------------- |
| One gateway for all internal LLM applications                   | LiteLLM                                          | Provider coverage, budgets, rate limits and caching for traffic your services generate                |
| Lower model cost for Claude Code, Codex or Copilot CLI sessions | Weave Router                                     | Per-request selection with cache-switch and escalation built for coding sessions                      |
| Self-hosted gateway on your own infrastructure                  | LiteLLM, or the open-source Weave Router release | LiteLLM is self-hosted by design; Router's public release runs a different policy from managed Router |
| Connect routing spend to merged code and review                 | Weave Router with Weave analytics                | Token Intelligence relates AI spend to estimated expert-effort output                                 |

## Find your Router plan.

Choose a coding subscription or deploy Router in your own infrastructure.

### Code Max

Perfect for indie developers.

A coding subscription with intelligent routing across open-source models only.

$10/month

[Explore Code Max](https://weaveos.com/products/router/max)

### Enterprise

For teams that need Router in their own infrastructure.

Run intelligent model routing on-prem with hands-on deployment support.

Custom

[Request pricing](https://weaveos.com/demo)

## Funding, fees and self-hosting

How do the included allowances work?

Router plans are billed per seat and separately from Weave’s analytics platform plans. Included allowances belong to each seat and apply across six-hour, weekly and monthly windows. They are not pooled or transferable credits.

Code Max is free for the first month with $10 in credits for $50 in usage, then costs $10/month.

How are provider keys funded?

Bring-your-own-key (BYOK) funding follows each provider key’s Before plans or After plans setting; it is not always the last funding source.

Code Max keeps its open-source model restriction under every funding source.

What fees apply to credits and BYOK requests?

Purchased credits form a shared organization balance, and top-ups add 5.5% with a $0.80 minimum. BYOK requests carry a 5% platform fee drawn from the Weave credit balance. Enabling paid fallback does not authorize automatic recharge. The full rules are in [Router billing](https://docs.weaveos.com/router/billing).

Does installing Router also enable session analytics?

Router is independent from the Weave telemetry plugin. Router changes which model serves a request; the plugin captures sessions for Weave's analytics, cost and AI Skills reports. Installing Router does not turn on session analytics, and analytics customers do not need Router.

How does the open-source release differ from managed Router?

The public [weave-os/router](https://github.com/weave-os/router) repository is Apache-2.0 licensed from router-v0.2.24 onward; earlier releases keep their original licenses. The public build ships a frozen HMM routing policy that uses Google's embedding API by default. That policy differs from the one behind the managed service, so test self-hosted results on your own workload instead of assuming the managed figures carry over.

- [Router quickstart](https://weaveos.com/router/quickstart)
- [Claude Code setup](https://weaveos.com/router/claude-code)
- [Codex CLI setup](https://weaveos.com/router/codex)
- [Benchmark methodology](https://weaveos.com/router/benchmark-methodology)
- [Evaluate coding-agent costs](https://weaveos.com/router/coding-agent-cost-evaluation)

![](https://weaveos.com/_next/image?url=https%3A%2F%2Fresources.weaveos.com%2Fmarketing%2FmMNw5QGbJBqKNxLIMr6MAbSv8.png\&w=3840\&q=75)

![](https://weaveos.com/_next/image?url=https%3A%2F%2Fresources.weaveos.com%2Fmarketing%2FmMNw5QGbJBqKNxLIMr6MAbSv8.png\&w=3840\&q=75)

![](https://resources.weaveos.com/marketing/lFb9Txuy9PeRcKFpV65e99Di6s.png)

## Astra quality at half the cost.

Code Max is free for the first month with $10 in credits for $50 in usage, then $10 per seat per month. Router is billed separately from Weave analytics. A public Apache-2.0 release is available to self-host.

[Talk to an FDE](https://weaveos.com/demo)[Sign up](https://app.weaveos.com/sign-up)
