Lattice
Skip to content

RouteLLM

github.comlibraryself-hosted

RouteLLM is a self-hosted library in the Routing & Gateways layer of the AI stack. Learned router that cuts cost by matching difficulty to model size.

By Lattice editorial · Facts verified · method

licence
Apache-2.0
language
Python
cost
free

Use RouteLLM when

Cutting cost by matching query difficulty to model size, with a learned router.

Skip RouteLLM when

You cannot evaluate the quality you would be trading away.

Decides which model answers, and what it costs. — that is what this layer of the stack is answerable for. See the full Routing & Gateways section for the rest of the options.

Visit github.comCompare with another tool
Badge this entry
Lattice badge: RouteLLM verified 2026-09
[![RouteLLM on Lattice: verified 2026-09](https://lattice.kunjshah.in/routing-gateways/routellm/badge.svg)](https://lattice.kunjshah.in/routing-gateways/routellm)

Quick answers

Is RouteLLM open source?
Yes. RouteLLM is open source under the Apache-2.0 licence. It is free to use.
What are the alternatives to RouteLLM?
The closest alternatives to RouteLLM are Martian and Not Diamond.

Compared in

Reading on routing

Alternatives to RouteLLM

Listed as an alternative to

  • Martian
  • Not Diamond

Also in routing

  • LiteLLM
  • Portkey
  • Cloudflare AI Gateway
  • OpenRouter
  • Martian
  • Envoy AI Gateway
  • Bifrost
  • Not Diamond
  • TrueFoundry