• Picks
  • Discover
  • Alternatives
  • About

© 2026 Willet

  • Newsletter
  • About
  • FAQ
  • Terms
  • Privacy & Cookies
Join the Discord (opens in a new tab)
Wesley Liddick avatar

Sub2API

Self-hosted gateway that shares AI subscription quotas via one API

  • AI models and runtimes
  • Self-hosted alternatives
View on GitHub

What it is

Sub2API is a relay server that pools Claude, OpenAI, Gemini, and Grok subscription accounts behind a single API, so coding tools like Claude Code and Codex can use them directly. It handles API key distribution, usage tracking, and cost splitting across users, with a Go backend, Vue admin interface, PostgreSQL, and Redis. Groups who share subscriptions run it to divide quota and costs among members, though the authors warn that doing so may break upstream providers' terms of service.

Images

Facts

Stars
44,449 GitHub stars.
44,449

Forks
9,536
Commits
7,701
Contributors
412
Language
Go
License
LGPL-3.0
Last commit
Oct 19, 2026
On GitHub since
December 2025
First release
June 2026
Platforms
web, Linux, self-hosted
Self-hostable
Yes
Alternative to
OpenRouter
Author
Wesley Liddick
Tags
  • coding-agent
  • llm-gateway
  • proxy

Last synced from GitHub on Oct 20, 2026

The 10 best overlooked open-source projects, every Monday.

Share and more

Comments

No comments yet. Start the conversation.

Similar projects

  • Wesley Liddick avatar

    Claude Relay Service

    Self-hosted relay that pools Claude, OpenAI and Gemini subscriptions

    12.7k
  • Chenyme avatar

    Grok2API

    Self-hosted gateway pooling Grok accounts behind OpenAI-style APIs

    7.8k
  • decolua avatar

    9Router

    Local LLM router that feeds coding agents from many AI providers

    31.1k