
- Category
- AI
- Website
- github.com
- Language
- English
- Listed
- 21h ago
- Stars
- 38,808
- Forks
- 8,040
Wei-Shaw/sub2api ↗· Go· LGPL-3.0· Last commit 1d ago
Subscription plans for Claude, ChatGPT, Gemini and Grok come with quota one person rarely finishes, and none of them hand out API keys against it. Sub2API stands in front of those accounts as a self-hosted gateway: it holds several upstream accounts by OAuth or API key, issues keys to its own users, tracks usage down to the token, and picks an account per request under sticky sessions, per user and per account concurrency caps, and rate limits. An admin dashboard covers monitoring, and a built-in payment layer with EasyPay, Alipay, WeChat Pay and Stripe lets users top themselves up without a separate billing service.
The stack is Go with a Vue 3 front end, PostgreSQL and Redis, packaged for Docker, under LGPL 3.0. As for the risk, the project says it first: this use may breach the terms of service of Anthropic and other upstream providers, and no one has been authorised to run it commercially.