llm-gatewayvsllms.py
Two self-hosted OpenRouter alternatives, compared on the numbers selfhost.directory tracks live: score, popularity, release cadence and setup effort.
| llm-gateway | llms.py | |
|---|---|---|
| Score | 63/100 | 50/100 |
| Rank in category | #8 of 39 in API Gateway | #28 of 69 in AI Chat |
| GitHub stars | 1 715 | 628 |
| Stars, last 30 days | +57 | — |
| Stable releases, 12 months | 20 | 10 |
| Latest release | v1.23.0 · 26 Oct 2026 | v4.0.26 · 20 Oct 2026 |
| Setup | Moderate | Easy |
| Official Docker image | Yes | Yes |
| License | Other | BSD-3-Clause |
| Main language | Typescript | JavaScript |
Which one should you pick?
llm-gateway scores 63/100 against 50/100 for llms.py, so it is the safer default.
llm-gateway ships more often: 20 stable releases in the past year, against 10 for llms.py.
If you want the quickest setup, llms.py is easier to run; llm-gateway needs more configuration.
llm-gateway is growing faster right now (+57 stars in 30 days).
llm-gateway details →llms.py details → All OpenRouter alternatives →
Swap a project
Keep llm-gateway, compare it with
Keep llms.py, compare it with