weave-os

    weave-os/router

    Model router for agentic systems. Routes every prompt to the right model in <50ms. Cut costs 40-70% with just an endpoint change.

    backend
    agentic-coding
    ai-gateway
    anthropic
    claude-code
    codex
    Go
    Apache-2.0
    5.6K stars
    163 forks
    5.6K GitHub watchers
    Updated Oct 31, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    No releases in the last 90 days; the most recent was 111 days ago, with 23 contributors on GitHub.

    Peaked at #58 in the weekly ranking the week of Aug 23, its best in the past year.

    Use Cases & Benefits

    • Routes AI model requests dynamically to the optimal model endpoint in under 50ms for agentic systems.
    • Reduces AI usage costs by 40-70% through intelligent per-request model selection without changing client endpoints.
    • Use for integrating multiple AI providers like Anthropic, OpenAI, and Gemini under a single API endpoint.
    • Use for self-hosting a secure, observable AI gateway with encrypted provider keys and OTLP tracing support.
    • Use for developers needing seamless compatibility with Claude Code, Codex, Cursor, and OpenRouter-based OSS models.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    One endpoint. Every model. Always the right one.

    A drop-in proxy for Anthropic, OpenAI, and Gemini that picks the best model for every request: using a tiny on-box embedder, not a vibes-based prompt.

    Built by Weave: The #1 engineering intelligence platform, loved by Robinhood, PostHog, Reducto, and hundreds of others.

    The fastest way: point Claude Code, Codex, or opencode at the hosted Weave Router with one command. No clone, no Docker, no Postgres.

    That's it. The installer asks which tool (Claude Code, Codex, or opencode), walks you through scope (user vs. project), grabs a router key, and wires the right config file. Other flavors:

    Requires Node ≥ 18 (Claude Code and opencode paths also need jq). Full flag reference: install/npm/README.md.

    Excerpt from the weave-os/router README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Aug 29: +150Aug 30: +447Aug 31: +249Sep 1: +191Sep 2: +144Sep 3: +118Sep 4: +96Sep 5: +87Sep 6: +76Sep 7: +42Sep 12: +22Sep 13: +22Sep 14: +20Sep 15: +20Sep 16: +34Sep 17: +10Sep 18: +53Sep 19: +53Sep 20: +39Sep 21: +24Sep 22: +208Sep 23: +177Sep 24: +142Sep 25: +99Sep 26: +75Sep 27: +62Sep 28: +42Oct 4: +7

    +4,660 stars over 82 days across 34 snapshot days; best day +447 on Aug 30.

    Forks

    163+116

    Open issues

    187+71

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    weave-os/router compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills187.8K+2.9K15—
    DuarteSantos8/openGym19.7K+2.4K602 days ago
    shiyu-coder/Kronos47.0K+2.3K16—
    NationalSecurityAgency/ghidra98.2K+2.3K6414 days ago
    microsoft/VibeVoice56.0K+1.1K29—
    weave-os/router5.6K—54111 days ago
    Category median56.0K+2.3K29—

    Discover Repositories

    Search across tracked repositories by name or description