Sub2API
Sub2API is a self-hosted gateway that lets a team share Claude, OpenAI, Gemini and Grok subscriptions through one service.
What it is good for
- Sharing one AI subscription across several people
- Splitting the cost of AI subscriptions among a group
- Using Claude Code or Codex with pooled subscription access
- Managing access to several AI providers from one place
At a glance
- Who it is for
- Setup
- Guided command-line setup
Level 4 of 5. You copy and paste commands into a terminal by following the instructions. Comfortable territory for vibe coders.
- Cost
- Free and open source
- Type
- Agent app
- Tasks
- Works with
- Claude Code, Codex, Claude, OpenAI, Gemini, Grok
Momentum
- Rank this week
- Not ranked yet
- Best rank
- None yet
- GitHub stars
- 45,291
GitHub numbers as of Nov 2, 2026. Updated weekly.
Official links
Setup steps are on the official pages. We do not repeat them here, since they change.
Questions
- Is Sub2API free?
- Yes. It is free and open source (LGPL-3.0 license).
- Do I need to know how to code to use Sub2API?
- You do not need to write code, but setup means copying and pasting commands into a terminal by following its instructions.
- What does Sub2API work with?
- According to its own documentation, it works with Claude Code, Codex, Claude, OpenAI, Gemini, and Grok.
- What is Sub2API good for?
- Sharing one AI subscription across several people, splitting the cost of AI subscriptions among a group, using Claude Code or Codex with pooled subscription access, and managing access to several AI providers from one place.
Similar agents
- LibreChat
LibreChat is a self-hosted chat app that runs AI agents, tools, and multiple AI models for teams that want their own ChatGPT-style interface.
- Octop
Octop is a self-hosted AI assistant that runs multiple specialized agents for households and small teams.
- KiroCrew
KiroCrew is a self-hosted development workspace that keeps agent work running between sessions for developers who want long tasks done unattended.
- Mercury
Mercury is an agent app that runs on your own machine and keeps working in the background, for people who want a personal assistant that remembers them and asks before acting.
- qwen-audio-agent
qwen-audio-agent is a realtime voice runtime that lets you talk to an AI agent while it keeps working on background tasks for you.
- MLX-Serve
MLX-Serve is a local model server and Mac app that runs AI models offline for chat, coding agents, and media for Mac users.