new-api
by QuantumNous
New API is a self-hosted gateway that sits in front of many AI model providers, such as OpenAI, Anthropic, Google Gemini and DeepSeek, and presents them through one consistent API. It is for sharing model access across a team or app, and for tracking usage, access and costs in one web console.
- Stars
- 50.8k
- Licence
- AGPL-3.0
- Runs on
- A small server
- Setup
- Moderate
- Language
- Go
- Age
- 1081 days
What you can do with it
- Connect several AI providers and call them all through one OpenAI-, Claude- or Gemini-style API
- Issue separate API keys to users or teams, with quotas, permissions and usage logs
- Set up routing, model mappings, retries and priorities so you can switch providers without changing client settings
Make money with it
Someone could run a private multi-model AI service for a small team or clients and charge for managed access, provided they meet the legal and upstream licensing requirements.
An idea, not financial advice. Check the licence before charging for anything built on it.
Ways a business could use it
- Give staff or clients their own capped API keys to one shared pool of AI models, so spending stays under control
- Switch between cheaper or alternative model providers in one place without reconfiguring every app
Can you use it commercially?
Free to use. Anything you distribute that includes it must be open-sourced under the same licence. Running it as an online service also counts, so a hosted version must offer its source.
Not legal advice. Read the project's licence file before building a product on it.
Getting it running
Run it with a single Docker command (SQLite by default), then open localhost:3000 and complete the setup wizard.
Follow the official instructions in the project README.
Things to check
- Licensed under AGPL-3.0, which has obligations if you offer it as a network service
- Needs your own paid upstream API keys from model providers
- Reselling or offering it to the public may require filings, licences and compliance with upstream terms of service
- Format conversion between protocols may not map every tool or field exactly
Who's talking about it
- Rost (rosgluk): Trending Open Source AI Projects on GitHub, October 2026 Featured in a roundup
- Rost Glukhov: Trending Open Source AI Projects on GitHub, October 2026 Featured in a roundup
Checked 27 Oct 2026. Summary drafted by AI from the project's README.