# sub2api

> AI API gateway for subscription quota pooling and proxying

Sub2API is an AI API gateway designed to aggregate, distribute, and manage subscription quotas across providers like OpenAI, Claude, Gemini, and Grok. It handles authentication, token-level billing, rate limiting, and intelligent load balancing across upstream accounts. The service runs as a web dashboard and API server, deployable with Docker Compose or built from source.

- Source: https://github.com/Wei-Shaw/sub2api
- License: LGPL-3.0
- Built with: Go 76.2%, Vue 13.0%, TypeScript 10.1%, Other 0.7%
- Stars: 46528 (+5320 in the last 90 days)
- Forks: 10122
- Contributors: 497
- Last commit: 2026-11-24
- Latest release: v0.2.25 (2026-11-24)
- Purpose: AI & LLM tooling, Developer tools, Self-hosted apps, API tools
- Type: Web, Docker / self-host
- For: Personal

## Can I use it?

GNU Lesser General Public License 3.0. Weak copyleft. Your own code can stay closed. Changes to this project’s code stay open.

- Use it at work: Yes. Free for personal and company use.
- Sell what you build with it: Yes. You can sell apps and services that include it.
- Put it in a closed-source app: Yes, with conditions. Your app can link to it. Users must be able to swap in a changed library, so allow reverse engineering for that.
- Keep your own code private: Yes, with conditions. Your own code can stay closed. When you share copies, share the library’s source, with your changes.
- Run it as an online service: Yes. Running it on your server is not sharing copies, so nothing extra applies.
- Credit the authors: Required. Keep the notices, include the license text, and say your app uses the library under the LGPL-3.0.

Good to know:

- It comes with no promise that it works. You use it at your own risk.
- On consumer devices you sell, also give users the steps to install a changed library.
- Some authors also sell a license with other terms. Ask them if these rules don’t fit.
- This covers the project’s own code. Its dependencies, and folders like “ee”, may have other licenses.
- The license can change between versions. The one in the version you use is what counts.

_For information only, not legal advice. This is a short summary of the GNU Lesser General Public License 3.0. The license text is what counts. [Read the full license](https://spdx.org/licenses/LGPL-3.0.html). For a business decision, ask a lawyer._

[Compare the common licenses](https://diggithub.com/-/licenses#lic-lgpl-3.0)

## Worth score: 92/100

How much DigGitHub recommends it, from activity, adoption, docs, license and security signals.

- Popularity: 23/25
- Momentum: 18/20
- Maintenance: 25/25
- Community: 14/15
- Readiness: 12/15

## Downloads

Latest release: [Sub2API 0.2.25](https://github.com/Wei-Shaw/sub2api/releases/tag/v0.2.25). Files from the project's GitHub release, not checked by DigGitHub.

Windows:

- [sub2api_0.2.25_windows_amd64.zip](https://github.com/Wei-Shaw/sub2api/releases/download/v0.2.25/sub2api_0.2.25_windows_amd64.zip) (39 MB, 0 downloads)

macOS:

- [sub2api_0.2.25_darwin_arm64.tar.gz](https://github.com/Wei-Shaw/sub2api/releases/download/v0.2.25/sub2api_0.2.25_darwin_arm64.tar.gz) (37 MB, 0 downloads)
- [sub2api_0.2.25_darwin_amd64.tar.gz](https://github.com/Wei-Shaw/sub2api/releases/download/v0.2.25/sub2api_0.2.25_darwin_amd64.tar.gz) (40 MB, 0 downloads)

Linux:

- [sub2api_0.2.25_linux_amd64.tar.gz](https://github.com/Wei-Shaw/sub2api/releases/download/v0.2.25/sub2api_0.2.25_linux_amd64.tar.gz) (38 MB, 0 downloads)
- [sub2api_0.2.25_linux_arm64.tar.gz](https://github.com/Wei-Shaw/sub2api/releases/download/v0.2.25/sub2api_0.2.25_linux_arm64.tar.gz) (35 MB, 0 downloads)

To check the files: [checksums.txt](https://github.com/Wei-Shaw/sub2api/releases/download/v0.2.25/checksums.txt)

## Alternatives

- [gpt-load](https://diggithub.com/tbphp/gpt-load.md): Self-hosted AI gateway for multi-channel, multi-credential routing
- [CLIProxyAPI](https://diggithub.com/router-for-me/CLIProxyAPI.md): Proxy server converting AI CLI subscriptions into standard APIs
- [GPT_API_free](https://diggithub.com/chatanywhere/GPT_API_free.md): Free and unified API proxy for LLMs like GPT and DeepSeek
- [Antigravity-Manager](https://diggithub.com/lbjlaq/Antigravity-Manager.md): AI account manager and local protocol proxy relay
- [Hoppscotch](https://diggithub.com/hoppscotch/hoppscotch.md): Open-source API development ecosystem
- [redoc](https://diggithub.com/Redocly/redoc.md): API documentation generator for OpenAPI, AsyncAPI, and GraphQL
- [openapi-generator](https://diggithub.com/OpenAPITools/openapi-generator.md): Generate API clients, server stubs, and docs from OpenAPI specs
- [guzzle](https://diggithub.com/guzzle/guzzle.md): Extensible PHP HTTP client

---

Source page: https://diggithub.com/Wei-Shaw/sub2api
Updated: 2026-11-24
