Ross ROSS = Recommend OSS · open-source software intelligence for agents

ulab-uiuc/LLMRouter

LLMRouter: An Open-Source Library for LLM Routing observed · 2026-08-28

github.com/ulab-uiuc/LLMRouter · homepage · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

61/100

  • Activity 98
  • Release rhythm 35
  • Longevity 23

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 330
  • days_rel: n/a
  • days_push: 13
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

2547 stars · 259 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

LLMRouter is an open-source Python library that intelligently routes queries to the most suitable LLM based on task complexity, cost, and performance requirements. It provides 16+ router models across single-round, multi-round, multimodal, agentic, and personalized categories, plus a unified CLI for training, inference, and chat with a Gradio UI.

Use cases

  • route llm queries to the cheapest model that meets quality requirements
  • train a custom llm router on my own query data
  • compare different llm routing strategies under a shared benchmark
  • reduce llm api costs by dynamically selecting models per query
  • build a cost-aware cascade across multiple llm providers
  • evaluate routing policies on quality and token cost
  • chat with routed models through a web ui

When to choose

  • you serve many diverse queries and want to balance model quality against inference cost
  • you want to develop, train, or benchmark LLM routing methods with a unified framework
  • you need a ready-made pool of router algorithms (KNN, SVM, BERT-based, graph-based, Elo, etc.)
  • you want a CLI and data generation pipeline for building routing supervision

When to avoid

  • you only call a single LLM and have no need for model selection
  • you need a production API gateway with rate limiting, auth, and load balancing rather than a research routing library
  • your candidate model pool is too small for routing to pay off

Facets

library · maturity active

llm-inference machine-learning cli benchmarking rag large-language-models machine-learning artificial-intelligence developer-tools python cli cross-platform llm-routing model-selection cost-optimization router-training gradio-ui benchmark

2 sources

Member repositories

RepositoryRoleHealth v2
ulab-uiuc/LLMRoutermain61

For agents

markdown · JSON · MCP: product_card(name="ulab-uiuc/LLMRouter")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem