
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP-based routing layer that intercepts coding-tool prompts before the host model sees them and drafts answers on free or local models first.
llm-router is cataloged as an MCP server attributed to ypollak2. An MCP-based routing layer that intercepts coding-tool prompts before the host model sees them and drafts answers on free or local models first. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for llm-router are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
No. On a Claude Pro or Max subscription, routing goes through MCP tools and local models without API keys; provider keys are optional.
No. Routed drafts are advisory by default; Claude still takes the turn unless zero-Claude mode is enabled.
No. It runs entirely on your machine, with no hosted proxy, nothing sent to an llm-router service, and no account required.
README.md · b85bdbe3a91d · Fetched 2026-11-13 07:40:54 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
Stop spending your Claude Pro/Max quota on questions a free model can answer.
llm-router hooks into your coding tool's own lifecycle, reads each prompt before the model does, and drafts an answer on a free or local model first. No API keys needed on a Claude subscription — routing runs through MCP tools and local models.
One caveat: routed answers are advisory by default — Claude still takes the
turn unless you opt in to zero-Claude mode. By default some tool calls wait until a
prompt is routed; LLM_ROUTER_ENFORCE=off turns that off (all user settings: docs/configuration.md). Draft-rate and
acceptance figures live in docs/MEASUREMENT.md, with
their n, window and conditions.
You are on a Claude Pro or Max plan, have not spent a cent beyond it, and still hit the five-hour limit — not because you asked too much, but because every prompt went to the premium model: "what does this error mean", "reformat this JSON", "is the service up" drew the same quota as the question that needed it.
Most routers here are a proxy: your agent forwards requests using your API keys. That has a hard limit — a proxy cannot intercept a session authenticated by a subscription, because there is no key to forward.
| Pays per token | Pays a subscription | |
|---|---|---|
| What runs out | your invoice | your five-hour window |
| Needs API keys | yes | no |
| A proxy can help | yes | no — nothing to intercept |
| llm-router helps | yes | yes |
llm-router status reports verified and unverified savings
separately, each with its own n — not a blended percentage. This project does
not publish a general savings percentage; any number depends on your own
workload. See Savings below.
pip install llm-routing # installs the `llm-router` command
llm-router install # wire up Claude Code (default host)
llm-router doctor # check provider connectivity and setup
llm-router status # verify it's routing — est. savings vs baseline
Works with no API keys on a Claude Pro/Max subscription — routing goes
through MCP tools and local models. Adding provider keys widens the pool;
nothing requires them. See guide/PROVIDERS.md. To
install into another host, see Works With. The daily KPI job is installed only with consent (install --schedule-daily, or Y when asked; --no-schedule skips); uninstall removes it.
Python agents route in-process, no server: from llm_router import Router; r = Router(budget_usd=0.50).run("...") (await .arun(...) in async code; BudgetExceeded when the cap is spent).
| Host | Install |
|---|---|
| Claude Code (default) | llm-router install |
| Codex CLI | llm-router install --host codex |
| OpenCode | llm-router install --host opencode |
| Gemini CLI | llm-router install --host gemini-cli |
| GitHub Copilot CLI | llm-router install --host copilot-cli |
| OpenClaw | llm-router install --host openclaw |
| Trae IDE | llm-router install --host trae |
| Pi (pi.dev) (MCP server only; end-of-turn line planned in 16.1) | llm-router install --host pi |
| Factory Droid | llm-router install --host factory |
| Claude Desktop | llm-router install --host desktop |
| VS Code (native MCP) | llm-router install --host vscode |
| Cursor | llm-router install --host cursor |
| GitHub Copilot in VS Code (capability extension, no cost-routing) | llm-router install --host copilot |
| Windsurf / Cascade | llm-router install --host windsurf |
| Kimi Code (Moonshot AI) | planned (16.1); --host kimi reports why and exits 2 |
llm-router install --host all installs or prints every host config in one
pass. Full per-host detail, including what each host genuinely cannot do:
guide/HOST_SUPPORT_MATRIX.md.
Hooks intercept the prompt before your coding tool's own model sees it. A free
regex heuristic classifies it instantly, scoring about half of real prompts
with confidence — 788 of 1,571 measured (scripts/measure_low_signal_rate.py,
run 2026-09-23); the rest fall back to a default. A routable prompt gets a
draft from a free/local model first, then walks up the chain toward paid
models only if needed.
The draft is advisory — handed to Claude as an unverified hint, not a turn
replacement, unless you opt in to zero-Claude mode. Enforcement acts at the
tool-call level: smart (default) holds selected tool calls until the prompt
is routed; off disables that. Full modes and per-host overrides:
guide/GETTING_STARTED.md.
llm_* text tools, the gateway, streaming) contains an API key,
token or private key, llm-router sends it only to Ollama models on a loopback
daemon — direct, not through an HTTP proxy, with no semantic cache, judge
queue or cloud fallback — or refuses it with the secret's category and how to
proceed (cloud: prefix to override one request). Placeholders such as
AKIA...EXAMPLE or postgres:postgres@ are not refused. Not every door
enforces this: the router, gateway, SDK, llm_stream, llm_codex, llm_gemini
and the agent-route hook do; the Claude Code proxy (logs only), the opt-in
auto-route cloud classifiers, the hook's direct-execution Gemini/OpenAI calls,
agent delegation and other opt-in features do not, and what a host already
sent to its own model is out of reach. The per-door table, details and limits.llm_image / llm_video / llm_audio, and
llm_orchestrate for multi-step research.The default MCP surface shows 12 front-door tools (the CONSOLIDATED_TOOLS set in
src/llm_router/tool_surface.py; tests/test_doc_tool_counts_match_registration.py checks
this count against it); an opt-out shows everything registered (see docs/configuration.md for user settings).
| Topic | What | Guide |
|---|---|---|
| CLI | install, status, gain, doctor, okf index/status, sessions status and more | guide/GETTING_STARTED.md |
| Providers | Free-first — Ollama (local), OpenRouter, Gemini, Groq, your Claude subscription | guide/PROVIDERS.md |
| Routing Policies | conservative → balanced (default) → cost_aggressive; thresholds and YAML schema | guide/POLICIES.md |
| MCP Tools | Every tool with its signature | guide/TOOLS.md |
llm-router gain today # savings so far today
llm-router okf status # knowledge base freshness
llm-router sessions status # per-session summary
Savings figures are a counterfactual — what the same tokens would have cost
at API list price, against what was actually spent — not money saved on a flat
subscription. llm-router status and llm-router savings-report split
verified from unverified savings, each with its own n. Methodology,
assumptions and limitations: docs/MEASUREMENT.md.
llm-router runs entirely on your machine — no hosted proxy, nothing sent to an
llm-router service, no account required. A grounding check
(src/llm_router/grounding.py) discards any draft citing a file or function
absent from its context and the indexed repo, falling through to Claude.
LLM_ROUTER_DIRECT_EXECUTION is default on — a local model gets write_file,
edit_file and run_command under a confined, allowlisted path, and none of
that stops targeted deletes, git push --force, or exfiltration. Shell
redirects and copies that write outside the project root are refused by a static
tripwire, not a sandbox; an OS sandbox is 16.1. A command the tripwire
cannot judge (an interpreter one-liner, sudo, a $(...)) returns
needs_approval, but approval is not wired anywhere yet, so both command paths
treat it as refused and do not run it. Turn it off
with LLM_ROUTER_DIRECT_EXECUTION=false. Full analysis:
SECURITY.md.
Self-audits are published in audit/ and docs/repo_goals/AUDIT-2026-09-25.md (on 2026-09-25, of 20 goals: 13 met, 6 partial, 1 not met), including negative results.
Ground Truth accumulation (opt-in) builds a corpus of replayable routing decisions instead of unlinked telemetry; off by default since it's the only part that writes prompt text to disk. Details: guide/GROUND_TRUTH.md.
Full index: guide/README.md
| Document | Purpose |
|---|---|
| Quick Start | Fastest path to working routing |
| Getting Started | Full setup walkthrough |
| Host Support Matrix | Per-host feature comparison |
| Providers | Provider setup and model recommendations |
| Routing Policies | routing.yaml schema and authoring your own policy |
| Tool Reference | All MCP tools with examples |
| Architecture | Internal design and module structure |
| Troubleshooting | Common issues and fixes |
| Testing the Router | Isolation suite for verifying routing health |
| Measurement | What "savings" means and how it's computed |
| RouterArena | Benchmark methodology, results and negative findings |
| Ground Truth | Replayable routing corpus, opt-in |
| Benchmarks | Model cost/latency/quality table, regenerated by CI |
| Changelog | Release notes (archive) |
llm-router is scored on the RouterArena
benchmark, graded locally with this repo's harness and not yet independently
verified. Results with their n and source files, methodology and negative
results (including a proxy split that misled tuning):
docs/ROUTERARENA.md.
llm-router is built for individual developers and small teams: local cost
savings, zero ops overhead, no hosted anything. For team-wide policy
enforcement, audit export, SSO or per-org budgets, see
Chuzom — a separate, sibling product.
Contributions welcome — see CONTRIBUTING.md.
git clone https://github.com/ypollak2/llm-router.git
cd llm-router
uv sync --extra dev
uv run pytest tests/ -q # Run tests
uv run ruff check src/ tests/ # Lint
MIT License. Issues · Discussions · PyPI · Changelog
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for llm-router from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/llm-router)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.