O
songquanpeng/one-api★ 37,512 · JavaScript
Self-hosted OpenAI-compatible gateway for LLM routing and API key management
MIT · Commercial Friendlyv0.6.10
Side-by-side 2026 comparison in LLMs & Inference: sgl-project/sglang leads both total GitHub adoption (★ 39.4k) and recent 7-day momentum. Licensing: MIT · Commercial Friendly vs Apache-2.0 · Commercial Friendly.
Self-hosted OpenAI-compatible gateway for LLM routing and API key management
Self-hosted inference runtime for serving LLMs and multimodal models across accelerators
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | songquanpeng/one-api | sgl-project/sglang |
|---|---|---|
| Total GitHub Stars | ★ 37,512 | ★ 39,353 |
| 24h / 7d Velocity | +4 / +56 | +51 / +237 |
| 7-Day Trend Curve | ||
| Engineering Health | B · 62/100 | A+ · 100/100 |
| Deployment Signals | Docker · Self-Hosted · API | Docker · Self-Hosted · GPU · API |
| Primary Language | JavaScript | Python |
| Commercial License | MIT · Commercial Friendly | Apache-2.0 · Commercial Friendly |
| Activity | Updated 10mo ago | Updated today |
| Latest Release | v0.6.10 | v0.5.23 |
| Best For | Teams with several OpenAI-compatible clients that need to share approved upstream providers without distributing provider credentials to each application | Teams that need to self-host LLM or vision-language APIs on chosen hardware and can validate the model–backend pair, with a path to cluster routing when a single instance is no longer enough |
# 使用 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
python/, with sgl-router/, rust/, and proto/ present as separate repository directories.torch_tpu, and Pallas kernels; SGL-JAX provides a separate JAX path.docker pull lmsysorg/sglang:latestSignal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy