sub2api Turns Your Claude Subscription into an API Business
The grey market for AI tokens now ships as a product. sub2api, trending on GitHub at 38,800 stars, is an open-source gateway that takes consumer subscriptions to Claude, ChatGPT, Gemini and Grok and resells them as metered API keys.
This is not a weekend proxy hack. Go backend, Vue dashboard, PostgreSQL, Redis, 6,100+ commits: it handles key generation for downstream users, load balancing across pooled accounts, token-level usage tracking with cost calculation — and, the real tell, integrated payment rails: Alipay, WeChat Pay, Stripe. It's a complete billing platform whose upstream supply is other people's flat-rate subscriptions.
The README is refreshingly honest about what this is. A prominent disclaimer states that using the project may violate the terms of service of Anthropic and other upstream providers, that all risk of account bans sits with the user, and that no commercial authorization is granted. Not buried in a footnote — flagged at the top.
The token resale economy was already visible as brokers hawking discounted credits in Discord channels; we covered that layer on August 17. What's new is the infrastructure going open source, polished, and one-click deployable at scale. The arbitrage is structural: labs price subscriptions flat because humans get tired, and price APIs metered because machines don't. sub2api is 38,000 stars' worth of people monetizing that gap — and every lab pricing team now has to model its subscription quota as a leaky bucket. The countermeasure playbook will look a lot like streaming's war on password sharing.
Repo: https://github.com/Wei-Shaw/sub2api
← Back to all articles
This is not a weekend proxy hack. Go backend, Vue dashboard, PostgreSQL, Redis, 6,100+ commits: it handles key generation for downstream users, load balancing across pooled accounts, token-level usage tracking with cost calculation — and, the real tell, integrated payment rails: Alipay, WeChat Pay, Stripe. It's a complete billing platform whose upstream supply is other people's flat-rate subscriptions.
The README is refreshingly honest about what this is. A prominent disclaimer states that using the project may violate the terms of service of Anthropic and other upstream providers, that all risk of account bans sits with the user, and that no commercial authorization is granted. Not buried in a footnote — flagged at the top.
The token resale economy was already visible as brokers hawking discounted credits in Discord channels; we covered that layer on August 17. What's new is the infrastructure going open source, polished, and one-click deployable at scale. The arbitrage is structural: labs price subscriptions flat because humans get tired, and price APIs metered because machines don't. sub2api is 38,000 stars' worth of people monetizing that gap — and every lab pricing team now has to model its subscription quota as a leaky bucket. The countermeasure playbook will look a lot like streaming's war on password sharing.
Repo: https://github.com/Wei-Shaw/sub2api
Comments