#44th of 88 in Gateways and observability
new-api
Self-hosted LLM gateway with unified API, routing, quotas and billing
Run it:RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts new-api on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.new-api is on your watch list. Its new releases and problems show there.
- Stars
- 52.8k
- License
- AGPL-3.0
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Go
22,563 on 26 Mar 202652,798 on 26 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Before you pick it
- Known advisory in latest version. 12 known advisories: github.com/QuantumNous/new-api v0.13.2, the latest version. Source (opens in a new tab), checked .
Overview
New API is a Go gateway that sits in front of upstream providers such as OpenAI, Anthropic, Gemini, Azure OpenAI, Bedrock, Vertex AI, DeepSeek and Qwen. It exposes OpenAI Chat/Responses, Anthropic Messages and Gemini endpoints, with channel routing, per-user quotas, usage logs and a web console. Storage is SQLite, MySQL or PostgreSQL, with optional Redis.
Who it is for: Teams and operators sharing and metering access to multiple LLM providers
Ranked among open-source alternatives to OpenRouter (#3 of 10).
Strengths
- Accepts OpenAI, Anthropic and Gemini request formats, with conversion between the four text protocols
- Channel priorities, weights, retries and multiple upstream keys per channel
- Users, groups, quotas, subscriptions, OIDC/OAuth, passkeys and 2FA built in
- Runs on SQLite for trials; Compose file adds PostgreSQL and Redis for production
Weaknesses
- AGPL-3.0 with extra terms requiring attribution and a visible project link in modified UIs
- Protocol conversion is not exact; tools and fields may not map across protocols
- Multi-node setups need shared database, secrets and Redis or rate limits count per node
- Public or resale use carries regulatory obligations the operator must handle
What it needs
- no GPU
- Docker + Compose
- Needs SQLite, MySQL >=5.7.8 or PostgreSQL >=9.6, Redis (optional), ClickHouse (optional, log database)
- Models: OpenAI, Anthropic, Google Gemini, Azure OpenAI, AWS Bedrock
- port 3000
Known problems
Open now, reported in the last 90 days
- 开两步验证或者涉及改密码等出现疑似无法验证的bug ↗ (opens in a new tab)1 reactions
- Bug: 模型定价页无法删除内置默认计费模型行(gpt-image-2 等),删除操作静默无效 ↗ (opens in a new tab)1 reactions
- OAuth 敏感操作验证在 IdP 返回 Cross-Origin-Opener-Policy 时必定失败 ↗ (opens in a new tab)1 reactions
- [Bug] Claude Messages 转 OpenAI Chat 时单元素 stop_sequences 被转换为 string,导致部分上游 400 ↗ (opens in a new tab)1 reactions
Reported, then fixed by a linked change
- Insufficient-quota errors are always Chinese, ignoring the user's language ↗ (opens in a new tab)6 reactions · closed 9 Oct 2026Fixed by feat(i18n): translate web console messages in the frontend and AI-client errors in the backend ↗ (opens in a new tab)
- English localization is incomplete across UI, errors, and system messages ↗ (opens in a new tab)2 reactions · closed 9 Oct 2026Fixed by feat(i18n): translate web console messages in the frontend and AI-client errors in the backend ↗ (opens in a new tab)
- v1.0.0-rc.25 充值确认支付失败 ↗ (opens in a new tab)2 reactions · closed 26 Aug 2026Fixed by refactor: deprecate int32 ↗ (opens in a new tab)
- gemini模型,使用tool call功能,代码中解析list of tool call是不是判断错了 ↗ (opens in a new tab)2 reactions · closed 3 Jan 2026Fixed by fix: gemini request -> openai tool call ↗ (opens in a new tab)
- README.md上的很多链接都404了 ↗ (opens in a new tab)2 reactions · closed 21 Dec 2025Fixed by 🔗 docs(readme): update documentation links to new site routing ↗ (opens in a new tab)
Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.
Head to head
Also in Gateways and observability
See all 88| Rank | Project | Score |
|---|---|---|
| 2 | MLflowTracing, evaluation and prompt registry for LLM apps, plus ML tracking | 93 out of 100 |
| 3 | headroomCompresses tool outputs, logs and history before they reach the LLM | 92 out of 100 |
| #5 | freellmapiOpenAI-compatible gateway pooling free-tier LLM providers with automatic failover | 89 out of 100 |
| #6 | experientialOpenAI-compatible LLM gateway with per-identity budgets and trace-based router tuning | 89 out of 100 |
| #7 | llm-gatewayOpenAI-compatible gateway routing requests across providers, subscriptions, local models | 89 out of 100 |