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: songquanpeng/one-api leads in total GitHub adoption (★ 37.5k), while PyModel/verdict shows stronger 7-day momentum. Licensing: MIT · Commercial Friendly vs MIT · Commercial Friendly.
Self-hosted OpenAI-compatible gateway for LLM routing and API key management
A Swift menu bar app serving Decider v1.3 locally via patched llama.cpp
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | songquanpeng/one-api | PyModel/verdict |
|---|---|---|
| Total GitHub Stars | ★ 37,512 | ★ 118 |
| 24h / 7d Velocity | +4 / +56 | +0 / +118 |
| 7-Day Trend Curve | ||
| Engineering Health | B · 62/100 | A · 87/100 |
| Deployment Signals | Docker · Self-Hosted · API | Self-Hosted · Local AI · GPU · API |
| Primary Language | JavaScript | Swift |
| Commercial License | MIT · Commercial Friendly | MIT · Commercial Friendly |
| Activity | Updated 10mo ago | Updated today |
| Latest Release | v0.6.10 | v0.13.0 |
| Best For | Teams with several OpenAI-compatible clients that need to share approved upstream providers without distributing provider credentials to each application | Apple silicon Mac users who need a local Decisions API for structured text or image classification and scoring, starting with Flash on a 16 GB machine |
# 使用 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
9d6f04fa99, with protocol v4, MACaQ, and Decider v1.3 readout patches./v1/decisions and /v1/systemone return per-question probability distributions for choice, score, and noul across text and images.batchSize and contextSize / parallelSlots; KV cache supports f16, q8_0, and q4_0.curl http://127.0.0.1:8012/v1/decisions -H 'Content-Type: application/json' -d '{ "state": "The battery stopped charging after two weeks.", "questions": { "defect": {"type": "noul", "instructions": "Does the review report a product defect?"}, "severity": {"type": "choice", "instructions": "How severe is the issue?", "criteria": {"low": "Minor", "medium": "Noticeable", "high": "The product is unusable"}} } }'
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy