mirror of
https://github.com/adminlove520/AI-Account-Toolkit.git
synced 2026-05-10 12:29:33 +08:00
feat: ChatGPT 批量注册工具 - 支持 DuckMail + CPA 面板
This commit is contained in:
87
README.md
Normal file
87
README.md
Normal file
@@ -0,0 +1,87 @@
|
||||
# ChatGPT 批量自动注册工具
|
||||
|
||||
> 使用 DuckMail 临时邮箱,并发自动注册 ChatGPT 账号
|
||||
|
||||
## 功能
|
||||
|
||||
- 📨 自动创建临时邮箱 (DuckMail)
|
||||
- 📥 自动获取 OTP 验证码
|
||||
- ⚡ 支持并发注册多个账号
|
||||
- 🔄 自动处理 OAuth 登录
|
||||
- ☁️ 支持代理配置
|
||||
- 📤 支持上传账号到 Codex / CPA 面板
|
||||
|
||||
## 环境
|
||||
|
||||
```bash
|
||||
pip install curl_cffi
|
||||
```
|
||||
|
||||
## 配置 (config.json)
|
||||
|
||||
```json
|
||||
{
|
||||
"total_accounts": 5,
|
||||
"duckmail_api_base": "https://api.duckmail.sbs",
|
||||
"duckmail_bearer": "你的 DuckMail API Token",
|
||||
"proxy": "http://127.0.0.1:7890",
|
||||
"output_file": "registered_accounts.txt",
|
||||
"enable_oauth": true,
|
||||
"oauth_redirect_uri": "http://localhost:1455/auth/callback",
|
||||
"ak_file": "ak.txt",
|
||||
"rk_file": "rk.txt"
|
||||
}
|
||||
```
|
||||
|
||||
| 配置项 | 说明 |
|
||||
|--------|------|
|
||||
| total_accounts | 注册账号数量 |
|
||||
| duckmail_bearer | DuckMail API Token |
|
||||
| proxy | 代理地址 (可选) |
|
||||
| output_file | 输出账号文件 |
|
||||
| enable_oauth | 启用 OAuth 登录 |
|
||||
| ak_file | Access Key 文件 |
|
||||
| rk_file | Refresh Key 文件 |
|
||||
|
||||
## CPA 面板集成
|
||||
|
||||
注册完成后,可以自动上传账号到 CPA 面板:
|
||||
|
||||
| 配置项 | 说明 | 参考 |
|
||||
|--------|------|------|
|
||||
| upload_api_url | CPA 面板上传 API 地址 | https://help.router-for.me/cn/ |
|
||||
| upload_api_token | CPA 面板登录密码 | 你的 CPA 面板密码 |
|
||||
|
||||
> CPA 面板仓库: https://github.com/dongshuyan/CPA-Dashboard
|
||||
|
||||
## 使用
|
||||
|
||||
```bash
|
||||
python chatgpt_register.py
|
||||
```
|
||||
|
||||
## 输出
|
||||
|
||||
注册成功的账号会保存到 `registered_accounts.txt`
|
||||
|
||||
## 目录结构
|
||||
|
||||
```
|
||||
chatgpt_register/
|
||||
├── chatgpt_register.py # 主程序
|
||||
├── config.json # 配置文件
|
||||
├── README.md # 本文档
|
||||
├── codex/ # Codex 协议密钥生成
|
||||
│ ├── config.json
|
||||
│ └── protocol_keygen.py
|
||||
├── registered_accounts.txt # 输出的账号
|
||||
├── ak.txt # Access Keys
|
||||
└── rk.txt # Refresh Keys
|
||||
```
|
||||
|
||||
## 注意事项
|
||||
|
||||
- 需要有效的代理才能注册成功
|
||||
- DuckMail API Token 需要从 https://duckmail.sbs 获取
|
||||
- 建议使用代理避免 IP 被封
|
||||
- 使用 CPA 面板需要先部署面板服务
|
||||
1866
chatgpt_register.py
Normal file
1866
chatgpt_register.py
Normal file
File diff suppressed because it is too large
Load Diff
60
codex/README.md
Normal file
60
codex/README.md
Normal file
@@ -0,0 +1,60 @@
|
||||
# Codex 协议密钥生成工具
|
||||
|
||||
> 为 ChatGPT 注册生成 Codex 协议所需的 Access Key 和 Refresh Key
|
||||
|
||||
## 功能
|
||||
|
||||
- 🔑 自动生成 Access Key (ak)
|
||||
- 🔄 自动生成 Refresh Key (rk)
|
||||
- 📤 支持上传到 Codex / CPA 面板
|
||||
- ⚡ 支持并发生成
|
||||
|
||||
## 配置 (config.json)
|
||||
|
||||
```json
|
||||
{
|
||||
"total_accounts": 800,
|
||||
"concurrent_workers": 8,
|
||||
"headless": false,
|
||||
"proxy": "http://127.0.0.1:7890",
|
||||
"cf_worker_domain": "你的 Cloudflare Worker 域名",
|
||||
"cf_email_domain": "你的 Cloudflare 邮箱域名",
|
||||
"cf_admin_password": "你的 Cloudflare 管理密码",
|
||||
"upload_api_url": "https://你的CPA地址/v0/management/auth-files",
|
||||
"upload_api_token": "你的CPA密码",
|
||||
"cli_proxy_api_base": "你的CPA基础URL",
|
||||
"cli_proxy_management_url": "http://你的CPA地址/management.html#/oauth",
|
||||
"cli_proxy_password": "你的CPA密码"
|
||||
}
|
||||
```
|
||||
|
||||
| 配置项 | 说明 |
|
||||
|--------|------|
|
||||
| total_accounts | 生成账号数量 |
|
||||
| concurrent_workers | 并发数 |
|
||||
| proxy | 代理地址 |
|
||||
| cf_worker_domain | Cloudflare Worker 域名 |
|
||||
| upload_api_url | CPA 上传 API |
|
||||
| cli_proxy_api_base | CPA CLI 代理 API |
|
||||
|
||||
## 使用
|
||||
|
||||
```bash
|
||||
python protocol_keygen.py
|
||||
```
|
||||
|
||||
## 输出
|
||||
|
||||
- `ak.txt` - Access Keys
|
||||
- `rk.txt` - Refresh Keys
|
||||
- `registered_accounts.csv` - CSV 格式账号
|
||||
|
||||
## 接入 CPA 面板
|
||||
|
||||
生成后可以自动上传到 CPA 面板:
|
||||
|
||||
1. 部署 CPA 面板: https://github.com/dongshuyan/CPA-Dashboard
|
||||
2. 配置 `upload_api_url` 和 `upload_api_token`
|
||||
3. 运行后自动上传
|
||||
|
||||
> 文档: https://help.router-for.me/cn/
|
||||
21
codex/config.json
Normal file
21
codex/config.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"total_accounts": 800,
|
||||
"concurrent_workers": 8,
|
||||
"headless": false,
|
||||
"proxy": "",
|
||||
"cf_worker_domain": "",
|
||||
"cf_email_domain": "",
|
||||
"cf_admin_password": "",
|
||||
"oauth_issuer": "https://auth.openai.com",
|
||||
"oauth_client_id": "app_EMoamEEZ73f0CkXaXp7hrann",
|
||||
"oauth_redirect_uri": "http://localhost:1455/auth/callback",
|
||||
"upload_api_url": "https://你的CPA地址/v0/management/auth-files",
|
||||
"upload_api_token": "你的CPA密码",
|
||||
"cli_proxy_api_base": "你的CPA基础URL",
|
||||
"cli_proxy_management_url": "http://你的CPA地址/management.html#/oauth",
|
||||
"cli_proxy_password": "你的CPA密码",
|
||||
"accounts_file": "accounts.txt",
|
||||
"csv_file": "registered_accounts.csv",
|
||||
"ak_file": "ak.txt",
|
||||
"rk_file": "rk.txt"
|
||||
}
|
||||
2277
codex/protocol_keygen.py
Normal file
2277
codex/protocol_keygen.py
Normal file
File diff suppressed because it is too large
Load Diff
22
config.json
Normal file
22
config.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"_comment": "ChatGPT(DuckMail)",
|
||||
|
||||
"total_accounts": 5,
|
||||
|
||||
"duckmail_api_base": "https://api.duckmail.sbs",
|
||||
"duckmail_bearer": "",
|
||||
|
||||
"proxy": "",
|
||||
|
||||
"output_file": "registered_accounts.txt",
|
||||
"enable_oauth": true,
|
||||
"oauth_required": true,
|
||||
"oauth_issuer": "https://auth.openai.com",
|
||||
"oauth_client_id": "app_EMoamEEZ73f0CkXaXp7hrann",
|
||||
"oauth_redirect_uri": "http://localhost:1455/auth/callback",
|
||||
"ak_file": "ak.txt",
|
||||
"rk_file": "rk.txt",
|
||||
"token_json_dir": "codex_tokens",
|
||||
"upload_api_url": "http://localhost:8317/v0/management/auth-files",
|
||||
"upload_api_token": "你的cpa面板登录密码"
|
||||
}
|
||||
Reference in New Issue
Block a user