recovered from aaronjaworski710
This commit is contained in:
@@ -0,0 +1,301 @@
|
||||
{
|
||||
"//_readme": "复制为本目录 config.json 后按需修改。以 // 或 # 开头的键是注释,加载时忽略。",
|
||||
"//_paths": "相对路径相对 grok_reg 目录;CPA 相关绝对路径更清晰。",
|
||||
|
||||
"// ===== 邮箱:注册验证码来源 =====": "",
|
||||
"// email_provider": "单选:cloudmail | cloudflare | duckmail | yyds | hotmail | outlookmail | gmail。推荐自建 cloudmail;微软邮箱选 hotmail/outlookmail;CF 域名 catch-all 进 Gmail 选 gmail。",
|
||||
"email_provider": "cloudmail",
|
||||
"// email_providers": "多选列表(优先于 email_provider)。env EMAIL_PROVIDERS 可覆盖。例:[\"duckmail\",\"gmail\",\"cloudflare\"]。合法名同 email_provider(不含 fixed)。",
|
||||
"email_providers": [],
|
||||
"// email_provider_strategy": "round_robin(默认,每 attempt 轮询)| random | failover(仅 allocate/mail_miss 时切下一家)。env EMAIL_PROVIDER_STRATEGY。",
|
||||
"email_provider_strategy": "round_robin",
|
||||
"// defaultDomains": "注册用邮箱域名,逗号分隔;cloudflare/cloudmail/gmail catch-all 写这里。自建 CF temp-mail 用 mangoqwq.com。",
|
||||
"defaultDomains": "mangoqwq.com",
|
||||
|
||||
"// gmail_imap_user": "接收 catch-all 的 Gmail 地址(email_provider=gmail)。也可用 env GMAIL_IMAP_USER。",
|
||||
"gmail_imap_user": "",
|
||||
"// gmail_imap_password": "Google 应用专用密码(16 位)。强烈建议放 .env 的 GMAIL_IMAP_PASSWORD,勿提交 git。",
|
||||
"gmail_imap_password": "",
|
||||
"// gmail_imap_host / gmail_imap_port / gmail_imap_folder": "默认 imap.gmail.com:993 / INBOX。",
|
||||
"gmail_imap_host": "imap.gmail.com",
|
||||
"gmail_imap_port": 993,
|
||||
"gmail_imap_folder": "INBOX",
|
||||
"// gmail_poll_interval": "Gmail IMAP 收验证码轮询基础间隔(秒)。",
|
||||
"gmail_poll_interval": 2,
|
||||
"// gmail_recent_seconds": "只扫描最近 N 秒邮件,避免读到旧验证码。",
|
||||
"gmail_recent_seconds": 900,
|
||||
"// gmail_imap_last_n": "每轮扫描最新 N 封邮件。",
|
||||
"gmail_imap_last_n": 30,
|
||||
"// gmail_require_recipient_match": "是否要求邮件收件人匹配当前域名邮箱;并发时建议 true。",
|
||||
"gmail_require_recipient_match": true,
|
||||
|
||||
"// hotmail_accounts_file": "Hotmail/Outlook 凭证文件,相对本目录;每行: 邮箱----密码----ClientID----Token,其中 Token 为 Microsoft refresh_token。",
|
||||
"hotmail_accounts_file": "mail_credentials.txt",
|
||||
"// hotmail_allow_plus_alias": "生产默认 false:禁止 Hotmail plus-alias 农场,仅用主邮箱(一号一箱)。true 时才允许 alias_mode 生成 +suffix。也可 env HOTMAIL_ALLOW_PLUS_ALIAS。",
|
||||
"hotmail_allow_plus_alias": false,
|
||||
"// hotmail_alias_mode": "off=仅主邮箱(默认);random/sequential 仅在 hotmail_allow_plus_alias=true 时生效。",
|
||||
"hotmail_alias_mode": "off",
|
||||
"// hotmail_alias_random_length": "random 模式下 plus alias 随机后缀长度,如 name+8位随机@domain。",
|
||||
"hotmail_alias_random_length": 8,
|
||||
"// hotmail_alias_random_max_attempts": "random 模式单次选别名最大碰撞重试次数。",
|
||||
"hotmail_alias_random_max_attempts": 200,
|
||||
"// hotmail_max_aliases_per_account": "每个主邮箱最多消耗多少个地址;allow_plus_alias=false 时强制 1(仅主邮箱)。",
|
||||
"hotmail_max_aliases_per_account": 1,
|
||||
"// hotmail_poll_interval": "Hotmail/Outlook 收验证码轮询基础间隔(秒)。首轮立即查,空轮后从此值起步并小幅退避,上限 5s。",
|
||||
"hotmail_poll_interval": 2,
|
||||
"// hotmail_recent_seconds": "只扫描最近 N 秒邮件,避免读到旧验证码。",
|
||||
"hotmail_recent_seconds": 900,
|
||||
"// hotmail_mail_fetch_modes": "收码通道顺序:rest=Outlook Office REST(推荐,可绕开 IMAP authenticated but not connected);imap=XOAUTH2 IMAP。默认 rest,imap。",
|
||||
"hotmail_mail_fetch_modes": "rest,imap",
|
||||
"// hotmail_imap_hosts": "Hotmail/Outlook IMAP 主机,按顺序尝试;某些账号在 outlook.office365.com 会报 authenticated but not connected,可回退 imap-mail.outlook.com。",
|
||||
"hotmail_imap_hosts": "outlook.office365.com,imap-mail.outlook.com",
|
||||
"// hotmail_imap_last_n": "每轮扫描最新 N 封邮件(REST/IMAP 共用上限)。",
|
||||
"hotmail_imap_last_n": 30,
|
||||
"// hotmail_require_recipient_match": "是否要求邮件收件人匹配当前别名;并发使用同一主邮箱时建议 true。",
|
||||
"hotmail_require_recipient_match": true,
|
||||
"// hotmail_manual_code": "true=收码通道全挂时从 stdin 粘贴验证码;自动 REST 可用时建议 false。",
|
||||
"hotmail_manual_code": false,
|
||||
|
||||
"// cloudmail_url": "CloudMail 管理端根 URL,如 https://mail.example.com",
|
||||
"cloudmail_url": "",
|
||||
"// cloudmail_admin_email": "CloudMail 管理员邮箱",
|
||||
"cloudmail_admin_email": "",
|
||||
"// cloudmail_password": "CloudMail 管理员密码",
|
||||
"cloudmail_password": "",
|
||||
|
||||
"// cloudflare_api_base": "临时邮箱 Worker API 根(email_provider=cloudflare 时)",
|
||||
"cloudflare_api_base": "",
|
||||
"// cloudflare_api_key": "上述 API 的 key(若需要)",
|
||||
"cloudflare_api_key": "",
|
||||
"// cloudflare_auth_mode": "none | bearer | header 等,按你的 Worker 约定",
|
||||
"cloudflare_auth_mode": "none",
|
||||
"cloudflare_path_domains": "/api/domains",
|
||||
"cloudflare_path_accounts": "/api/new_address",
|
||||
"cloudflare_path_token": "/api/token",
|
||||
"cloudflare_path_messages": "/api/mails",
|
||||
|
||||
"// duckmail_api_key": "DuckMail API key(email_provider=duckmail)",
|
||||
"duckmail_api_key": "",
|
||||
"// yyds_api_key / yyds_jwt": "备用邮箱通道凭证",
|
||||
"yyds_api_key": "",
|
||||
"yyds_jwt": "",
|
||||
|
||||
"// ===== 网络 / 浏览器 =====": "",
|
||||
"// proxy": "注册机主代理:Chromium + 邮箱 HTTP。可带账号 http://user:pass@host:port。Chromium 不能嵌入 user:pass,带认证时代理会走本地 LocalAuthProxyBridge(127.0.0.1)。优先于系统 https_proxy。",
|
||||
"proxy": "http://127.0.0.1:7890",
|
||||
"// ===== 代理/出口 IP 轮换(注册级,不动整机出口)=====": "",
|
||||
"// proxy_rotate_mode": "出口策略:多账号冷 IP 优先 list+proxy_list(PROXY_LIST);clash=仅在专用组 GROK-REG 上轮换(DOMAIN-SUFFIX 命中 x.ai/grok.com,主组 宝可梦 永不动)。单节点烟测/固定出口用 clash + clash_pin_node/GROK_NODE(on_start 钉住不 advance)。off=不轮换。CLI --proxy-rotate。",
|
||||
"proxy_rotate_mode": "off",
|
||||
"// proxy_rotate_every": "每 N 次注册轮换一次出口;默认 1(每号换)。pin 固定出口时仍可设大值,on_start 不会从 pin 切走。",
|
||||
"proxy_rotate_every": 1,
|
||||
"// proxy_rotate_on_start": "首次注册即切节点:list→池[0];clash 有 clash_pin_node/GROK_NODE 时钉到该节点(不 advance 到 next),无 pin 则 claim 当前。false=沿用当前。",
|
||||
"proxy_rotate_on_start": true,
|
||||
"// proxy_rotate_advance_on_start": "true=进程首个 rotate 调用直接推进到池内下一个节点(新 IP),绕过 on_start_keep_current / pin;默认 false(批处理/单测契约)。env: PROXY_ROTATE_ADVANCE_ON_START",
|
||||
"proxy_rotate_advance_on_start": false,
|
||||
"// proxy_rotate_required": "true=轮换失败即停止整批(不空转);false=沿用当前继续。",
|
||||
"proxy_rotate_required": false,
|
||||
"// proxy_list": "list 模式代理池:逗号/分号/换行分隔,或 .txt/.list 文件路径。带认证 http://user:pass@host:port 自动走 LocalAuthProxyBridge。多账号批量优先此池(自控出口)。",
|
||||
"proxy_list": "",
|
||||
"// clash_api": "Clash 外部控制地址:unix:///tmp/verge/verge-mihomo.sock 或 http://127.0.0.1:9090。",
|
||||
"clash_api": "unix:///tmp/verge/verge-mihomo.sock",
|
||||
"// clash_proxy_group": "专用策略组名(默认 GROK-REG)。绝不写主组名(宝可梦/GLOBAL),代码会拒绝并回退。",
|
||||
"clash_proxy_group": "GROK-REG",
|
||||
"// clash_donor_group": "从哪个主组继承节点池(仅用于首次创建 GROK-REG 时复制节点列表,不修改它)。",
|
||||
"clash_donor_group": "宝可梦",
|
||||
"// clash_rule_domains": "命中这些域名才走 GROK-REG(其余仍按原规则/主组)。",
|
||||
"clash_rule_domains": "x.ai,grok.com,grok.x.ai,assets.grok.com",
|
||||
"// clash_pin_node": "clash 模式固定节点名(如 BK 家宽 / 商用 VLESS)。也可 env GROK_NODE / 键 grok_node。on_start 钉住该节点,禁止 advance 到下一节点。空=不钉。SUMMARY_JSON 会回显。不要 pin 个人 dog VPS(GVPS-AnyTLS/TUIC-googlevps / 35.212.179.13)——流量宝贵,已从注册默认池排除。",
|
||||
"clash_pin_node": "",
|
||||
"// clash_node_include": "可选:节点名正则,命中才进 clash 轮换池。生产家宽优先可写 家宽|香港05家宽|…Vless。空=不额外收窄。",
|
||||
"clash_node_include": "",
|
||||
"// clash_node_exclude": "节点名正则排除。默认已滤元节点;务必排除 GVPS-AnyTLS|GVPS-TUIC|googlevps|P1024-(dog VPS / dialer 连环)。勿用 专线|IPLC 误伤 BK 韩国家宽名。",
|
||||
"clash_node_exclude": "",
|
||||
"// clash_restore_on_exit": "进程结束自动恢复专用组原节点(绝不碰主组)。",
|
||||
"clash_restore_on_exit": true,
|
||||
"// node_score_enabled": "动态出口权重:Turnstile/boot 失败降权冷却,reg/mint 成功加权。默认 false(不影响轮询)。env NODE_SCORE=1|0 优先于本键;ordinary supervisor 默认 export NODE_SCORE=1。",
|
||||
"node_score_enabled": false,
|
||||
"// node_score_path": "权重落盘路径(相对 cwd)。env NODE_SCORE_PATH 可覆盖。",
|
||||
"node_score_path": "output/node_scores.json",
|
||||
"// browser_recycle_mode": "soft=账号间 clear_session 复用进程(忽略 browser_recycle_every);hybrid=软回收,每 browser_recycle_every 次完整重启(生产默认,防 cookie/SW 串味);hard=每号 quit+create。CLI --browser-recycle-mode / --no-browser-reuse。",
|
||||
"browser_recycle_mode": "hybrid",
|
||||
"// browser_recycle_every": "仅 hybrid 生效:复用 N 次后完整回收;soft 忽略此值;CLI --browser-recycle-every。",
|
||||
"browser_recycle_every": 15,
|
||||
"// browser_fingerprint_mode": "off=固定 UA/viewport(生产默认);light=每次 Chromium hard boot 从 UA/viewport/lang 小池随机(UA major 必须匹配 CFT/Chrome 二进制,当前 149);anon=light + 强制 browser_recycle_mode=hard(每号新 profile;不再加 --incognito)。CLI --browser-fingerprint-mode / env BROWSER_FINGERPRINT_MODE。",
|
||||
"browser_fingerprint_mode": "off",
|
||||
"// account_slot_retry": "最终页/SSO 卡住(AccountRetryNeeded)时同号软重试次数,不覆盖 FatalRegisterError。0=不重试。CLI --account-slot-retry。",
|
||||
"account_slot_retry": 3,
|
||||
"// final_page_no_submit_timeout": "最终注册页找不到提交按钮且状态不变时触发 AccountRetryNeeded 的秒数。",
|
||||
"final_page_no_submit_timeout": 45,
|
||||
"// browser_headless": "true=无头 Chromium 注册;Turnstile 成功率可能下降。CLI --headless/--no-headless 可覆盖。",
|
||||
"browser_headless": false,
|
||||
"// user_agent": "Chromium UA;一般保持默认 Chrome 桌面串即可。",
|
||||
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36",
|
||||
"// enable_nsfw": "注册成功后是否尝试打开 NSFW(历史字段;与 CPA 无关)",
|
||||
"enable_nsfw": true,
|
||||
|
||||
"// ===== 批量注册规模 =====": "",
|
||||
"// register_count": "GUI/默认目标账号总数(含已有)。CLI 更推荐 --extra / --count。",
|
||||
"register_count": 1,
|
||||
"// register_threads": "并发注册线程数;CLI --threads 会覆盖。有头浏览器建议 1~3。",
|
||||
"register_threads": 1,
|
||||
"// thread_start_interval": "各工作线程错峰启动秒数,降低同时开页压力。",
|
||||
"thread_start_interval": 0.8,
|
||||
"// show_tutorial_on_start": "GUI 启动是否弹教程",
|
||||
"show_tutorial_on_start": false,
|
||||
|
||||
"// register_max_attempts": "单账号流程最大重试次数",
|
||||
"register_max_attempts": 30,
|
||||
"// account_hard_timeout": "单账号硬超时(秒),超时放弃该号",
|
||||
"account_hard_timeout": 720,
|
||||
"// nav_email_button_timeout": "等「使用邮箱」按钮超时(秒)",
|
||||
"nav_email_button_timeout": 12,
|
||||
"// email_form_timeout": "邮箱表单可见超时(秒)",
|
||||
"email_form_timeout": 20,
|
||||
"// mail_timeout": "收验证码总超时(秒);默认 20 秒 fail-fast,勿拉长空等",
|
||||
"mail_timeout": 20,
|
||||
"// email_submit_confirm_timeout": "邮箱提交后等待进入验证码页(秒)",
|
||||
"email_submit_confirm_timeout": 12,
|
||||
"// mail_poll_interval": "收件轮询间隔(秒)",
|
||||
"mail_poll_interval": 0.3,
|
||||
"// mail_retry_count": "邮件 API 失败重试次数",
|
||||
"mail_retry_count": 3,
|
||||
"// code_form_timeout": "验证码表单超时(秒)",
|
||||
"code_form_timeout": 180,
|
||||
"// profile_timeout": "资料页(姓名密码生日)超时(秒)",
|
||||
"profile_timeout": 240,
|
||||
"// turnstile_retry_limit": "Turnstile 失败重试次数",
|
||||
"turnstile_retry_limit": 3,
|
||||
"// turnstile_stuck_timeout": "Turnstile 卡住判定超时(秒)",
|
||||
"turnstile_stuck_timeout": 150,
|
||||
"// turnstile_fatal_streak": "连续 Turnstile *slot 耗尽账号*(每个 idx 计 1,非 mid-slot ARN)达此值才 process-fatal;跨 register_cli sub 经 turnstile_streak_file 共享。env TURNSTILE_FATAL_STREAK 可覆盖。",
|
||||
"turnstile_fatal_streak": 6,
|
||||
"// turnstile_streak_file": "跨 sub 共享的 Turnstile 连续失败计数文件;默认 logs/.turnstile_fail_streak。env TURNSTILE_STREAK_FILE 优先。",
|
||||
"turnstile_streak_file": "logs/.turnstile_fail_streak",
|
||||
"// sso_timeout_base / sso_timeout_max / sso_progress_extension": "等待 sso cookie 的基础/上限/有进度时延长(秒)",
|
||||
"sso_timeout_base": 240,
|
||||
"sso_timeout_max": 480,
|
||||
"sso_progress_extension": 120,
|
||||
"// sso_cookie_read_timeout": "读 cookie 单次超时(秒)",
|
||||
"sso_cookie_read_timeout": 20,
|
||||
"// email_submit_confirm_timeout": "提交邮箱后确认跳转超时(秒)",
|
||||
"email_submit_confirm_timeout": 30,
|
||||
|
||||
"// ===== grok2api(Web SSO 池,不是 Grok 4.5 Build) =====": "",
|
||||
"// grok2api_auto_add_local": "是否写入本机 grok2api token 文件(一般关)",
|
||||
"grok2api_auto_add_local": false,
|
||||
"// grok2api_local_token_file": "本地 token 文件路径(auto_add_local=true 时)",
|
||||
"grok2api_local_token_file": "",
|
||||
"// grok2api_auto_add_remote": "注册成功后是否 POST 到远端 grok2api 管理 API",
|
||||
"grok2api_auto_add_remote": true,
|
||||
"// grok2api_remote_base": "grok2api Admin API 前缀,如 http://127.0.0.1:8000/admin/api",
|
||||
"grok2api_remote_base": "http://127.0.0.1:8000/admin/api",
|
||||
"// grok2api_remote_app_key": "Admin app_key;空则用 grok2api 本地配置/默认",
|
||||
"grok2api_remote_app_key": "",
|
||||
"// grok2api_pool_name": "写入的池名,免费号通常 ssoBasic",
|
||||
"grok2api_pool_name": "ssoBasic",
|
||||
"// grok2api_import_retries / grok2api_import_retry_delay": "写池失败重试次数与间隔(秒)",
|
||||
"grok2api_import_retries": 5,
|
||||
"grok2api_import_retry_delay": 2,
|
||||
|
||||
"// ===== CPA / 免费 Grok 4.5(OIDC,不是 SSO) =====": "",
|
||||
"// 说明": "免费 grok-4.5 走 Grok Build OIDC → CPA xai-*.json → CLIProxyAPI :8317。SSO 不能替代 OIDC。",
|
||||
"// api_reverse_tools": "可选:含 cpa_xai 的父目录(高级);空=使用本仓库根目录内置 cpa_xai/",
|
||||
"api_reverse_tools": "",
|
||||
"// cpa_export_enabled": "注册成功后是否铸造 OIDC 并写出 CPA 认证文件",
|
||||
"cpa_export_enabled": true,
|
||||
"// cpa_auth_dir": "【必须】注册机主导出目录,写入 xai-<email>.json",
|
||||
"cpa_auth_dir": "./cpa_auths",
|
||||
"// cpa_copy_to_hotload": "【可选】是否复制到 CPA 热加载目录;false=只写注册机目录,手动/脚本再导入",
|
||||
"cpa_copy_to_hotload": false,
|
||||
"// cpa_hotload_dir": "CPA 容器/进程挂载的 auth-dir(copy_to_hotload=true 时生效)",
|
||||
"cpa_hotload_dir": "",
|
||||
"// cpa_auth_priority": "写入 xai-*.json 的 CPA 路由权重(CLIProxyAPI priority);mint/写盘/注入统一使用。",
|
||||
"cpa_auth_priority": 1000,
|
||||
"// cpa_remote_inject": "含义分流:① 单号 mint/export 路径=是否立即 SSH 注入(生产 bulk 务必 false,避免阻塞产号)。② bulk supervisor=只作「批末统一导入」意图;产号全程仍强制 CPA_REMOTE_INJECT=false,目标 complete 达成后才跑 scripts/import_cpa_auth_dir.py(batch5 + healthy-only + archive)。也可用 env CPA_BATCH_END_INJECT=true 显式打开批末导入。",
|
||||
"cpa_remote_inject": false,
|
||||
"// cpa_remote_inject_require_chat_ok": "true=仅 chat_ok 可注入 live/inventory(默认)。false 会被拒绝(chat_gate_disabled_refused),不再软放行。",
|
||||
"cpa_remote_inject_require_chat_ok": true,
|
||||
"// cpa_remote_live_dir": "一键成功门闩目录(live 池)。默认 /root/.cli-proxy-api。",
|
||||
"cpa_remote_live_dir": "/root/.cli-proxy-api",
|
||||
"// cpa_remote_live_required": "true=live 目录注入失败则整次 export 失败(默认 true,一键产品语义)。",
|
||||
"cpa_remote_live_required": true,
|
||||
"// cpa_remote_inject_required": "true=所有远端目录都必须成功;false=仅 live 门闩(见 cpa_remote_live_required)。",
|
||||
"cpa_remote_inject_required": false,
|
||||
"// cpa_remote_ssh_host": "ssh/scp 目标主机别名或 host;推荐 tebi-tunnel(Cloudflare SSH,绕 Bohrium 网关限流)",
|
||||
"cpa_remote_ssh_host": "tebi-tunnel",
|
||||
"// cpa_remote_ssh_user": "可选;host 已含 user 或 ssh config 已写 User 时可留空",
|
||||
"cpa_remote_ssh_user": "",
|
||||
"// cpa_remote_auth_dirs": "远端注入目录列表(逗号分隔或 JSON 数组)。默认 live+inventory:/root/.cli-proxy-api,/personal/cpa/auths。",
|
||||
"cpa_remote_auth_dirs": "/root/.cli-proxy-api,/personal/cpa/auths",
|
||||
"// cpa_remote_auth_dir": "【兼容】单目录;若设置了 cpa_remote_auth_dirs 则忽略此项。",
|
||||
"cpa_remote_auth_dir": "/personal/cpa/auths",
|
||||
"// cpa_remote_credentials_file": "Bohrium 密码文件:alias|host|user|port|password;也可用 env CPA_REMOTE_SSHPASS/SSHPASS。优先用密钥(见 cpa_remote_ssh_identity)。",
|
||||
"cpa_remote_credentials_file": "~/.ssh/bohrium_credentials",
|
||||
"// cpa_remote_credential_alias": "从 credentials 文件匹配的 alias 前缀(默认 tebi)",
|
||||
"cpa_remote_credential_alias": "tebi",
|
||||
"// cpa_remote_ssh_identity": "可选私钥路径(优先于密码)。设置后 BatchMode=yes、PasswordAuthentication=no。也可 env CPA_REMOTE_SSH_IDENTITY。空=走 ssh config / 密码。",
|
||||
"cpa_remote_ssh_identity": "",
|
||||
"// cpa_remote_ssh_strict_hostkey": "yes=要求 known_hosts 已有 host key(默认,生产);accept-new=首次自动信任;no=不校验(不推荐)。",
|
||||
"cpa_remote_ssh_strict_hostkey": "yes",
|
||||
"// cpa_remote_inject_timeout_sec": "ssh/scp 超时秒数",
|
||||
"cpa_remote_inject_timeout_sec": 60,
|
||||
"// cpa_remote_inject_verify": "注入后是否再 ssh 校验远端文件大小/权限;true 更稳,false 少一次 hop 更快",
|
||||
"cpa_remote_inject_verify": true,
|
||||
"// cpa_base_url": "免费 Build 必须是 cli-chat-proxy,不要写成 api.x.ai。CLI 头由 cpa_xai/schema.py DEFAULT_CLIENT_HEADERS 对齐 grokbuild-proxy 权威值(grok-pager+双UA),消除 426;403 仍为账号 entitlement。",
|
||||
"cpa_base_url": "https://cli-chat-proxy.grok.com/v1",
|
||||
"// cpa_proxy": "OIDC mint 专用代理(device-code/token/probe/浏览器)。优先级: cpa_proxy > proxy > 环境 https_proxy。空=用 proxy。",
|
||||
"cpa_proxy": "http://127.0.0.1:7890",
|
||||
"// cpa_headless": "device 确认浏览器是否无头。accounts.x.ai 建议 false(有头)",
|
||||
"cpa_headless": false,
|
||||
"// cpa_force_standalone": "true=新开 Chromium+turnstilePatch 做 OIDC;勿复用注册 tab",
|
||||
"cpa_force_standalone": true,
|
||||
"// cpa_mint_timeout_sec": "单账号 OIDC 铸造超时(秒)",
|
||||
"cpa_mint_timeout_sec": 300,
|
||||
"// cpa_mint_required": "true=OIDC 失败则整次注册算失败;false=SSO 成功仍记账号",
|
||||
"cpa_mint_required": false,
|
||||
"// cpa_probe_after_write": "写出后探测 /v1/models 是否含 grok-4.5",
|
||||
"cpa_probe_after_write": true,
|
||||
"// cpa_probe_required": "兼容字段。models 未列出 grok-4.5 时产品 ok 恒失败(无 soft-pass);文件可保留但 inject/product_batch 仍要求 chat_ok。不再用 false 软通过 free Build。",
|
||||
"cpa_probe_required": false,
|
||||
"// cpa_probe_chat": "写出后再打一发最小 /v1/responses。产号主链路(disk-first)用 false:成功=complete auth+refresh 落盘;chat/healthy 判定留给独立导入链路。true 时 chat 403 会拖垮整批 product 判定。",
|
||||
"cpa_probe_chat": false,
|
||||
"// cpa_probe_chat_required": "true=chat 探针失败硬失败(默认)。false 不再软通过 free Build:产品 ok 仍失败、不注入 live(防旁路)。",
|
||||
"cpa_probe_chat_required": true,
|
||||
"// cpa_probe_via": "chat gate:direct=本地直连 cli-chat-proxy;cpa=经 tebi CPA(需 credential pin,否则强制 hybrid);hybrid=门禁仍 direct,chat_ok 后可选 CPA smoke→probe_via_cpa_ok(永不替代 chat_ok 注入门闩)。生产默认 hybrid。free Build 403 permission-denied=账号 entitlement(Manual-required,console.x.ai),禁止 remint-spin / soft-inject。",
|
||||
"cpa_probe_via": "hybrid",
|
||||
"// cpa_probe_base_url": "CPA 对外 OpenAI base(如 https://cpa.mangoq.ccwu.cc/v1 或 tunnel 内网 :8317/v1)。仅用于 probe HTTP,禁止写入 xai-*.json 的 base_url。也可 env CPA_PROBE_BASE_URL。",
|
||||
"cpa_probe_base_url": "",
|
||||
"// cpa_probe_api_key": "调用 CPA 的 API key(不是 xAI access_token)。优先 env CPA_PROBE_API_KEY;禁止提交真实 key。",
|
||||
"cpa_probe_api_key": "",
|
||||
"// cpa_probe_credential_pin_mode": "cpa 门禁钉凭据:none|email|auth_filename。无 pin 且 via=cpa 时强制 hybrid,禁止未钉凭据盖 chat_ok。",
|
||||
"cpa_probe_credential_pin_mode": "auth_filename",
|
||||
"// cpa_probe_pin_header": "钉凭据请求头名;取决于 tebi CLIProxyAPI 是否支持 per-credential 路由。不支持则保持 hybrid。",
|
||||
"cpa_probe_pin_header": "X-CPA-Credential",
|
||||
"// cpa_probe_allow_unpinned_cpa_gate": "危险:true=允许未钉凭据时仍用 cpa 当 entitlement 门禁(池假阳性风险)。默认 false。",
|
||||
"cpa_probe_allow_unpinned_cpa_gate": false,
|
||||
|
||||
"// ===== 并发 / mint 流水线(register_cli) =====": "",
|
||||
"// cpa_mint_workers": "CPA OIDC mint 并发数。-1=自动;0=注册线程内联 mint;1-10=固定并发。CLI --mint-workers 可覆盖。",
|
||||
"// cpa_mint_workers 参考": "1=稳;=注册线程数=吞吐优先;auto≈min(注册线程,4)。注册快/mint慢时宜 ≥ 注册线程。实测 mint≈45-50s/号、注册≈25s/号,3 注册建议 mint_workers=3~4。",
|
||||
"cpa_mint_workers": -1,
|
||||
"// cpa_mint_queue_max": "mint 队列背压上限;注册线程在队列≥此值时等待。0=不限制。建议 2×mint_workers。",
|
||||
"cpa_mint_queue_max": 0,
|
||||
"// cpa_prefer_protocol": "true=优先用 SSO cookie 纯 HTTP Device Flow 导出 CPA(无浏览器);失败再回退浏览器 mint",
|
||||
"cpa_prefer_protocol": true,
|
||||
"// cpa_protocol_only": "true=只用协议路径,失败不回退浏览器(调试用)",
|
||||
"cpa_protocol_only": false,
|
||||
"// cpa_protocol_poll_timeout_sec": "协议路径 token 轮询超时(秒)",
|
||||
"cpa_protocol_poll_timeout_sec": 90,
|
||||
"// cpa_protocol_flow": "协议路径 OAuth grant:pkce(authorization-code,best-effort;consent SPA 空壳/action-id 缺失时非可重试 residual→device/browser)| device(device-code,已知 /models ok 但 chat 403)",
|
||||
"cpa_protocol_flow": "pkce",
|
||||
"// cpa_allow_device_flow_fallback": "仅控制「HTTP device residual」:protocol/PKCE 失败后是否走 oauth device-code HTTP 完成本地落盘(产品默认 true,与 mint.py 一致)。false=跳过 HTTP device residual,仍可走 browser residual(cpa_protocol_only=false 时)。不关闭 browser。device token 常 chat 403;仅落盘不注入。entitlement_denied=硬门闩:不 remint 空转、不 soft-inject live/tebi。chat 403 属账号 entitlement(Manual-required),非代码可解。",
|
||||
"cpa_allow_device_flow_fallback": true,
|
||||
"// cpa_mint_cookie_inject": "注册成功后把浏览器 cookie 注入 mint 浏览器,尽量跳过二次登录(失败仍回退邮箱密码)",
|
||||
"cpa_mint_cookie_inject": true,
|
||||
"// cpa_gui_close_mint_browser": "GUI 自动 CPA 导出后是否立即关闭 mint 专用 Chromium;true=不残留额外窗口,CLI 不受影响",
|
||||
"cpa_gui_close_mint_browser": true,
|
||||
"// cpa_mint_browser_reuse": "mint worker 复用 Chromium(清会话)而非每号 cold start",
|
||||
"cpa_mint_browser_reuse": true,
|
||||
"// cpa_mint_browser_recycle_every": "mint 浏览器每成功 N 次后完整重启;0=仅出错时重启",
|
||||
"cpa_mint_browser_recycle_every": 15
|
||||
}
|
||||
Reference in New Issue
Block a user