Latest / Infra & self-hosting

Sub2API

github.com · Open source · Active

Self-hosted gateway that pools Claude, OpenAI, Gemini and Grok subscriptions

Visit github.com ↗Share

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

Releases per month, last 24 months (30 in total, busiest month 11). Based on the most recent releases on record.
  1. Repository created on GitHub: Wei-Shaw/sub2api
  2. Found: Wei-Shaw created its repository on GitHub. GitHub
  3. Release v0.1.136
  4. Release v0.2.21
  5. Release v0.2.22
  6. Release v0.2.23
  7. Release v0.2.24
  8. Release v0.2.25
  9. Release v0.2.26
  10. Day-7 check recorded by Kip (details)
  11. 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

SourceRecordLast checked
GitHublisting
official API record
GitHub repositoryWei-Shaw/sub2api
REST API record
GitHub Releasesrelease list
REST API record

Stable ID github-1118601518. Summary written by KipFound’s editor.

Share

Similar tools

More in Infra & self-hosting

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.