commit fef45134d555b68ffbbbd9bd39d612b85b11373f Author: 432539 <432539@users.noreply.github.com> Date: Wed Aug 5 14:54:32 2026 +0800 Initial commit: GPT 账号注册机 (open source) 只开源「GPT 账号注册机 / 管理」(account-manager):账号列表/导入导出、检测/批量检测、 拿 RT、协议/浏览器注册等注册机能力。批量直开 / 协议支付 / 提取链接 / 直卡直开 等其它功能 不含实现代码,仅通过 iframe 内嵌外链访问。真实机密均由 .gitignore 忽略,仅提供脱敏示例配置。 diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..e683139 --- /dev/null +++ b/.env.example @@ -0,0 +1,8 @@ +# 复制为 .env 后按需填写(.env 已被 .gitignore 忽略) +# 监听地址与端口 +HOST=127.0.0.1 +PORT=5090 +# Node 可执行文件路径(默认走 PATH 上的 node) +# ACCOUNT_MGR_NODE=C:\Program Files\nodejs\node.exe +# 注册子进程回读验证码用的内部地址(默认指向本应用端口) +# ACCOUNT_MGR_BASE=http://127.0.0.1:5090 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a7b0a4f --- /dev/null +++ b/.gitignore @@ -0,0 +1,32 @@ +# ===== 机密 / 真实数据(切勿提交)===== +# account-manager 真实配置(代理 / 接码 / 邮箱 / license key 等) +account-manager/config/settings.json +account-manager/config/proxies.json +account-manager/config/mailbox.json +account-manager/config/*.local.json + +# 运行期数据(账号、收件箱、探测缓存等) +data/ +*.jsonl +*.db +*.sqlite +*.sqlite3 + +# 环境变量 +.env +.env.* +!.env.example + +# Node 依赖与诊断产物 +node_modules/ +account-manager/node/_*.log +account-manager/node/_*.png + +# Python +__pycache__/ +*.pyc +.venv/ +venv/ + +# 日志 +*.log diff --git a/README.md b/README.md new file mode 100644 index 0000000..88b2a5f --- /dev/null +++ b/README.md @@ -0,0 +1,146 @@ +# GPT 账号注册机 / 管理(开源版) + +> 本仓库**只开源「GPT 账号注册机 / 管理」(GPT管理,account-manager)**这一个功能。 +> 批量直开、协议支付、提取链接、直卡直开等其它功能**不在本仓库内、不含任何实现代码**, +> 仅通过右侧 iframe 内嵌外链的方式访问(它们是独立 / 闭源的线上服务)。 + +An open-source **ChatGPT account registration & management tool**. Only the account +manager (`account-manager`) is open-sourced here. Other capabilities (card-flow / +protocol-pay / link-extract / direct-card) are **not** part of this repo and are only +reachable as embedded external links. + +--- + +## 一、开源范围 + +### ✅ 本仓库包含(且仅包含):GPT管理 / 注册机 + +页面 `/account-manager/`,能力包括: + +- **账号列表 / 分页 / 搜索 / 筛选**(只看已开通、按状态筛选等) +- **导入账号**:支持 `sub2api.json`、`email----password----clientId----refreshToken`、纯 access token 三种格式 +- **导出**:批量导出 AT / SUB 格式 / 账密 +- **检测 / 批量检测**:用 refresh_token 续期换 access_token,实时校验套餐(plan)与有效期 +- **自动刷新 TOKEN**:对未知 / 过期 / 临近过期账号自动续期 +- **拿 RT / 重拿 RT**:用 codex 客户端登录换取 refresh_token(触发手机验证时自动接码) +- **账号注册(注册机核心)**: + - 协议注册(HTTP 直连) + - 浏览器注册(CloakBrowser 隐身 Chromium) + - 批量补绑手机并拿 RT +- **设置**:代理池 / 接码(smscode·smsbower·herosms)/ 邮箱池 / 浏览器(CloakBrowser license、注册口令) + +### ❌ 本仓库不包含(仅 iframe 外链) + +| 菜单 | 形态 | 说明 | +| --- | --- | --- | +| 直卡直开 | iframe 外链 | 独立线上服务,无源码 | +| 批量直开(试用3天) | iframe 外链 | 独立线上服务,无源码 | +| 协议支付(试用3天) | iframe 外链 | 独立线上服务,无源码 | +| 提取链接(试用3天) | iframe 外链 | 独立线上服务,无源码 | + +这些菜单点击后只在右侧内容区加载一个指向外部 URL 的 ` +
+ 该服务暂时无法在此页内嵌显示 + 可能因目标站点的安全策略(X-Frame-Options / CSP)或自签名证书导致。 + 在新标签页打开 {{ embed_title }} ↗ +
+ + + + +