llm-router
LLM Router is an MCP server plus a set of hooks for AI coding tools. It targets a common waste: using your best model for everything, including simple explanations, file lookups and small edits. Every prompt passes a UserPromptSubmit hook before the top-tier model sees it, and the router sends easy work to cheap or free models and keeps hard work on Claude or another premium model.
The README describes a layered decision: reuse the previous turn's route for replies like "yes" or "go ahead", score the prompt with free heuristics, ask a local Ollama model when the heuristics are unsure, and only then fall back to paid APIs. In subscription mode it follows a free-first chain of Ollama, then Codex, then a paid API. It lists 46 MCP tools and 20+ providers, with budget caps per provider, a dashboard, Prometheus metrics and OpenTelemetry traces. One command installs it for Claude Code, VS Code, Cursor, Codex CLI and other hosts, and Claude Code Pro or Max users can start without any API key.