Sub2API
github.com · Open source · Active
Self-hosted gateway that pools Claude, OpenAI, Gemini and Grok subscriptions
- Infra & self-hosting
- Open source
- Go
- Day-7 check
- Day-30 check
- api gateway
- llm proxy
- subscription
- 2api
- antigravity2api
- claude
- claude code
- codex
- crs
- gemini
- Stars
- 46.8k
- Forks
- 10.2k
- Open issues
- 2.9k
- Last commit
- Releases
- 70
- Found
- 11 months ago
GitHub figures as of . They are context, not a ranking.
Sub2API is a self-hosted API gateway that brings Claude, OpenAI, Gemini and Grok subscriptions behind one interface, with shared access and quota distribution. It runs with Go, Vue and PostgreSQL, is deployable with Docker, and suits teams that want to split subscription costs across users.
Repository description on GitHub: “Sub2API 一站式开源中转服务,让 Claude、Openai 、Gemini、Grok订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。”
What it does
- Unified access to Claude, OpenAI, Gemini and Grok subscriptions
- Subscription pooling for shared use and cost splitting
- Docker deployment with PostgreSQL and Redis
- Works with native tools such as Claude Code and Codex
Good for
- Share one AI subscription across a small team
- Route Claude Code or Codex traffic through a self-hosted gateway
Suits: Small teams and operators sharing AI subscriptions.
Worth knowing: The readme warns that using it may violate the terms of service of Anthropic and other upstream providers.
What you can try
Deploy it with Docker on your own server, then point compatible tools at its gateway endpoint.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw Sub2API on , when Wei-Shaw created its repository on GitHub. The oldest published release on GitHub is v0.1.136, dated . Its first tagged release came 174 days after it was found. 70 releases have been published in total; the latest is v0.2.26 ().
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
Checked , later than day 7 because tracking began after.
Day 30 no new release
- No tagged release was published in the first 30 days after it was found (GitHub release dates).
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: Wei-Shaw/sub2api
- Found: Wei-Shaw created its repository on GitHub. GitHub
- Release v0.1.136
- Release v0.2.21
- Release v0.2.22
- Release v0.2.23
- Release v0.2.24
- Release v0.2.25
- Release v0.2.26
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Showing the first and the 6 latest of 70 releases. All releases on GitHub
Quick answers
- When was Sub2API released?
- Its first tagged release on GitHub is dated 10 Jun 2026. Kip found it on GitHub on 18 Dec 2025.
- Is Sub2API open source?
- Its source is public on GitHub at Wei-Shaw/sub2api under the LGPL-3.0 licence.
- What does Sub2API run on?
- Self-hosted, Web, API.
- Is Sub2API free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is Sub2API still maintained?
- Yes. It had a commit or release in the last 90 days as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| GitHub | listing official API record | |
| GitHub repository | Wei-Shaw/sub2api REST API record | |
| GitHub Releases | release list REST API record |
Stable ID github-1118601518. Summary written by KipFound’s editor.
Share
Similar tools
- Claude Relay ServiceActive
Self-hosted relay that pools Claude, OpenAI, Gemini and Droid subscriptions
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.