# Wei-Shaw/sub2api

Sub2API 一站式开源中转服务，让 Claude、Openai 、Gemini、Grok订阅统一接入，支持拼车共享，更高效分摊成本，原生工具无缝使用。

Repository: https://github.com/Wei-Shaw/sub2api
Canonical: https://ross.abutalabs.com/products/sub2api
Language: Go
License: LGPL-3.0
License Family: copyleft
Topics: 2api, antigravity2api, claude, claude-code, codex, crs, gemini, cc2api, crs2
Last push: 2026-08-26T13:17:00+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 99, longevity 18
- inputs: {"age_days": 259, "days_push": 7, "days_rel": 8, "gap_med": 1.0, "n_releases_24m": 43}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 39526, forks 8164 (observed 2026-08-28T04:12:07.876229+00:00)

## What it is
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
- artifact type: service
- maturity: active
- function: api-gateway, proxy, llm-inference, rate-limiting, self-hosted
- domain: large-language-models, apis, self-hosted, developer-tools
- platform: go, self-hosted
- tags: subscription-to-api, claude, openai, gemini, quota-sharing, relay-service, cost-sharing, docker, web-server, linux

## Member repositories
- Wei-Shaw/sub2api (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:07.876229+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:24:07.225871+00:00, confidence not recorded.
  - readme: https://github.com/Wei-Shaw/sub2api (fetched 2026-08-28T04:12:07.876229+00:00, sha 6a7e478da337)
- Data as of 2026-08-30T08:39:29.467469+00:00.
