Skip to main content

sub2api-relay-setup

从零搭建一个自己可控的 AI API 中转站并部署 Sub2API(Wei-Shaw/sub2api)网关。指导完成:去哪买服务器与买什么规格、 域名合规选择、系统初始化(Docker/Caddy/fail2ban/UFW/swap)、docker compose 部署、Caddy 反代+域名+Let's Encrypt 自动 HTTPS、 后台 settings 表与数据库配置、管理员与普通用户/API Key 治理、上游渠道与分组接入、把旧 CRS 服务器迁移成 Sub2API、 烟测与长期运维(升级/备份/1C2G 防 OOM/欠费恢复)。所有真实 IP、域名、密码一律用占位符。 Use when the user wants to: 搭建/自建 AI 中转站、部署 sub2api、搭 AI API 网关、订阅转 API、把 CRS 迁到 sub2api、 给中转站换域名、配 Caddy 反代 HTTPS,或问"怎么买服务器搭中转"。触发词:中转站 / sub2api / AI API 网关 / 自建中转 / relay / gateway / 订阅转 api / Caddy HTTPS / 换域名 / CRS 迁移。

Jump to install

Source facts

Repository
jessepwj/sub2api-relay-setup
Last source activity
July 5, 2026 at 08:33
Detected SKILL.md language
Chinese
Stars
4
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.