#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.

Stars
52.8k
License
AGPL-3.0
Last commit
Nov 2026
Last release
Nov 2026
Language
Go
Stars, last 35 weeks+30,235
26 Mar 2026: 22,563 stars2 Apr 2026: 23,884 stars9 Apr 2026: 25,204 stars16 Apr 2026: 26,556 stars23 Apr 2026: 27,931 stars30 Apr 2026: 29,338 stars7 May 2026: 30,884 stars14 May 2026: 32,763 stars21 May 2026: 34,115 stars28 May 2026: 35,361 stars4 Jun 2026: 36,465 stars11 Jun 2026: 37,815 stars18 Jun 2026: 38,735 stars25 Jun 2026: 39,566 stars2 Jul 2026: 40,370 stars9 Jul 2026: 41,183 stars16 Jul 2026: 41,978 stars23 Jul 2026: 42,744 stars30 Jul 2026: 43,445 stars6 Aug 2026: 44,088 stars13 Aug 2026: 44,677 stars20 Aug 2026: 45,377 stars27 Aug 2026: 46,267 stars3 Sept 2026: 46,924 stars10 Sept 2026: 47,569 stars17 Sept 2026: 48,099 stars24 Sept 2026: 48,647 stars1 Oct 2026: 49,005 stars8 Oct 2026: 49,326 stars15 Oct 2026: 49,952 stars22 Oct 2026: 50,475 stars29 Oct 2026: 51,008 stars5 Nov 2026: 51,520 stars12 Nov 2026: 51,959 stars19 Nov 2026: 52,391 stars26 Nov 2026: 52,798 stars

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

Reported, then fixed by a linked change

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
Also in Gateways and observability
RankProjectScore
2MLflowTracing, evaluation and prompt registry for LLM apps, plus ML tracking Live demo ↗ (opens in a new tab)29k starsApache-2.093 out of 100
3headroomCompresses tool outputs, logs and history before they reach the LLM81.2k stars+2,854 (+3.6%) in 30 daysApache-2.092 out of 100
#5freellmapiOpenAI-compatible gateway pooling free-tier LLM providers with automatic failover60.8k stars+15,350 (+34%) in 30 daysMIT89 out of 100
#6experientialOpenAI-compatible LLM gateway with per-identity budgets and trace-based router tuning20.1k stars+6,136 (+44%) in 30 daysApache-2.089 out of 100
#7llm-gatewayOpenAI-compatible gateway routing requests across providers, subscriptions, local models7.7k stars+69 (+0.9%) in 30 daysMIT89 out of 100