claude-skill
Sub2api
Sub2API 一站式开源中转服务,让 Claude、Openai 、Gemini、Grok订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。
37,136 stars7,663 forksGoUpdated 8/15/2026100% free · open source
What it does
Sub2API is a one-stop open-source proxy service that allows unified access to Claude, Openai, Gemini, and Grok subscriptions, supporting cost-sharing and seamless native tool usage.
Install / run
go get github.com/Wei-Shaw/sub2apiWhen to use it
- •When you need to manage multiple AI subscriptions from different providers
- •When you want to reduce costs by sharing subscriptions with others
- •When you need a unified interface for different AI tools
Quick start
- 1Clone the repository: git clone https://github.com/Wei-Shaw/sub2api.git
- 2Build the project: go build main.go
- 3Configure the subscription settings in the config.json file
- 4Run the service: go run main.go
- 5Test the API using tools like curl or Postman
Ready-to-paste prompt
curl -X GET 'http://localhost:8080/api/claudereq?prompt=Hello+World&subscription_id=your_subscription_id'
Heads up: Make sure to replace 'your_subscription_id' with your actual subscription ID from the AI provider in the config.json file and when making API requests
Saves to your device
Topics
2api
antigravity2api
cc2api
claude
claude-code
codex
crs
crs2
gemini
How Sub2api works
Codeflow
Free to inspect
Sub2api is a very large Go project (~1M lines across 3240 code files, plus 243 test files). It is a full software project: use it through its install path rather than reading it end to end. Last commit this month, LGPL-3.0 license, has a test suite.
Size
Very large codebase
~1M lines · 3240 code files · days to read — use, don't read
Setup
Developer setup
A real software project. Use it via its install path; don't expect to read it all.
Runs on
Docker
No API keys detected
Go 74%Vue 16%TypeScript 10%
Where to start reading
- 1README.mdStart here — what it does and how to install it
- 2backend/internal/setup/cli.goInside backend/internal/ — the main logic begins here
What's in each folder
READMEHas testsDocumentedCI checksDocker readyLGPL-3.0 licenseUpdated this month
Details
Creator
Wei-Shaw
Language
Go
Category
claude-skill
Published
12/18/2025
Are you the creator of this tool? Claim your listing → and earn 85% of every sale.
Related skills
More claude-skill tools founders pair with this one.
claude-skill★ 236,542
Hermes-Agent: AI Growth
Scale with a versatile AI agent. For startup founders using Python and AI.
claude-skill★ 186,844
AutoGPT: Accessible AI Tools
Get accessible AI tools with AutoGPT, for startup founders, with 184k+ GitHub stars.
claude-skill★ 143,473
Langchain
The agent engineering platform.
claude-skill★ 116,560
UI UX Pro Max Skill
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
claude-skill★ 99,060
Caveman: Reduce Tokens
Get efficient token usage with Caveman, a Claude Code skill for founders. 69k+ GitHub stars.
claude-skill★ 76,019
Rtk
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies