---
title: "Sub2API Lets Teams Share Claude and OpenAI Subscriptions Like Carpooling"
subtitle: "A Go-based open source relay platform pools Claude, OpenAI, Gemini, and Grok subscriptions behind one endpoint with billing, sticky sessions, and cost sharing."
url: "https://alphasignal.ai/news/sub2api-lets-teams-share-claude-and-openai-subscriptions-like-carpooling"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-08-21T09:49:55.000Z"
updated: "2026-08-22T00:40:35.065Z"
type: "Repo"
topics:
  - "Api"
  - "Infra"
subtopics:
  - "Model Serving"
  - "Inference Optimization"
  - "Monitoring"
upvotes: 93
source_url: "https://github.com/Wei-Shaw/sub2api"
comments: 0
truncated: true
---

# Sub2API Lets Teams Share Claude and OpenAI Subscriptions Like Carpooling

> A Go-based open source relay platform pools Claude, OpenAI, Gemini, and Grok subscriptions behind one endpoint with billing, sticky sessions, and cost sharing.

An open source project called [Sub2API](https://github.com/Wei-Shaw/sub2api) has quietly become one of the most-starred AI infrastructure repos on GitHub, sitting at roughly 38K stars and 7.1K forks. It packages a full self-hostable gateway that turns a handful of consumer AI subscriptions into a single OpenAI-compatible endpoint that teams can share, meter, and bill against.

With tools like Claude Code and GitHub Copilot in daily rotation, developers end up paying for multiple AI subscriptions such as Claude Pro or OpenAI Plus, each with its own usage limits and idle quotas. There is no clean way to consolidate those scattered resources and distribute costs across tools and users. Sub2API fills that gap with what its Chinese community calls 拼车, or carpooling, for API access.

## What actually ships

Sub2API is a Go 1.25 backend paired with a Vue 3 frontend, sitting on PostgreSQL 15 and Redis 7\. Users authenticate against the platform, and the platform routes their calls to whichever upstream account has capacity. It handles authentication, quota allocation, billing logic, load balancing, and request forwarding, unifying access to Claude, OpenAI, Gemini, and related services through a centralized relay layer.

The core features go well past a dumb reverse proxy:

* **Multi-account pooling** across OAuth subscription accounts and raw API keys for Claude, OpenAI, Gemini, Grok, and Antigravity

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [Wei-Shaw/sub2api GitHub repository](https://github.com/Wei-Shaw/sub2api)
- [Open Source Project (No.73): Sub2API](https://dev.to/wonderlab/open-source-project-no73-sub2api-all-in-one-claudeopenaigemini-subscription-to-api-relay-235n)
- [sub2api - AI Agent Review](https://agentconn.com/agents/sub2api/)
- [Sub2API SourceForge mirror](https://sourceforge.net/projects/sub2api.mirror/)
