#5858th of 74 in Gateways and observability

llmrouter

Python library for training and running routers that pick an LLM per query

Releases and problems feed (RSS)

Stars
3.1k
License
MIT
Last commit
Nov 2026
Language
Python
Stars, last 30 weeks+1,373
26 Apr 2026: 1,721 stars3 May 2026: 1,748 stars10 May 2026: 1,777 stars17 May 2026: 1,807 stars24 May 2026: 1,837 stars31 May 2026: 1,859 stars7 Jun 2026: 1,885 stars14 Jun 2026: 1,965 stars21 Jun 2026: 1,999 stars28 Jun 2026: 2,030 stars5 Jul 2026: 2,057 stars12 Jul 2026: 2,088 stars19 Jul 2026: 2,126 stars26 Jul 2026: 2,158 stars2 Aug 2026: 2,185 stars9 Aug 2026: 2,288 stars16 Aug 2026: 2,359 stars23 Aug 2026: 2,508 stars30 Aug 2026: 2,663 stars6 Sept 2026: 2,781 stars13 Sept 2026: 2,854 stars20 Sept 2026: 2,937 stars27 Sept 2026: 2,972 stars4 Oct 2026: 2,991 stars11 Oct 2026: 3,002 stars18 Oct 2026: 3,019 stars25 Oct 2026: 3,034 stars1 Nov 2026: 3,055 stars8 Nov 2026: 3,074 stars15 Nov 2026: 3,084 stars22 Nov 2026: 3,094 stars

1,721 on 26 Apr 20263,094 on 22 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

LLMRouter is a Python library and CLI for training, evaluating and running routers that choose which LLM answers each query, based on cost and expected quality. It ships 16+ routers (KNN, SVM, MLP, matrix factorization, Elo, graph-based, personalized, multi-round), a data pipeline over 11 benchmarks, a Gradio chat UI, and an OpenAI-compatible server for OpenClaw.

Who it is for: Engineers researching or deploying learned LLM routing to cut inference cost

Strengths

  • 16+ router implementations behind one llmrouter CLI for training, inference and chat
  • Data pipeline builds routing training data from 11 benchmarks, plus multimodal tasks
  • Works with OpenAI-compatible endpoints, including Ollama, vLLM and SGLang on localhost
  • Custom routers can be added through a plugin workflow; installable from PyPI

Weaknesses

  • Learned routers need a data generation run that calls paid or rate-limited model APIs
  • No Docker or compose files; install is pip or conda only
  • Router-R1 support needs a GPU and pins vllm 0.6.3 with torch 2.4.0
  • No tagged GitHub release; versions are tracked on PyPI only

What it needs

  • GPU optional
  • Needs Python 3.10, LLM provider API keys (NVIDIA, OpenAI, Anthropic) or a local OpenAI-compatible server
  • Models: OpenAI-compatible APIs, NVIDIA endpoints, OpenAI, Anthropic, Ollama

Known problems

Reported, then fixed by a linked change

Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.

Also in Gateways and observability

See all 74
Also in Gateways and observability
RankProjectScore
#56orcarouter-liteLLM router that tracks and caps coding-agent spend, with a menu-bar app3.1k stars+1,683 (+116%) in 30 daysMIT52 out of 100
#57metorialMCP gateway with SSO, per-user OAuth, permissions and audit logs for agents3.4k starscustom license51 out of 100
#59orcareplayRecord coding-agent runs and replay or fork them offline onto other models1.2k stars+881 (+268%) in 30 daysApache-2.051 out of 100
#60gptcachePython semantic cache for LLM responses using embeddings and vector search8.2k starsMIT50 out of 100
#61paritok-4b-v1Compression proxy that shrinks coding-agent prompts before they reach the LLM API1.4k starsApache-2.050 out of 100