Coding router comparison
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.
91478Sources reviewed
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
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.
911102Martian
Model gateway and research tools
- API access to 200+ models
- Named-model coding-client setup
- ARES and K-Steering
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.
456Side by side
Weave Router and Martian, side by side
| What matters | Weave Router | Martian |
|---|---|---|
| Who picks the model91378 | 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 agents11785 | 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 access1062 | Anthropic, OpenAI and open-source models, depending on plan. Code Max is open-source only. | 200+ models via OpenAI- and Anthropic-compatible APIs. |
| Pricing10762 |
|
|
| Evidence you can check1116171465 | 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. |
The key difference
Automatic selection and named-model access

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.
91278Client 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.
311Monthly 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.
106Session 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.
141118Published 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.
1617In practice
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.
Try it on your own work
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.
A few more details
Frequently asked questions
Compare coding routers
All comparisons- Cognition Adaptive and Fusionvs Weave RouterDevin’s built-in routing
- LiteLLMvs Weave RouterConfigurable LLM gateway
- Not Diamondvs Weave RouterMetadata-based recommendations
- Ramp Routervs Weave RouterGateway with optional model selection
- OpenCode Govs Weave Code MaxModel catalog with separate allowances
- OpenRoutervs Weave RouterAPI-funded coding routing
- Nadirvs Weave RouterRecommendations and managed proxy
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.
Behind the comparison
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
- Weave Router billing: per-seat allowances, usage windows and purchased credits
- Weave installer: Weave Auto and native model selection
- Martian: research lab positioning
- Martian documentation: Gateway, ARES and K-Steering
- Martian Gateway: 200+ models through one API
- Martian: Claude Code integration with a configured model
- Martian: Codex integration and model profiles
- Weave Router: routing, cache-aware switching, escalation and subscriptions
- Weave Router pricing: Code Max and Enterprise, billed separately from the platform
- Weave Router README: installer, self-hosting and Apache-2.0 license
- Weave Router semantics: sessions, turns and per-action routing
- Weave Router configuration and model controls
- Weave Router session cost: requested vs actual cost per session
- Weave Router self-hosting: frozen HMM policy sidecar
- Weave Router 2.0: paired coding benchmark results
- Weave Router: reproducible Codex benchmark harness
- Router reporting: comparison model, adjustments, drilldowns and session API
