GitHub's new cottage industry: turning $20 AI subs into APIs

5 min read 5 sources clear_take
├── "Sub2API tools are a market response to a real pricing gap between consumer AI subscriptions and API pricing"
│  └── top10.dev editorial (top10.dev) → read below

The editorial argues that three simultaneously trending repos in the same genre is not coincidence but evidence of a market segment. It frames the phenomenon as an economically rational response to the large gap between $20/month subscription access and metered API pricing, which is now wide enough to sustain a cottage industry.

├── "Repackaging Claude Pro/Max subscriptions as API endpoints is a legitimate developer workaround"
│  ├── LinXiaoTao (GitHub (FuckClaude), 349 pts) → read

The repo's unsubtle naming and its function — wrapping Anthropic's Claude Pro/Max subscription behind an OpenAI-compatible API — signals an adversarial stance toward Anthropic's pricing tiers. The author's position is that developers should be able to route their paid subscription through code rather than pay separate API rates.

│  └── yynxxxxx (GitHub (Codex-5.5-codex-instruct-5.5), 1342 pts) → read

By packaging OpenAI Codex Pro's session flow behind an instruct-style endpoint, the author takes the position that subscription quota is fungible with API access. The 1,342-point trending score suggests broad developer agreement that this remapping is worth doing.

├── "Automating account registration is the scalable foundation of the sub2api ecosystem"
│  └── akihitohyh (GitHub (chatgpt-register-sub2api), 182 pts) → read

This repo takes the position that the bottleneck for sub2api resale isn't the API shim but the account supply chain. By automating ChatGPT account registration and exposing the resulting sessions as OpenAI-compatible endpoints, the author industrializes what would otherwise be a manual rotation problem, enabling the account-churn model that keeps sub2api services alive under TOS enforcement.

└── "The technical architecture is deliberately boring — session capture plus an Express shim is the whole trick"
  └── top10.dev editorial (top10.dev) → read below

The editorial emphasizes that the sub2api pattern isn't a technical innovation: capture the session token from the web client's WebSocket/SSE stream, replay against the chat backend, put a FastAPI or Express shim in front mimicking /v1/chat/completions. The novelty is entirely in the business-model arbitrage, not the code.

What happened

Three repositories aimed at the same thing trended on GitHub within days of each other. `yynxxxxx/Codex-5.5-codex-instruct-5.5` picked up a score of 1,342 and packages what looks like OpenAI Codex Pro's session flow behind an instruct-style endpoint. `LinXiaoTao/FuckClaude` (score 349) does the equivalent for Anthropic's Claude Pro/Max subscription — the naming isn't subtle. `akihitohyh/chatgpt-register-sub2api` (score 182) is the plumbing underneath: automated ChatGPT account registration with the resulting session exposed as an OpenAI-compatible API. All three are recent, all three trended together, and all three collapse the same distance: from a consumer $20/month subscription to a machine-callable endpoint that speaks the OpenAI API dialect.

None of this is new in kind. "sub2api" as a term has been floating around Chinese-language dev forums for over a year, mostly wrapping ChatGPT Plus, Claude Pro, Gemini Advanced, and the various IDE assistants (Cursor, Windsurf, Codex CLI) that ship with generous subscription quotas. What's new is the volume: three separate repos in the same genre trending simultaneously is not three hobby projects, it's a market segment. The combined star count is ~1,873, and that undercounts the ecosystem — most sub2api repos churn account names weekly to duck DMCA and TOS takedowns.

The technical shape is boring on purpose. Register an account (or many, via `chatgpt-register-sub2api`-style automation), capture the session token from the web client's WebSocket or SSE stream, replay it against the provider's chat backend, and put an Express or FastAPI shim in front that mimics `POST /v1/chat/completions`. Rotate accounts when one gets flagged. That's the whole architecture.

Why it matters

The reason this exists is a pricing gap that's now large enough to build a business on. ChatGPT Plus is $20/month with effectively soft-capped access to GPT-4o and o-series models. Claude Pro is $20, Max is $100–200, both with usage windows that reset. Codex CLI's Pro tier bundles a lot of tokens for a flat rate. Meanwhile, the same models on the API bill by the million tokens — and for heavy users, the API bill blows past the subscription price within a single afternoon of agentic coding. If your marginal cost to serve a token is a fraction of the seat price, someone will build a wrapper that resells the delta. That someone is now three trending GitHub repos.

The cat-and-mouse is already visible in the provider posture. Anthropic's Claude web session tokens have quietly shortened over the last few releases. OpenAI's ChatGPT registration flow now demands phone verification in most regions, and the account-lockout signal on suspected automation has gotten aggressive — which is exactly why `chatgpt-register-sub2api` exists as a standalone repo. The register-automation piece is now the bottleneck, not the API-shim piece. That's a tell about where the defense has landed: providers have mostly given up on hiding the session protocol and are instead trying to make account creation expensive.

The more interesting question is what this means for the pricing model. Providers have been running a light form of price discrimination — casual users on flat subs, power users on metered API. Sub2api collapses the arbitrage. Anthropic and OpenAI have two responses available and neither is comfortable: raise the subscription price (which annoys the 95% of legitimate users this pricing was designed for) or cap the subscription harder (which is what's actually happening — see the weekly usage-limit backlash around Claude Code's Max plan this spring). The subscription tier as we know it — flat rate, generous cap, one human assumed — is being renegotiated in public, and sub2api tools are one of the forcing functions.

There's also an ecosystem story here. Every one of these tools speaks OpenAI's `/v1/chat/completions` dialect, not the native provider protocol. That's not a coincidence — it's because the downstream consumers (LangChain, LiteLLM, Cline, Aider, every self-hosted RAG stack) speak OpenAI. The OpenAI API is now the S3 of LLM interfaces: nobody prefers it, everyone implements it, and any tool that wants distribution gets translated to it. Sub2api is riding that standard, not the underlying model's protocol.

What this means for your stack

If you're tempted to point production at one of these proxies to cut your Claude bill: don't. The failure mode isn't gradual degradation, it's a full outage the moment the upstream provider flags the harvesting account — usually mid-request, usually with a truncated response your downstream doesn't handle gracefully. You're also carrying the legal risk that the actual account holder signed for in the TOS, which for most commercial use is explicitly "one human, not an API." The unit economics only work until they don't, and "don't" arrives without warning.

If you're building a product that consumes API tokens, this is a data point about where costs are heading. The gap between subscription and API pricing exists because providers are subsidizing the subscription tier to lock in retail users. That subsidy is not stable. Expect Anthropic and OpenAI to either narrow the gap (subscription prices creep up, or usage caps tighten) or add friction to session harvesting (per-request device attestation, stricter WebAuthn on account creation, geographic session pinning). Either way, your "we'll just have devs put it on their personal Claude Pro" internal workaround has a shrinking half-life.

If you're a provider — or you work at one — the takeaway is that the shim layer is not the fight worth having. The session protocol will always leak; the OpenAI-compatible shim on top is fifty lines of code. The fight is at account creation and session lifetime. That's where the defensive posture already sits, and it's where it will keep tightening. The uncomfortable second-order effect is that legitimate users get hit with the same friction — expect more CAPTCHAs, more phone verifications, more "we noticed unusual activity" logouts on the actual paying customers.

Looking ahead

Sub2api won't kill the subscription tier, but it will reshape it. The next round of Pro-tier pricing from the majors will almost certainly ship with tighter per-window caps, stricter one-device rules, and API-shaped "team" plans priced closer to the metered API. That's already visible in Claude Code's Max plan usage windows and in ChatGPT Team's stricter account limits. Three repos trending in a week means the arbitrage is closing, not opening — and the way it closes is by making the sub tier look more like the API tier every quarter. Watch the changelogs, not the GitHub star counts.

GitHub 1371 pts 390 comments

yynxxxxx/Codex-5.5-codex-instruct-5.5: New trending repository

→ read on GitHub
GitHub 693 pts 68 comments

LinXiaoTao/FuckClaude: New trending repository

→ read on GitHub
GitHub 252 pts 25 comments

meituan-longcat/LongCat-2.0: New trending repository

→ read on GitHub
GitHub 248 pts 106 comments

akihitohyh/chatgpt-register-sub2api: New trending repository

→ read on GitHub
GitHub 200 pts 51 comments

JimLiu/science-skills: New trending repository

→ read on GitHub

// share this

// get daily digest

Top 10 dev stories every morning at 8am UTC. AI-curated. Retro terminal HTML email.