Wei-Shaw/sub2api
Sub2API 一站式开源中转服务,让 Claude、Openai 、Gemini、Grok订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。 observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 99
- Release rhythm 99
- Longevity 18
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 1.0
- age_days: 259
- days_rel: 8
- days_push: 7
- n_releases_24m: 43
Adoption not part of the score
39526 stars · 8164 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Sub2API is a self-hosted AI API gateway written in Go that converts Claude, OpenAI, Gemini, and Grok subscriptions into unified API access. It supports group quota sharing (carpooling) so multiple users can split subscription costs while using native tools seamlessly.
Use cases
- turn claude subscription into an api endpoint
- share ai subscription quota with a team
- unify claude openai gemini behind one gateway
- split llm subscription costs among friends
- self-host a proxy for claude code and codex
- distribute ai api keys with rate limits
When to choose
- you have paid AI subscriptions you want to expose as APIs
- a group wants to share subscription quotas fairly
- you need one unified endpoint for multiple AI providers
- you want self-hosted control over AI API relay
When to avoid
- you need strictly ToS-compliant usage - it may violate provider terms
- you need a commercial relay service (commercial use is not authorized)
- you only need direct official API access without sharing
Facets
service · maturity active
api-gateway proxy llm-inference rate-limiting self-hosted large-language-models apis self-hosted developer-tools go self-hosted subscription-to-api claude openai gemini quota-sharing relay-service cost-sharing docker web-server linux
1 source
- readme: https://github.com/Wei-Shaw/sub2api · fetched 2026-08-28 · 6a7e478da337
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Wei-Shaw/sub2api | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="Wei-Shaw/sub2api")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem