sub2api is a self-hosted API gateway, written in Go and Vue 3, that pools subscription quota from Claude, OpenAI, Gemini, and Grok accounts and resells it as standard API keys. It’s adding 278 stars a day on GitHub Trending. The reason is simple: a $20 Claude Pro plan carries far more usage than $20 of API credits, and this project industrializes that arbitrage.
What the API side does
Deploy it on your own server, connect accounts via OAuth, and it exposes OpenAI- and Anthropic-compatible endpoints. Any SDK or coding tool that takes a base URL works unchanged. It handles multi-account rotation, sticky sessions, and token-level billing — plus built-in Alipay, WeChat Pay, and Stripe so groups can split one subscription and charge each other. Carpooling, as infrastructure.
Why it matters
Token reselling used to be people flipping accounts in group chats. sub2api makes it software: 38.9k stars says the demand is enormous. The README admits it likely violates upstream terms of service and bans are your problem. That honesty is the real story — the gap between subscription pricing and API pricing is now big enough to sustain an open-source economy in the gray zone.
You Might Also Like
- 708 Github Stars in 48 Hours Claude Token Efficient Universal Claude md and the Fight Over Claudes Most Expensive Habit
- Deepseek tui Tops Github Trending a Claude Code Clone Wired to Deepseeks api
- 27k Github Stars in Weeks Learn Claude Code by Shareai lab Breaks Down ai Coding Agents Into 12 Lessons
- Openai Oauth Turns Your Chatgpt Subscription Into a Free Openai api but Should you use it
- Claude hud hit 5 3k Github Stars Because Developers Were Flying Blind With Claude Code

Leave a comment