router: Let your coding agent pick an AI model for each request
Added · Updated
Made by Weave
View profile on GitHub (opens in a new tab)Weave Router sits between a coding agent (Claude Code, Codex, opencode, pi or Cursor) and the AI providers, and picks a model from your enabled providers for each request.
It is a drop-in proxy (a stand-in server that forwards requests) speaking the Anthropic, OpenAI and Gemini formats, and the open-source version scores each request with a small embedding model on your own machine.
What it does
Point a client at the router instead of at Anthropic or OpenAI and it decides, for every request the agent sends, which of your enabled models should answer. The default open-source strategy is a cluster scorer derived from the Avengers-Pro research paper, which embeds the request with a small model running inside the router and matches it against clusters of similar work. Provider keys stay on your server, encrypted, and requests go straight from the router to the provider. It handles streaming, tool calls and images, can reach open models such as DeepSeek, Kimi, GLM and Qwen through OpenRouter, and exports traces to tools like Honeycomb or Grafana.
You could use it to…
- Let one proxy decide which model answers each request from your coding agent
- Point Claude Code or Codex at the router instead of a single provider
- Keep provider keys on your own server while requests are routed
Can I use this?
You'll need Node.js 18+ and a coding agent for the hosted quick start; Postgres and provider keys to self-host
Worth knowing Made by Workweave, a company that also sells a hosted version, and the one-command quick start routes your agent through that hosted service. It is Apache-2.0 from release router-v0.2.24; earlier releases kept their original licenses.
Why it's here
Not trending this week
Last on the BuildTube front page on 7 October 2026. It stays on BuildTube so you can still find it.
- 5,615 people have starred it on GitHub.
- Shown on Hacker News (Show HN) on 30 September, with 122 points.
Numbers checked on 8 November 2026; not refreshed since.
Behind it
View setup guideBuildTube has not run or verified this project. Everything above is written from what the creator published.
Made this?
Quick questions
- What is router?
- Point a client at the router instead of at Anthropic or OpenAI and it decides, for every request the agent sends, which of your enabled models should answer.
- What can I use router for?
- Let one proxy decide which model answers each request from your coding agent; Point Claude Code or Codex at the router instead of a single provider; Keep provider keys on your own server while requests are routed
- Can I run router on my computer?
- It runs as an add-on inside an AI assistant you already use.
- What do I need to use router?
- Node.js 18+ and a coding agent for the hosted quick start; Postgres and provider keys to self-host
- What license does router use?
- It is Apache-2.0 from release router-v0.2.24; earlier releases kept their original licenses.
More from this week
- Stroq Check AI coding agent sessions for leaked keys
Stroq scans your recent Claude Code and Codex sessions for keys that left your machine.
- agent-desktop Let AI agents read and click desktop apps
For developers building computer-use agents: agent-desktop lets an AI agent read and operate desktop apps on Mac, Windows or Linux from a command line.
- Auto-Ontology Give AI agents checked business meanings for your database
Help AI agents answer questions about company databases using reviewed definitions and SQL, with each answer showing its steps.
Explore by topic
Post this
Download share imageFor makers
Made this? Show it’s on BuildTube — add the badge to your README or embed the card on your site.
README badge (Markdown)
[](https://buildtube.app/p/gh-weave-os-router/)Embed card (HTML)
<iframe src="https://buildtube.app/embed/gh-weave-os-router/" width="560" height="240" style="border:0;max-width:100%" loading="lazy" title="router on BuildTube"></iframe>