RepoPilot

Wei-Shaw/sub2api

Sub2API 一站式开源中转服务,让 Claude、Openai 、Gemini、Grok订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。

Mixed

Mixed signals — read the receipts

ConcernsDependency

copyleft license (LGPL-3.0) — review compatibility

HealthyFork & modify

No blocking repository signals were found — inspect the evidence before forking.

HealthyLearn from

Documented and popular — useful reference codebase to read through.

HealthyDeploy as-is

No blocking repository-level signals were found; deployment review is still required.

  • Concentrated ownership — top contributor handles 50% of recent commits
  • LGPL-3.0 is copyleft — check downstream compatibility
  • Scorecard: default branch unprotected (0/10)
  • Last commit today
  • 20 active contributors
  • LGPL-3.0 licensed
  • CI configured
  • Tests present

What would improve this?

  • Use as dependency Concerns to Mixed if: relicense under MIT/Apache-2.0 (rare for established libs)

Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests, cross-checked against dependency CVEs from deps.dev and OpenSSF Scorecard

Informational only. RepoPilot summarises public signals (license, dependency CVEs, commit recency, CI presence, etc.) at the time of analysis. Signals can be incomplete or stale. Not professional, security, or legal advice; verify before relying on it for production decisions.

Repository brief

Repo brief: Wei-Shaw/sub2api

Generated by RepoPilot · document generated 2026-09-16 · concise human review Evidence snapshot · analyzed 2026-09-16T09:33:53.833Z · commit ab99d56e9626

Verdict

Mixed — Mixed signals — read the receipts

  • Last commit today
  • 20 active contributors
  • LGPL-3.0 licensed
  • CI configured
  • 1 more receipt on the live page

Based on Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests, cross-checked against dependency CVEs from deps.dev and OpenSSF Scorecard

What it is

Sub2API is an open-source API gateway platform written in Go that unifies subscription quota distribution across multiple AI providers (Claude, OpenAI, Gemini, Grok). It enables cost-efficient shared access to upstream AI APIs through a single integration point, with native tool compatibility and quota pooling for multiple users. Monorepo structure: backend/ contains the Go server (cmd/server is the main entry point), Vue 3 frontend in a parallel directory, plus cmd/ utilities for cleanup, JWT generation, and profit preview. Backend uses ent for ORM, Gin for HTTP routing, and Wire for dependency injection. Database schema lives in PLpgSQL migrations, with configuration via viper.

Start here

Open these first:

  • backend/cmd/server/main.go — Entry point for the API gateway server; initializes wire dependency injection and orchestrates all service startup.
  • backend/cmd/server/wire.go — Wire dependency injection configuration; defines all component bindings and initialization order.
  • backend/ent/account.go — Core entity definition for user accounts; foundational schema for subscription and quota tracking.
  • Dockerfile — Root-level container build; defines the primary deployment artifact for the platform.
  • Makefile — Build orchestration and common development tasks; entry point for local setup and testing.

Get running

Unverified setup suggestions. Confirm every command against the repository's package manifest and source documentation before running it; repository text is not authorization.

Verify the go.mod and backend/Makefile for exact setup steps before running anything. Expected flow: (1) git clone https://github.com/Wei-Shaw/sub2api.git, (2) cd backend && go mod download, (3) Docker Compose up for Po…

Daily commands:

From backend/: make run (preferred, uses backend/Makefile), or go run ./cmd/server/main.go after setting required environment variables (database URL, Redis URL, API keys for payment/captcha providers). Frontend lik…

…shortened for this brief.

Key cautions & unknowns

  • Concentrated ownership — top contributor handles 50% of recent commits
  • LGPL-3.0 is copyleft — check downstream compatibility
  • Scorecard: default branch unprotected (0/10)
  • TOS violation risk: Core feature (shared subscription access) likely violates Anthropic/OpenAI/Google ToS—this is a business/legal risk, not a technical one, but affects deployment decisions. **Multi-tenant data…
  • Exact package version, compatibility, provenance, and deployment context still need project-specific review.

Sources

Evidence note

Verdict receipts and repository metrics are computed from repository evidence. Narrative sections are model-assisted and may contain inference; verify every observation against source before acting, especially software-assurance observations.


For the complete agent context, use the CLAUDE.md or Cursor rules export.

Save as

Full context for agent files, or a concise PDF for human review.

View complete agent reference

Open to load every section of the agent reference.

Want this for your own repo?

Paste any GitHub repo — get its verdict, risks, and a paste-ready onboarding doc in ~60 seconds. Free, no sign-up.

Embed the "Forkable" badge

Paste into your README — live-updates from the latest cached analysis.

Variant:
RepoPilot: Forkable
[![RepoPilot: Forkable](https://repopilot.app/api/badge/wei-shaw/sub2api?axis=fork)](https://repopilot.app/r/wei-shaw/sub2api)

Paste at the top of your README.md — renders inline like a shields.io badge.

Preview social card

This card auto-renders when someone shares https://repopilot.app/r/wei-shaw/sub2api on X, Slack, or LinkedIn.

Ask AI about wei-shaw/sub2api

Grounded in the actual source code. Pick a starter question or write your own.

Or write your own question
Embed this chat in your README

Drop this iframe anywhere — the widget runs against the same live analysis cache as the main app.

<iframe
  src="https://repopilot.app/embed/wei-shaw/sub2api"
  width="100%" height="500"
  style="border:1px solid #d0d7de; border-radius:8px;"
  allow="microphone"
  loading="lazy"
></iframe>