sub2api

Wei-Shaw

A self-hosted relay that pools Claude, OpenAI, Gemini and Grok subscriptions behind one API so a group can share their cost. The project itself warns that this may violate the providers' terms of service.

GoCreated

What is Wei-Shaw/sub2api?

Sub2API is an AI API gateway that pools subscription quotas from several providers, including Claude, OpenAI, Gemini and Grok, behind one interface, so the cost can be shared among a group. It is written in Go and offers a web interface, and the README includes a warning that using the project may violate the terms of service of Anthropic and other upstream providers.

The risk the README describes is significant: subscriptions are normally personal, and sharing them through a gateway can lead to account suspension. Users are responsible for complying with each provider's rules and for the consequences of their choices.

It is listed here because of its popularity. It is not a recommendation, and anyone considering it should read the provider terms first.

2apiantigravity2apicc2apiclaudeclaude-codecodexcrscrs2