Claude Code model router
Llm Router
Universal LLM router for AI coding tools. Works with Claude Code, Cursor, Codex, Gemini CLI, Copilot and more. Free-first fallback chain cuts costs 35-80%.
Install
/plugin marketplace add ypollak2/llm-routerRun inside Claude Code, then /plugin to pick what to install from it.
pip install llm-routing # installs the `llm-router` commandFound in the project README. Check it for setup steps after installing.
git clone https://github.com/ypollak2/llm-router.gitFrom the README
llm-router 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. 📑 Table of Contents - Why install this - Quick Start - Works With - How It Works - Features - Reference - Savings - Trust and Security - Documentation - Enterprise, Contributing, License Why install this 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. Why a proxy cannot do this 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. Honesty as a feature 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. Quick Start Works with no API keys on a Claude Pro/Max…
Details
- Repository
- ypollak2/llm-router
- Language
- Python
- License
- MIT
- Last updated
- 3 November 2026
- Topics
- ai-routinganthropicclaudeclaude-codecost-optimizationgeminilitellmllmllm-routermcp-servermodel-routerollama
- Listed in
- awesome-claude-code
FAQ
What is Llm Router?
Universal LLM router for AI coding tools. Works with Claude Code, Cursor, Codex, Gemini CLI, Copilot and more. Free-first fallback chain cuts costs 35-80%. It is a model router for Claude Code, from ypollak2/llm-router on GitHub.
How do I install Llm Router?
Run pip install llm-routing # installs the `llm-router` command, then follow the setup in the README.
Is Llm Router popular?
ypollak2/llm-router has 120 GitHub stars and 17 forks, and is included in 1 curated Claude Code list. It was last updated on 3 November 2026.
More model routers & proxies
Autocache
178montevive/autocache
Autocache - Intelligent Anthropic API Cache Proxy Automatically inject cache-control fields into Claude API requests to reduce costs by up to 90% and latency by up to 85%. Works as a transparent drop-in replacement for popular AI platforms like n8n, Flowise, Make.com, LangChain, and LlamaIndex—no code changes required
Grokbuild Proxy
159GreyGunG/grokbuild-proxy
本地自托管的 Grok Build → Claude Code / OpenAI 兼容代理 | Local self-hosted Grok Build compatibility proxy
claude-code-mux
5179j/claude-code-mux
Rust routing proxy for Claude Code with automatic failover and priority-based routing.
CLI Proxy
162guojinpeng/cli_proxy
本地 claude code 和 codex 代理工具
Claude Nvidia Proxy
196zhangrr/claude-nvidia-proxy
an Nvidia proxy for claude code
cc-account-switcher
452ming86/cc-account-switcher
Script for switching between multiple Claude Code accounts.
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.