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%.

120 stars 17 forksModel routers & proxies Plugin marketplace Source

Install

Add the plugin marketplace
/plugin marketplace add ypollak2/llm-router

Run inside Claude Code, then /plugin to pick what to install from it.

Install
pip install llm-routing        # installs the `llm-router` command

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/ypollak2/llm-router.git

From 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…
Read the full README on GitHub

Details

Language
Python
License
MIT
Last updated
3 November 2026
Topics
ai-routinganthropicclaudeclaude-codecost-optimizationgeminilitellmllmllm-routermcp-servermodel-routerollama

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

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.