TrendWhat rose on GitHub, every day at 07:30 KST · 한국어

GitHub · as of November 8, 2026 · View on GitHub →

Wei-Shaw/sub2api

AI API gateway service

+426 stars in 7 days

Share subscription-based AI service quotas among multiple users

This platform changes the way subscription-based AI services like Claude, OpenAI, Gemini, and Grok are used by allowing multiple users to access a single account and split the costs. It issues a dedicated API key to each user, routes requests to the appropriate account, and settles usage on a per-token basis. This creates a structure where teams or communities can use AI coding tools efficiently without one person bearing the high subscription fee alone.

Distribution and settlement of subscription quotas

The core of this system is managing multiple upstream AI accounts behind a single gateway. Users connect to tools like Claude Code or Codex using the API key generated by the platform. The platform intelligently selects which account to send requests to and manages sessions to ensure they are maintained. Simultaneously, it accurately tracks each user's token usage to calculate costs. This ensures that requests are processed without confusion even when multiple users access a single account, and it clearly shows who used how much.

Management tools for operations

A web-based management dashboard allows you to add or delete accounts and set user access permissions. You can adjust the number of concurrent connections and request rate limits per user to prevent specific users from monopolizing all resources. The built-in payment system integrates EasyPay, Alipay, WeChat Pay, and Stripe, allowing users to top up their balances themselves. It also supports embedding external ticketing systems and other tools via iframe to extend the management interface.

Deployment environment and requirements

To install on a server, you must have PostgreSQL 15 or higher and Redis 7 or higher running in a Linux environment. Using Docker Compose simplifies setup by deploying the database and cache server together. If you are using Apple Silicon chips on macOS, you can also run the entire stack locally via Apple container. When using Nginx as a reverse proxy, you must add the underscores_in_headers on; setting to prevent values containing underscores in headers from being deleted, ensuring the session maintenance feature works correctly.

Risks to check before use

Using this project may violate the terms of service of upstream providers such as Anthropic. Users bear full responsibility for all risks that arise, including account suspension, service interruption, and data loss. The developers state that they have not approved commercial use and provide the project solely for technical learning and research purposes. Therefore, you must carefully review the laws of your country and the terms of service of each AI service before adopting this tool. In particular, if used for commercial purposes, the responsibility for legal disputes and losses lies with the user.

Written by AI from this repository's README on September 30, 2026. For the facts, the original on GitHub is the reference.

By the numbers

GitHub trending history
1 day between Jun 19, when Trend began recording, and Nov 8, 2026 · first on Aug 22 · best daily rank #5 (Aug 22)

Read from GitHub, as of November 8, 2026.

Language
Go
Topics
2api · antigravity2api · cc2api · claude · claude-code · codex · crs · crs2
Stars
45,665
Stars gained in 7 days
+426
Contributors
510
Forks
9,867
Latest release
v0.2.20 · November 7, 2026
Commits
7,923
Last commit
November 7, 2026
Open issues
2,782
Open pull requests
1,078

Related repositories

View on GitHub →

README badge

trend.ondo.sh · GitHub daily trending #5 · August 22, 2026

The badge above shows the highest this repository has ranked on GitHub's daily trending since June 19, 2026, and the day it did. Paste the Markdown below into your README. The badge opens this page, and it updates by itself when the repository climbs higher.

[![trend.ondo.sh](https://trend.ondo.sh/github/r/Wei-Shaw--sub2api/badge.en.svg)](https://trend.ondo.sh/github/r/Wei-Shaw--sub2api/en.html)