# Weave Router vs Martian

Canonical: https://weaveos.com/compare/weave-router-vs-martian

Title: Weave Router vs Martian

Weave automatically selects models for coding requests, accounts for cache-rebuild costs and escalates stalled work. Martian’s public Claude Code and Codex guides use explicitly configured models. Weave provides automatic selection, client installation and session cost records as one service. Weave reports average token-spend savings of 40% with Router.

Sources: [Weave Router: routing, cache-aware switching, escalation and subscriptions](https://weaveos.com/products/router); [Weave Router session cost: requested vs actual cost per session](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/docs/SESSION_COST.md); [Martian: Claude Code integration with a configured model](https://docs.withmartian.com/integrations/claude-code); [Martian: Codex integration and model profiles](https://docs.withmartian.com/integrations/codex)

[Try Weave Router](https://weaveos.com/router/quickstart) · [See pricing](https://weaveos.com/pricing/router)

Sources reviewed: 2026-11-13

## The short version

Weave selects coding models automatically for each request.

### Weave Router

Automatic coding selection with monthly plans

- Weave Auto chooses the model for each coding request
- Accounts for cache rebuilds and escalates stalled work
- Code Max $10, Enterprise custom

Sources: [Weave Router semantics: sessions, turns and per-action routing](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/docs/SEMANTICS.md); [Weave Router: routing, cache-aware switching, escalation and subscriptions](https://weaveos.com/products/router); [Weave Router pricing: Code Max and Enterprise, billed separately from the platform](https://weaveos.com/pricing/router); [Weave Router billing: per-seat allowances, usage windows and purchased credits](https://docs.weaveos.com/router/billing)

#### What is Weave Router?

Weave Router chooses the coding model as requests arrive. It evaluates the cost of a cache rebuild before switching and can escalate a stalled task to a stronger model. The client installer and session-cost API let a team change from a named-model configuration to automatic selection and inspect what ran. Code Max has published monthly allowances and limits; it does not include Weave’s engineering analytics.

Sources: [Weave Router: routing, cache-aware switching, escalation and subscriptions](https://weaveos.com/products/router); [Weave Router README: installer, self-hosting and Apache-2.0 license](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/README.md); [Weave Router pricing: Code Max and Enterprise, billed separately from the platform](https://weaveos.com/pricing/router); [Weave Router billing: per-seat allowances, usage windows and purchased credits](https://docs.weaveos.com/router/billing)

### Martian

Model gateway and research tools

- API access to 200+ models
- Named-model coding-client setup
- ARES and K-Steering

Sources: [Martian Gateway: 200+ models through one API](https://docs.withmartian.com/gateway); [Martian: Claude Code integration with a configured model](https://docs.withmartian.com/integrations/claude-code); [Martian documentation: Gateway, ARES and K-Steering](https://docs.withmartian.com/)

#### What is Martian?

Martian is an AI research lab with a Gateway for 200+ models and setup guides for Claude Code and Codex. ARES supports agent training and evaluation; K-Steering supports inference-time steering. The public Gateway guides describe named-model setup, while additional partner documentation requires login.

Sources: [Martian: research lab positioning](https://withmartian.com/); [Martian documentation: Gateway, ARES and K-Steering](https://docs.withmartian.com/); [Martian Gateway: 200+ models through one API](https://docs.withmartian.com/gateway)

## Weave Router and Martian, side by side

| What matters | Weave Router | Martian |
| --- | --- | --- |
| Who picks the model | Weave does, per request: a complexity classifier, cache-aware switching and an escalation classifier. Pin a model with /force-model when you need one. | Configured model IDs in Claude Code; named profiles in Codex. |
| Coding agents | One-command install for Claude Code, Codex, GitHub Copilot CLI, OpenCode and Pi. Cursor is manual, Agent and Ask only. | Guides for Claude Code and Codex, plus other integrations listed in the docs. |
| Model access | Anthropic, OpenAI and open-source models, depending on plan. Code Max is open-source only. | 200+ models via OpenAI- and Anthropic-compatible APIs. |
| Pricing | Code Max: $0 for the first month with $10 in credits for $50 in usage, then $10/month. Open-source models only.<br>Enterprise: custom, in your infrastructure. Billed separately from the Weave platform. | Dashboard for keys and models.<br>No automatic-router price is listed on the reviewed public pages. |
| Evidence you can check | Apache-2.0 source, a paired benchmark against GPT-6 Astra, a public Codex harness and per-session cost records. | Request history and usage; ARES/K-Steering are separate research tools. |

**Who picks the model**

Sources: [Weave Router: routing, cache-aware switching, escalation and subscriptions](https://weaveos.com/products/router); [Weave Router configuration and model controls](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/docs/CONFIGURATION.md); [Martian: Claude Code integration with a configured model](https://docs.withmartian.com/integrations/claude-code); [Martian: Codex integration and model profiles](https://docs.withmartian.com/integrations/codex)

**Coding agents**

Sources: [Weave Router README: installer, self-hosting and Apache-2.0 license](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/README.md); [Martian: Claude Code integration with a configured model](https://docs.withmartian.com/integrations/claude-code); [Martian: Codex integration and model profiles](https://docs.withmartian.com/integrations/codex); [Martian documentation: Gateway, ARES and K-Steering](https://docs.withmartian.com/)

**Model access**

Sources: [Weave Router pricing: Code Max and Enterprise, billed separately from the platform](https://weaveos.com/pricing/router); [Martian Gateway: 200+ models through one API](https://docs.withmartian.com/gateway); [Weave Router billing: per-seat allowances, usage windows and purchased credits](https://docs.weaveos.com/router/billing)

**Pricing**

Sources: [Weave Router pricing: Code Max and Enterprise, billed separately from the platform](https://weaveos.com/pricing/router); [Martian: Claude Code integration with a configured model](https://docs.withmartian.com/integrations/claude-code); [Martian Gateway: 200+ models through one API](https://docs.withmartian.com/gateway); [Weave Router billing: per-seat allowances, usage windows and purchased credits](https://docs.weaveos.com/router/billing)

**Evidence you can check**

Sources: [Weave Router README: installer, self-hosting and Apache-2.0 license](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/README.md); [Weave Router 2.0: paired coding benchmark results](https://weaveos.com/blog/introducing-weave-router-2-0); [Weave Router: reproducible Codex benchmark harness](https://github.com/weave-os/router/tree/main/bench); [Weave Router session cost: requested vs actual cost per session](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/docs/SESSION_COST.md); [Martian Gateway: 200+ models through one API](https://docs.withmartian.com/gateway); [Martian documentation: Gateway, ARES and K-Steering](https://docs.withmartian.com/)

## Automatic selection and named-model access

### Weave: automatic model selection

Weave handles the model decision using request difficulty, cache costs and task progress. Your team gets a coding policy to use now, plus session records that show the resulting model mix and cost.

Sources: [Weave Router: routing, cache-aware switching, escalation and subscriptions](https://weaveos.com/products/router); [Weave Router README: installer, self-hosting and Apache-2.0 license](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/README.md); [Weave Router session cost: requested vs actual cost per session](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/docs/SESSION_COST.md); [Martian: Claude Code integration with a configured model](https://docs.withmartian.com/integrations/claude-code)

### Martian: broad access, your model choice

Martian’s Gateway connects Claude Code and Codex to its model catalog. The public guides configure a model ID or profile; they do not describe the automatic coding-selection policy a team would run.

Sources: [Weave Router: routing, cache-aware switching, escalation and subscriptions](https://weaveos.com/products/router); [Weave Router README: installer, self-hosting and Apache-2.0 license](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/README.md); [Weave Router session cost: requested vs actual cost per session](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/docs/SESSION_COST.md); [Martian: Claude Code integration with a configured model](https://docs.withmartian.com/integrations/claude-code)

![Weave connects the coding client, selects models with session context and reports cost. Martian’s client guides connect to the Gateway, configure a named model and record usage.](https://resources.weaveos.com/research/comparisons-2026-10-16/assets-v2/weave-router-vs-martian-workflow.png)

Weave decides the model for each coding action. Martian's documented setup sends requests to the model you configure. Workflow schematic, not a performance chart.

Sources: [Weave Router: routing, cache-aware switching, escalation and subscriptions](https://weaveos.com/products/router); [Martian Gateway: 200+ models through one API](https://docs.withmartian.com/gateway); [Martian: Claude Code integration with a configured model](https://docs.withmartian.com/integrations/claude-code); [Martian: Codex integration and model profiles](https://docs.withmartian.com/integrations/codex)

Why Weave Router

## What Weave Router adds over Martian

### Automatic model selection

Weave uses a complexity classifier for each request, considers cache-rebuild costs before switching and escalates when the agent stalls or loops. Martian’s public client guides configure a named model. With Weave, engineers can use automatic selection throughout the task and pin a model when they want a fixed choice.

Sources: [Weave Router: routing, cache-aware switching, escalation and subscriptions](https://weaveos.com/products/router); [Weave Router semantics: sessions, turns and per-action routing](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/docs/SEMANTICS.md); [Martian: Claude Code integration with a configured model](https://docs.withmartian.com/integrations/claude-code); [Martian: Codex integration and model profiles](https://docs.withmartian.com/integrations/codex)

### Client installation

Weave’s installer covers Claude Code, Codex, GitHub Copilot CLI, OpenCode and Pi. It changes the selected client’s configuration and can restore that configuration with off --<client>. Start one client at a time, keep existing acceptance tests and inspect session cost before changing the rest of the team’s setup. Cursor requires manual setup for Agent and Ask chats only.

Sources: [Weave installer: Weave Auto and native model selection](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/install/README.md); [Weave Router README: installer, self-hosting and Apache-2.0 license](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/README.md)

### Monthly pricing

Code Max is free for the first month with $10 in credits for $50 in usage across open-source models, then costs $10/month. Martian’s reviewed public pages do not provide a current automatic-router price.

Sources: [Weave Router pricing: Code Max and Enterprise, billed separately from the platform](https://weaveos.com/pricing/router); [Martian Gateway: 200+ models through one API](https://docs.withmartian.com/gateway)

### Session costs and source access

When moving from a named model to automatic selection, Weave’s report shows the model mix, spending by model and user-to-session drilldowns. Set the fixed comparison model explicitly. The dashboard adjusts its baseline using measured harness work ratios, task-success differences and cache economics; it retains negative savings. Unmeasured models, forced requests and subscription-served calls receive no credited savings. The session API separately exposes actual and requested-model costs. The Apache-2.0 source lets engineers inspect the service itself.

Sources: [Weave Router session cost: requested vs actual cost per session](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/docs/SESSION_COST.md); [Weave Router README: installer, self-hosting and Apache-2.0 license](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/README.md); [Router reporting: comparison model, adjustments, drilldowns and session API](https://docs.weaveos.com/router/reporting)

### Published coding cost and completion results

Weave’s September 2026 paired trials cost 46% to 52% as much as direct GPT-6 Astra per trial. Pass@2 solve rates were 62.1% versus 60.6% on 66 Terminal-Bench 4.0 tasks and 62.1% versus 66.1% on 124 SWE-Atlas tasks. The public harness shows how to measure completed tasks and cost; these were not Martian head-to-head trials.

Sources: [Weave Router 2.0: paired coding benchmark results](https://weaveos.com/blog/introducing-weave-router-2-0); [Weave Router: reproducible Codex benchmark harness](https://github.com/weave-os/router/tree/main/bench)

## Setup and day-to-day use

### Choosing models

**Weave Router:** Use Weave Auto to select the model as requests arrive. Pin a session with /force-model when the task requires a particular model.

**Martian:** Configure a model ID or Codex profile.

Sources: [Weave Router: routing, cache-aware switching, escalation and subscriptions](https://weaveos.com/products/router); [Weave Router configuration and model controls](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/docs/CONFIGURATION.md); [Martian: Claude Code integration with a configured model](https://docs.withmartian.com/integrations/claude-code); [Martian: Codex integration and model profiles](https://docs.withmartian.com/integrations/codex)

### Harder work

**Weave Router:** The escalation classifier sends stalled, looping or failing tasks back to a frontier model.

**Martian:** Select a stronger model; inspect request history.

Sources: [Weave Router: routing, cache-aware switching, escalation and subscriptions](https://weaveos.com/products/router); [Martian Gateway: 200+ models through one API](https://docs.withmartian.com/gateway)

### Reporting

**Weave Router:** Requested vs actual cost per session, including sessions where routing cost more.

**Martian:** Gateway usage and request history.

Sources: [Weave Router session cost: requested vs actual cost per session](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/docs/SESSION_COST.md); [Martian Gateway: 200+ models through one API](https://docs.withmartian.com/gateway)

## When to choose Weave Router

Use Weave when you need automatic coding-model selection, client installation and session-cost reporting. Martian’s public client setup configures named models; its gateway and research tools are separate capabilities.

Sources: [Martian Gateway: 200+ models through one API](https://docs.withmartian.com/gateway); [Martian documentation: Gateway, ARES and K-Steering](https://docs.withmartian.com/); [Weave Router: routing, cache-aware switching, escalation and subscriptions](https://weaveos.com/products/router)

## Evaluate Weave Router with Martian

### Keep a working baseline

Save your current endpoint and client configuration. Pick representative tasks with tests and a known-good pinned model.

### Connect one coding harness

Run npx @weave-os/router --claude or --codex, configure the provider access you need, and start a fresh session.

### Measure completed work

Compare accepted changes, session cost, cache reads and writes, retries and elapsed time against the named-model setup.

### Expand after review

Roll out to a small group first. npx @weave-os/router off --<client> restores the previous setup.

## Frequently asked questions

### What cost and speed results has Weave Router delivered?

Weave’s reported Router customer average is 40% lower token spend, and the July 2026 customer update reported 20–80% cost cuts. Against direct GPT-6 Astra in September’s paired trials, Router spent 48–54% less per trial and finished 2.2–2.5x faster. It solved 62.1% versus 60.6% on Terminal-Bench and 62.1% versus 66.1% on SWE-Atlas. These results do not supply Martian’s current price or test its named-model setup. Use the recorded sessions and total plan costs to compare that setup.

Sources: [Weave’s July 2026 reported product results](https://weaveos.com/blog/weave-raises-13.5m-series-a-to-build-engineering-and-token-intelligence); [Weave Router 2.0: paired coding benchmark results](https://weaveos.com/blog/introducing-weave-router-2-0)

### Can I use automatic routing and still choose a specific model?

Yes. Claude Code 2.1.242+ gets Weave Auto in its native model picker. Choose it for routing, or select another model that your organization can serve. You can also use /force-model to pin a session, keeping a deliberate model choice available when you need it.

Sources: [Weave installer: Weave Auto and native model selection](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/install/README.md)

### Which product automatically chooses coding models instead of only connecting my agent to a chosen model?

Weave Router automatically selects coding models, accounts for cache-rebuild costs and escalates stalled work. Martian’s public Claude Code and Codex guides connect those clients to explicitly configured models through its gateway. Weave handles selection as the session progresses and records the resulting model mix and cost.

Sources: [Weave Router: routing, cache-aware switching, escalation and subscriptions](https://weaveos.com/products/router); [Weave Router session cost: requested vs actual cost per session](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/docs/SESSION_COST.md); [Martian: Claude Code integration with a configured model](https://docs.withmartian.com/integrations/claude-code); [Martian: Codex integration and model profiles](https://docs.withmartian.com/integrations/codex)

### Is Martian still a model router?

Martian's current site presents a research lab, and its docs cover the Gateway, ARES and K-Steering. The Claude Code and Codex guides use models you name. We didn't find a current public spec or price for an automatic router, so ask Martian directly.

Sources: [Martian: research lab positioning](https://withmartian.com/); [Martian documentation: Gateway, ARES and K-Steering](https://docs.withmartian.com/); [Martian: Claude Code integration with a configured model](https://docs.withmartian.com/integrations/claude-code)

### Can Martian be used with Claude Code and Codex?

Yes. Martian has guides for both. The Claude Code guide sets the Gateway endpoint and a model; the Codex guide sets a Responses API provider and model profiles.

Sources: [Martian: Claude Code integration with a configured model](https://docs.withmartian.com/integrations/claude-code); [Martian: Codex integration and model profiles](https://docs.withmartian.com/integrations/codex)

### Is Weave cheaper than Martian?

We can't say without Martian's current price. Weave publishes Code Max at $10/month. Compare total session cost on the same tasks once you have Martian's quote.

Sources: [Weave Router pricing: Code Max and Enterprise, billed separately from the platform](https://weaveos.com/pricing/router); [Martian Gateway: 200+ models through one API](https://docs.withmartian.com/gateway); [Weave Router billing: per-seat allowances, usage windows and purchased credits](https://docs.weaveos.com/router/billing)

## Try Weave Router in your coding client

Install Weave for one coding client and run representative tasks. Compare completed work, elapsed time and total session cost before expanding to the team.

[Try Weave Router](https://weaveos.com/router/quickstart) · [See pricing](https://weaveos.com/pricing/router)

## Sources and comparison method

Published by Weave. Martian's homepage, documentation, Gateway page and Claude Code and Codex guides were reviewed November 13, 2026. These public pages don't document a current automatic router, its policy or its price. Martian's earlier router identity is historical. Weave facts come from the Router product and pricing pages and the public weave-os/router repository at commit b1f7028. No matched Weave-versus-Martian test has been run.

- [Weave’s July 2026 reported product results](https://weaveos.com/blog/weave-raises-13.5m-series-a-to-build-engineering-and-token-intelligence)
- [Weave Router billing: per-seat allowances, usage windows and purchased credits](https://docs.weaveos.com/router/billing)
- [Weave installer: Weave Auto and native model selection](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/install/README.md)
- [Martian: research lab positioning](https://withmartian.com/)
- [Martian documentation: Gateway, ARES and K-Steering](https://docs.withmartian.com/)
- [Martian Gateway: 200+ models through one API](https://docs.withmartian.com/gateway)
- [Martian: Claude Code integration with a configured model](https://docs.withmartian.com/integrations/claude-code)
- [Martian: Codex integration and model profiles](https://docs.withmartian.com/integrations/codex)
- [Weave Router: routing, cache-aware switching, escalation and subscriptions](https://weaveos.com/products/router)
- [Weave Router pricing: Code Max and Enterprise, billed separately from the platform](https://weaveos.com/pricing/router)
- [Weave Router README: installer, self-hosting and Apache-2.0 license](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/README.md)
- [Weave Router semantics: sessions, turns and per-action routing](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/docs/SEMANTICS.md)
- [Weave Router configuration and model controls](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/docs/CONFIGURATION.md)
- [Weave Router session cost: requested vs actual cost per session](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/docs/SESSION_COST.md)
- [Weave Router self-hosting: frozen HMM policy sidecar](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/sidecars/hmm/README.md)
- [Weave Router 2.0: paired coding benchmark results](https://weaveos.com/blog/introducing-weave-router-2-0)
- [Weave Router: reproducible Codex benchmark harness](https://github.com/weave-os/router/tree/main/bench)
- [Router reporting: comparison model, adjustments, drilldowns and session API](https://docs.weaveos.com/router/reporting)

## Inspect the evidence

- [Inspect Weave Router source](https://github.com/weave-os/router/blob/b1f70281bdca136edf61b049b9880de655d13379/README.md)
- [Read the paired Router 2.0 benchmark](https://weaveos.com/blog/introducing-weave-router-2-0)
- [Set up Weave Router](https://weaveos.com/router/quickstart)
