Files
codexTool/config.toml.example
2026-01-27 09:08:34 +08:00

255 lines
9.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ==================== OaiTeamCrsRegister 配置文件 ====================
# 复制此文件为 config.toml 并填入你的配置
# 本配置文件用于管理 OpenAI Team 账号批量注册系统的各项参数
# ==================== 邮箱服务配置 ====================
# 邮箱系统选择:
# - "cloudmail": Cloud Mail 自建邮箱系统,需要先创建用户才能收信
# - "gptmail": GPTMail 临时邮箱系统,无需创建用户,直接生成即可收信
email_provider = "gptmail"
# ==================== 授权服务选择 ====================
# 选择使用的授权服务: "crs" / "cpa" / "s2a"
# - crs: 原有 CRS 系统,需手动添加账号到 CRS
# - cpa: CPA (Codex/Copilot Authorization) 系统,后台自动处理账号
# - s2a: Sub2API 系统,支持 OAuth 授权和账号入库 (推荐)
auth_provider = "s2a"
# 是否将 team.json 中的 Team Owner 也添加到授权服务
# 开启后,运行时会自动将 team.json 中的 Owner 账号也进行授权入库
# 注意: 请确保 Team Owner 邮箱可以接收验证码
include_team_owners = false
# ==================== 代理配置 ====================
# 是否启用代理 (默认关闭)
proxy_enabled = false
# 支持配置多个代理,程序会轮换使用
# type: 代理类型 (socks5/http/https)
# host: 代理服务器地址
# port: 代理端口
# username/password: 代理认证信息 (可选)
# [[proxies]]
# type = "socks5"
# host = "127.0.0.1"
# port = 1080
# username = ""
# password = ""
# [[proxies]]
# type = "http"
# host = "proxy.example.com"
# port = 8080
# username = "user"
# password = "pass"
# ---------- Cloud Mail 邮箱系统配置 ----------
# 仅当 email_provider = "cloudmail" 时生效
# 项目地址: https://github.com/maillab/cloud-mail
# API 文档: https://doc.skymail.ink/api/api-doc.html
[email]
# API 接口地址
api_base = "https://your-email-service.com/api/public"
# API 鉴权令牌
api_auth = "your-api-auth-token"
# 可用邮箱域名列表,随机选择
domains = ["example.com", "example.org"]
# 邮箱用户角色名称
role = ""
# 邮箱 Web 管理界面地址
web_url = "https://your-email-service.com"
# ---------- GPTMail 临时邮箱配置 ----------
# 仅当 email_provider = "gptmail" 时生效
# API 文档: https://www.chatgpt.org.uk/2025/11/gptmailapiapi.html
[gptmail]
# API 接口地址
api_base = "https://mail.chatgpt.org.uk"
# API 密钥列表 (支持多个 Key 轮询,可分散请求限制)
# 也可以通过 Telegram Bot 的 /gptmail_add 命令动态添加 Key
api_keys = ["gpt-test"]
# 邮箱前缀 (留空则自动生成 {8位随机字符}-oaiteam 格式)
prefix = ""
# 可用域名列表,生成邮箱时随机选择
# 这些域名已配置 MX 记录指向 GPTMail 服务器
domains = [
"29thnewport.org.uk", "2ndwhartonscoutgroup.org.uk",
"abrahampath.org.uk", "aiccministry.com",
"amyfalconer.co.uk", "aylshamrotary.club",
"birdsedgevillagehall.co.uk", "bodyofchristministries.co.uk", "bp-hall.co.uk",
"brendansbridge.org.uk", "caye.org.uk", "cccnoahsark.com",
"christchurchsouthend.org.uk",
"cockertonmethodist.org.uk",
"dormerhouseschool.co.uk", "e-quiparts.org.uk",
"educationossett.co.uk", "egremonttrust.org.uk",
"f4jobseekers.org.uk", "flushingvillageclub.org.uk",
"fordslane.org.uk", "friendsofkms.org.uk", "gadshillplace.com",
"goleudy.org.uk", "gospelassembly.org.uk", "gospelgeneration.org.uk",
"gracesanctuary-rccg.co.uk", "greyhoundwalks.org.uk",
"haslemerecfr.org.uk", "hottchurch.org.uk",
"hvcrc.org", "ingrambreamishvalley.co.uk", "iqraacademy.org.uk",
"kempsonplayers.org", "lbatrust.co.uk", "leicscoopband.co.uk",
"lflct.org.uk", "living-water.org.uk", "lovecambodia.co.uk", "lutonsymphony.com",
"macclesfieldmvc.org.uk",
"mtdalmshouse.fitness", "musicatleamingtonhastings.co.uk", "neuaddowen.org.uk",
"newlifedorking.org.uk", "newlifefellowshipuk.com",
"ngbotima.com", "northboveymeadow.business", "ocgm.org.uk",
"oughtibridgechapel.org.uk",
"pontfest.org.uk",
"powysbarnowls.com", "ppedu.pp.ua", "rawdhah.academy",
"resthavencare.org.uk", "rhalmshouse.church", "rhydwilym.com", "riyo.org.uk",
"rmtcweb.co.uk", "sanity-uk.org", "sawley-scouts.org.uk",
"sidneymichaelpoland.travel", "skmet.co.uk", "steptogetherdance.org.uk",
"stmichaelsflixton.co.uk", "svmc.org.uk", "tasmforvictory.com",
"tatendatrust.org.uk", "thestuartfeakinstrust.com", "thewonderbus.org",
"thurleighchurchestate.church", "tlcappealeastkent.co.uk",
"trees-surrey.org.uk", "vision15.co.uk", "vpachurch.org", "westraintonjubileehall.org.uk",
"weymouthdramaclub.co.uk", "wohbc.org.uk",
"wsmptfa.org.uk", "wyldegreenurc.org.uk", "xxmailedu.dpdns.org", "yetga.co.uk",
"zawauk.org", "zumuntahassociationuk.org"
]
# ==================== CRS 服务配置 ====================
# CRS (Central Registration Service) 用于管理注册账号的中心服务
# 仅当 auth_provider = "crs" 时生效
[crs]
# CRS API 接口地址
api_base = "https://your-crs-service.com"
# 管理员令牌,用于调用 CRS 管理接口
admin_token = "your-admin-token"
# ==================== CPA 服务配置 ====================
# CPA (Codex/Copilot Authorization) 用于 Copilot 授权服务
# 仅当 auth_provider = "cpa" 时生效
[cpa]
# CPA API 接口地址
api_base = "http://your-cpa-service:8317"
# 管理面板密码 (注意: 是密码,不是 token)
admin_password = "your-admin-password"
# 授权状态轮询间隔 (秒)
poll_interval = 2
# 授权状态轮询最大次数
poll_max_retries = 30
# 是否使用 WebUI 模式 (推荐保持 true)
is_webui = true
# ==================== S2A (Sub2API) 服务配置 ====================
# Sub2API 用于 OpenAI OAuth 授权和账号入库
# 仅当 auth_provider = "s2a" 时生效
[s2a]
# S2A API 接口地址
api_base = "https://your-sub2api-service.com/api/v1"
# Admin API Key (推荐,从系统设置中生成,永久有效)
admin_key = ""
# JWT Token (备选,从登录接口获取,有过期时间)
admin_token = ""
# 账号并发数
concurrency = 5
# 账号优先级
priority = 50
# 分组 ID 列表 (留空使用默认分组)
group_ids = []
# 分组名称列表 (优先使用 group_ids如果未配置则通过名称查询 ID)
group_names = []
# ==================== 账号配置 ====================
[account]
# 注册账号的默认密码 (需符合 OpenAI 密码要求: 至少8位包含大小写字母、数字、特殊字符)
default_password = "YourSecurePassword@2025"
# 每个 Team 下创建的账号数量
accounts_per_team = 4
# ==================== 并发处理配置 ====================
# 启用后可同时处理多个账号,大幅提升效率
[concurrent]
# 是否启用并发处理 (默认关闭)
enabled = false
# 并发数量 (同时运行的浏览器实例数)
# 建议根据机器配置设置: 4核8G内存建议设置为 2-4
workers = 4
# ==================== 注册配置 ====================
[register]
# 注册时使用的用户名 (实际会使用随机生成的英文名)
name = "test"
# 注册时使用的生日信息
[register.birthday]
year = "2000"
month = "01"
day = "01"
# ==================== 请求配置 ====================
[request]
# HTTP 请求超时时间 (秒)
timeout = 30
# 浏览器 User-Agent 字符串
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
# ==================== 验证码配置 ====================
[verification]
# 等待验证码的总超时时间 (秒)
timeout = 60
# 轮询邮箱的间隔时间 (秒)
interval = 3
# 最大重试次数 (总等待时间 = interval * max_retries)
max_retries = 20
# ==================== 浏览器配置 ====================
[browser]
# 等待页面元素的超时时间 (秒)
wait_timeout = 60
# 短等待时间,用于快速检查 (秒)
short_wait = 10
# 是否启用随机指纹 (User-Agent, WebGL, 分辨率等)
random_fingerprint = true
# ==================== 文件配置 ====================
[files]
# 导出账号信息的 CSV 文件路径
csv_file = "accounts.csv"
# Team 注册进度追踪文件路径
tracker_file = "team_tracker.json"
# ==================== Telegram Bot 配置 ====================
# 通过 Telegram Bot 远程控制和监控任务
[telegram]
# Bot Token (通过 @BotFather 创建获取)
bot_token = "your-bot-token"
# 授权管理员的 Chat ID 列表 (通过 @userinfobot 获取)
admin_chat_ids = [123456789]
# 任务完成时发送通知
notify_on_complete = true
# 任务出错时发送通知
notify_on_error = true
# 定期检查账号存货间隔 (秒)0 表示禁用
check_interval = 3600
# 低库存预警阈值 (正常账号数低于此值时预警)
low_stock_threshold = 10
# ==================== AutoGPTPlus 配置 ====================
# 独立的 ChatGPT 订阅自动化脚本配置
[autogptplus]
# Cloud Mail API Token
mail_api_token = "your-cloud-mail-token"
# Cloud Mail API 地址
mail_api_base = "https://your-cloud-mail.com"
# 可用邮箱域名列表
email_domains = ["@example.com", "@example.org"]
# SEPA IBAN 列表 (也可通过 Bot /iban_add 命令导入到 sepa_ibans.txt)
sepa_ibans = []
# 是否启用随机指纹 (User-Agent, WebGL, 分辨率等)
random_fingerprint = true
# 注册模式选择:
# - "api": 协议模式 (默认),使用 API 快速完成注册,仅支付环节使用浏览器
# 协议模式更快,需要安装 curl_cffi: pip install curl_cffi
# - "browser": 浏览器自动化模式,全程使用 DrissionPage 浏览器自动化
register_mode = "api"
# 协议模式代理 (仅协议模式使用,格式: http://127.0.0.1:7890)
api_proxy = ""