社区 Community 需审批 Needs approval

Weave Router — 给 coding agent 的开源模型路由 Weave Router — open-source model router for coding agents

Weave Router — open-source model router for coding agents

给编程 Agent 按任务换更合适的模型。 Route each coding-agent task to a model that fits it.

Weave Router — 给 coding agent 的开源模型路由 预览
预览:Playwright 实拍 weaveos.com/products/router 首屏 Preview: Playwright capture of weaveos.com/products/router above the fold
打开原文Open source

详细介绍Details

Weave Router 是给 coding agent 用的开源模型路由。README 的快路径是 `npx @weave-os/router`,可接到 Claude Code、Codex、opencode 或 pi;加上 `--local` 则在本机 8080 端口自托管,提供商密钥留在你的机器上。产品页仍展示兼容包名 `npx @workweave/router`。它按每次上游请求挑模型:难的步骤留给前沿模型,简单的步骤换到更便宜的模型。产品页用 Terminal-Bench 和 SWE-Atlas 对比 GPT-6 Astra 的通过率、耗时和花费,那些数字是厂商自述,本库没有复跑。README 写的是按 action 路由,不是按一整轮对话路由。这是一条工具笔记:不改你的 Agent 配置,也不代付订阅。 Weave Router is an open-source model router for coding agents. The README quickstart is `npx @weave-os/router` for Claude Code, Codex, opencode, or pi; `--local` self-hosts on port 8080 and keeps provider keys on your machine. The product page still shows the compatibility package `npx @workweave/router`. It picks a model per upstream request: harder steps stay on a frontier model, easier steps move to a cheaper one. The product page compares pass rate, time, and cost with GPT-6 Astra on Terminal-Bench and SWE-Atlas. Those figures are vendor claims and were not re-run here. The README says routing is per action, not per whole conversation turn. This is a tool tip: it does not rewrite your agent config or pay for a subscription.

它是什么What it is

Weave Router 是 Weave 做的开源代理,仓库 weave-os/router,许可 Apache-2.0,产品页在 weaveos.com/products/router。README 把它描述成 Anthropic、OpenAI、Gemini 以及 OpenAI 兼容端点的插入式代理:本机一个很小的 embedder 给每次 action 打分,再从你打开的提供商里选模型。最快的接法是 `npx @weave-os/router`,可选 `--claude`、`--codex`、`--opencode`、`--pi`;`--local` 改走本机 localhost:8080。README 写明 npm 包名是 `@weave-os/router`,旧名 `@workweave/router` 仍是兼容别名,所以产品页上的那条命令还在。自托管时密钥放在本机,请求从路由直接打到你配置的提供商。本站收成 Cases 工具笔记:晨间已点名、晚间补上,不是又一个聊天客户端,也不是 Grok Bot。 Weave Router is Weave’s open-source proxy. The repo is weave-os/router (Apache-2.0) and the product page is weaveos.com/products/router. The README describes a drop-in proxy for Anthropic, OpenAI, Gemini, and OpenAI-compatible endpoints: a small on-box embedder scores each action and picks a model from the providers you enabled. The fast path is `npx @weave-os/router`, with `--claude`, `--codex`, `--opencode`, or `--pi`; `--local` uses localhost:8080 instead. The README says the npm name is `@weave-os/router` and the old `@workweave/router` remains a compatibility alias, which is why that command still appears on the product page. When self-hosted, keys stay on your machine and requests go from the router to the provider you configured. Listed here as a Cases tool tip the morning note deferred — not another chat client, and not Grok Bot.

为什么推荐Why we recommend it 边界:Terminal-Bench 4.0 / SWE-Atlas 相对 GPT-6 Astra 的 pass@2、耗时与美元是产品页自述;英雄区 “Astra Level Quality / 2.3× / 51% of the cost” 同样是页面文案,不与两张表合成新指标。本库未复跑、未代跑 npx。 Why: the morning changelog named it as an evening candidate. Boundary: Terminal-Bench 4.0 / SWE-Atlas pass@2, time, and dollars versus GPT-6 Astra are product-page claims; the hero line “Astra Level Quality / 2.3× / 51% of the cost” is page copy too and is not merged with the two tables into a new metric. Not re-run here; npx was not run for you.

核验记录:来源、抓取与截图说明Verification log: sources, checks, and captures

主源是 README、产品页 https://weaveos.com/products/router 与 https://weaveos.com/router(晚间均 HTTP 200)、仓库 weave-os/router。https://github.com/workweave/router 晚间 301 到 weave-os/router。收录理由:晨间 changelog 把它标为晚间候选;Show HN item 49911500(2026-09-30T16:58:24Z / 约 2026-10-01 00:58 CST,Algolia 晚间核对 105pts)无外链,正文指向该仓库。gh api 晚间 Apache-2.0、5525★。预览 Playwright 实拍产品页首屏 3:2。不打星。Primary sources are the README, https://weaveos.com/products/router and https://weaveos.com/router (both evening HTTP 200), and the repo weave-os/router. https://github.com/workweave/router returned 301 to weave-os/router this evening. Show HN item 49911500 (2026-09-30T16:58:24Z / about 2026-10-01 00:58 CST, 105pts on Algolia at the evening check) has no external URL; the text points at that repo. Evening gh api: Apache-2.0, 5525★. Preview is a Playwright 3:2 capture of the product page above the fold. Unrated.

对照Contrast

左列是 README / 产品页对得上的事实,基准数字都标成厂商页面自述。右列说明为什么放在 Cases,以及不要把它当成已经替你跑过的「全面对齐 Astra」。 Left column: what the README / product page say, with bench figures marked as vendor page claims. Right column: why it sits in Cases, and why it is not a verified “matches Astra everywhere” result.

Weave Router Weave Router 对照本站口径 This library’s framing

是什么 What it is

Weave Router Weave Router

开源模型路由:一条 npx 接到现有 coding agent,或 `--local` 自托管。 Open-source model router: one npx command wires an existing coding agent, or `--local` self-hosts.

对照本站口径 This library’s framing

Cases「AI tool tip」。帮你少把简单步骤打到最贵的模型上,不是云端 Bot 托管。 An AI tool tip in Cases — spends less of the expensive model on easy steps; not hosted cloud Bot compute.

速度与花费 Speed and cost

Weave Router Weave Router

厂商页面自述:Terminal-Bench 4.0(66 题)pass@2 为 Router 62.1% / Astra 60.6%,每轮 20.5 分钟与 $5.22 对照 44.1 分钟与 $10.03。SWE-Atlas(124 题)为 62.1% 对照 Astra 66.1%,6.8 分钟 / $2.31 对照 16.7 分钟 / $5.04。英雄区另写约 2.3 倍更快、花费约一半。 Vendor page claims: Terminal-Bench 4.0 (66 tasks) pass@2 is Router 62.1% / Astra 60.6%, 20.5 min and $5.22 per trial versus 44.1 min and $10.03. SWE-Atlas (124 tasks) is 62.1% versus Astra 66.1%, 6.8 min / $2.31 versus 16.7 min / $5.04. The hero also says about 2.3× faster at about half the cost.

对照本站口径 This library’s framing

两张表和英雄句都是厂商自述,本库未复跑,也不合成一个新分数。选型看你自己的任务和账单。 Both tables and the hero line are vendor claims, not re-run here, and not merged into a new score. Choose from your own tasks and bill.

对接面 Integrations

Weave Router Weave Router

README 列 Claude Code、Codex、opencode、pi;产品页还写到 Cursor。按 action 路由,密钥默认留在本机。 The README lists Claude Code, Codex, opencode, and pi; the product page also names Cursor. Routing is per action, and keys stay on-box by default.

对照本站口径 This library’s framing

不替代 Cursor Cloud Agent / Grok Bot 云电脑;本条也不代你改配置或开通 Weave 订阅。 Does not replace Cursor Cloud Agents / Grok Bot cloud computers; this tip also does not rewrite your config or start a Weave subscription.

怎么试Try it

  1. 先读 README 和 Show HN Read the README and the Show HN first

    打开仓库 README,核对 Apache-2.0、`npx @weave-os/router` 和 `--local`。产品页上的基准表当作厂商自述来看。Show HN 是文字帖,没有单独的外链。 Open the repo README and confirm Apache-2.0, `npx @weave-os/router`, and `--local`. Read the product-page benches as vendor claims. The Show HN post is text-only and has no separate external URL.

  2. 按 README 接一个你已经在用的 Agent Point one agent you already use at it

    需要 Node 18 或更新。托管快路径用 `npx @weave-os/router`,或加上 `--claude` / `--codex` / `--opencode` / `--pi`。想密钥和路由都留在本机,用 `--local`。产品页的 `@workweave/router` 是 README 里的兼容别名。本站不代跑。 Node 18 or newer. The hosted fast path is `npx @weave-os/router`, or add `--claude` / `--codex` / `--opencode` / `--pi`. For keys and the router on your machine, use `--local`. The product page’s `@workweave/router` is the compatibility alias named in the README. This site does not run it for you.

  3. 用你自己的任务对一下账单 Check the bill on your own tasks

    接上之后看路由把哪些步骤打到前沿模型、哪些换到更便宜的模型。用你真实的仓库任务看通过率和花费,不要只抄 Terminal-Bench 或 SWE-Atlas 的厂商表。订阅档位以产品页当日文字为准。 After wiring it up, see which steps stay on a frontier model and which move to a cheaper one. Measure pass rate and spend on your real repo tasks — do not copy the vendor Terminal-Bench or SWE-Atlas table. Subscription tiers follow that day’s product page.

边界Boundaries

  • Apache-2.0。npm 包名以 README 的 `@weave-os/router` 为准;`@workweave/router` 是兼容别名。旧仓库路径会 301 到 weave-os/router。 Apache-2.0. The npm name follows the README’s `@weave-os/router`; `@workweave/router` is a compatibility alias. The old repo path 301s to weave-os/router.
  • 相对 GPT-6 Astra 的通过率、耗时和美元是厂商页面自述。英雄区的倍数和「一半花费」不与两张表合成新指标。本库未复跑。 Pass rate, time, and dollars versus GPT-6 Astra are vendor page claims. The hero’s multiple and “half the cost” are not merged with the two tables into a new metric. Not re-run here.
  • 本站未代跑 npx、未写入密钥、未改你的 Agent。产品页「按每一轮对话」的说法,以 README「按 action」为准。 This site did not run npx, write keys, or edit your agent. Where the product page says it reads every turn, the README’s per-action wording is the one this card follows.

相关案例Related cases