Source: https://seerepo.com/compare/tbphp/gpt-load/vs/Wei-Shaw/sub2api
Markdown source: https://seerepo.com/compare/tbphp/gpt-load/vs/Wei-Shaw/sub2api.md
Description: gpt-load and sub2api share 6 technologies: Gin, Postgres, Vite, Vue, vue-router, and Tailwind CSS. Both are written in Go.

# gpt-load vs sub2api

gpt-load and sub2api share 6 technologies: Gin, Postgres, Vite, Vue, vue-router, and Tailwind CSS. Both are written in Go.

- [tbphp/gpt-load](https://seerepo.com/r/tbphp/gpt-load): Self-hosted AI gateway for multi-channel, multi-credential setups — API keys and subscription accounts, scheduling, failover, request logs and usage. 自托管 AI 网关：多渠道多凭据统一接入，含密钥与订阅账号、调度容错、日志与用量。
- [Wei-Shaw/sub2api](https://seerepo.com/r/Wei-Shaw/sub2api): Sub2API 一站式开源中转服务，让 Claude、Openai 、Gemini、Grok订阅统一接入，支持拼车共享，更高效分摊成本，原生工具无缝使用。

## What they share and what sets them apart

- In common: Gin, Postgres, Vite, Vue, vue-router, Tailwind CSS
- Only in gpt-load: github.com/glebarez/sqlite, MySQL, gorm.io/gorm, github.com/maximhq/bifrost/core, github.com/sirupsen/logrus, Reka UI, Lucide
- Only in sub2api: go-redis, pq, s3, Redis, Dgraph, github.com/patrickmn/go-cache, SQLite, Alibaba Cloud, Alipay, MCP, Stripe, github.com/zeromicro/go-zero, entgo.io/ent, github.com/golang-jwt/jwt/v5, github.com/go-webauthn/webauthn, github.com/aws/aws-sdk-go-v2/credentials, github.com/pquerna/otp, Model Context Protocol, github.com/tiktoken-go/tokenizer, golang.org/x/image, github.com/go-playground/validator/v10, go.uber.org/zap, github.com/aws/aws-sdk-go-v2, github.com/aws/aws-sdk-go-v2/config, github.com/hashicorp/go-hclog, github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common, gopkg.in/natefinch/lumberjack.v2, Chart.js, vue-chartjs, driver.js, TanStack, vue-draggable-plus, dompurify, marked, qrcode, xlsx

## Side by side

| | gpt-load | sub2api |
|---|---|---|
| Size | 492,548 lines written, 1,249 code files | 1,231,192 lines written, 1,736 code files |
| Who writes it | 0.1% of its commits signed by AI. With Cursor | 18.5% of its commits signed by AI. With Codex, Claude Code, Cursor, GitHub Copilot, and Factory |
| Activity | Last push November 20, 2026, 1,408 commits, 7,234 stars | Last push November 18, 2026, 5,680 commits, 46,237 stars |
| Tests | 768 test files. 40.2% of its code files have a test that imports them | 2,190 test files. 79.4% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## Frequently asked questions

### Which is bigger, gpt-load or sub2api?

sub2api, with 1,231,192 lines written; gpt-load has 492,548.

The proof: [Wei-Shaw/sub2api's code at commit 2af3f1e](https://github.com/Wei-Shaw/sub2api/tree/2af3f1e15c98c893a89255a037f551046883b8c0)

### Which has more GitHub stars, gpt-load or sub2api?

sub2api, with 46,237 stars; gpt-load has 7,234.

The proof: [Wei-Shaw/sub2api on GitHub](https://github.com/Wei-Shaw/sub2api)

### Which has more tests, gpt-load or sub2api?

sub2api, with 2,190 test files; gpt-load has 768.

The proof: [Wei-Shaw/sub2api's code at commit 2af3f1e](https://github.com/Wei-Shaw/sub2api/tree/2af3f1e15c98c893a89255a037f551046883b8c0)

### Which was updated more recently, gpt-load or sub2api?

gpt-load: its last push was on November 20, 2026, and sub2api's on November 18, 2026.

The proof: [tbphp/gpt-load's commits on GitHub](https://github.com/tbphp/gpt-load/commits)

### Which has more commits signed by AI, gpt-load or sub2api?

sub2api: an AI signed 18.5% of its commits, with Codex, Claude Code, Cursor, GitHub Copilot, and Factory; in gpt-load, 0.1%.

The proof: [the commits each tool signed in Wei-Shaw/sub2api](https://seerepo.com/r/Wei-Shaw/sub2api/ai)

## Sources

- tbphp/gpt-load: Read on November 20, 2026, at commit b4bebbc (https://github.com/tbphp/gpt-load/tree/b4bebbc4901be8b721b6eadb14f1ead926d87cac)
- Wei-Shaw/sub2api: Read on November 18, 2026, at commit 2af3f1e (https://github.com/Wei-Shaw/sub2api/tree/2af3f1e15c98c893a89255a037f551046883b8c0)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
