A
looplj/axonhub★ 5,514 · Go
Self-hosted LLM gateway for cross-provider routing, failover, and cost tracking
Apache-2.0 · Commercial Friendlyv1.0.0-rc.5
Side-by-side 2026 comparison in LLMs & Inference: songquanpeng/one-api leads both total GitHub adoption (★ 37.5k) and recent 7-day momentum. Licensing: Apache-2.0 · Commercial Friendly vs MIT · Commercial Friendly.
Self-hosted LLM gateway for cross-provider routing, failover, and cost tracking
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 | looplj/axonhub | songquanpeng/one-api |
|---|---|---|
| Total GitHub Stars | ★ 5,514 | ★ 37,512 |
| 24h / 7d Velocity | +2 / +25 | +4 / +56 |
| 7-Day Trend Curve | ||
| Engineering Health | A+ · 97/100 | B · 62/100 |
| Deployment Signals | Docker · Self-Hosted · API | Docker · Self-Hosted · API |
| Primary Language | Go | JavaScript |
| Commercial License | Apache-2.0 · Commercial Friendly | MIT · Commercial Friendly |
| Activity | Updated yesterday | Updated 10mo ago |
| Latest Release | v1.0.0-rc.5 | v0.6.10 |
| Best For | Platform teams routing several AI applications or coding tools across supported providers while centralizing access, quotas, traces, and costs | Teams with several OpenAI-compatible clients that need to share approved upstream providers without distributing provider credentials to each application |
from openai import OpenAI client = OpenAI( base_url="http://localhost:8090/v1", api_key="your-axonhub-api-key" ) response = client.chat.completions.create( model="gpt-4o", messages=[{"role": "user", "content": "Hello, AxonHub!"}] ) print(response.choices[0].message.content)
# 使用 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