O
cheaper-inference/OmniRoute★ 92,106 · TypeScript
Self-hosted OpenAI-compatible gateway for multi-provider routing and fallback
MIT · Commercial Friendlyv3.8.54
Side-by-side 2026 comparison in LLMs & Inference: cheaper-inference/OmniRoute leads both total GitHub adoption (★ 92.1k) and recent 7-day momentum. Licensing: MIT · Commercial Friendly vs MIT · Commercial Friendly.
Self-hosted OpenAI-compatible gateway for multi-provider routing and fallback
Self-hosted OpenAI-compatible gateway for LLM routing and API key management
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | cheaper-inference/OmniRoute | songquanpeng/one-api |
|---|---|---|
| Total GitHub Stars | ★ 92,106 | ★ 37,512 |
| 24h / 7d Velocity | +150 / +1.5k | +4 / +56 |
| 7-Day Trend Curve | ||
| Engineering Health | A+ · 100/100 | B · 62/100 |
| Deployment Signals | Docker · Self-Hosted · API | Docker · Self-Hosted · API |
| Primary Language | TypeScript | JavaScript |
| Commercial License | MIT · Commercial Friendly | MIT · Commercial Friendly |
| Activity | Updated today | Updated 10mo ago |
| Latest Release | v3.8.54 | v0.6.10 |
| Best For | Teams running coding assistants or internal LLM clients that need one API endpoint, centralized routing policies, and tested fallback across multiple upstream accounts | Teams with several OpenAI-compatible clients that need to share approved upstream providers without distributing provider credentials to each application |
/v1/chat/completions on port 20128 in the quickstart, authenticated with an OmniRoute API key.auto uses a 16-factor scorer; auto/fast and auto/cheap express preferences rather than performance or price guarantees.# After connecting a provider, create your OmniRoute key in Dashboard → API Keys: curl http://localhost:20128/v1/chat/completions \ -H "Authorization: Bearer YOUR_OMNIROUTE_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"auto","messages":[{"role":"user","content":"Hello!"}]}'
# 使用 SQLite 的部署命令: docker run --name one-api -d --restart always -p 3000:3000 -e TZ=Asia/Shanghai -v /home/ubuntu/data/one-api:/data justsong/one-api # 使用 MySQL 的部署命令,在上面的基础上添加 `-e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi"`,请自行修改数据库连接参数,不清楚如何修改请参见下面环境变量一节。 # 例如: docker run --name one-api -d --restart always -p 3000:3000 -e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" -e TZ=Asia/Shanghai -v /home/ubuntu/data/one-api:/data justsong/one-api
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy