Skills

Wei-Shaw/sub2api

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

Stars
46,409
+7 days
—
Forks
10,085
Language
Go
License
LGPL-3.0
Last push
21 Nov 2026

Summary

Summary written by AI from the README; it may be imprecise.

This open-source AI API gateway platform distributes and manages upstream subscription quotas across providers like Claude, OpenAI, and Gemini. It provides API key distribution, token-level billing, concurrency control, rate limiting, and sticky session scheduling for downstream users. An administrative dashboard and built-in payment integration allow operators to monitor usage and handle top-ups.

Use it when

  • Distributing quotas from multiple AI subscription accounts to end users or team members
  • Routing requests from coding tools like Claude Code or Codex through shared upstream accounts
  • Managing token billing, concurrency limits, and self-service top-ups for AI model access

Install

npm
npm install -g pnpm

Commands quoted from the repo's README. Read the README before running them.

Needs a token or API key.

Stars over 90 days

Collecting: 2 of 90 days so far. The chart appears after 7 days.

Type to search the reference, templates and lessons.