From bb2ef84c03621fb373599a6624f94653e89d0157 Mon Sep 17 00:00:00 2001 From: Git-creat7 <3516988334@qq.com> Date: Sat, 11 Jul 2026 06:55:49 -0500 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=96=87=E6=A1=A3=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E9=80=9A=E7=94=A8=E5=8D=A0=E4=BD=8D=E7=AC=A6?= =?UTF-8?q?=EF=BC=8C=E7=A7=BB=E9=99=A4=E6=9C=AC=E6=9C=BA=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E4=B8=8E=20WSL=20=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - cpa_remote_url 示例改为「你的CPA地址」 - cpa_auth_dir 示例改为「你的CPA auth目录」 - 删除 WSL / 跨机器挂载相关表述 --- README.md | 13 ++++++------- sso_to_auth_json.py | 4 ++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c87ee46..ce44bbb 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ cp config.example.json config.json | --- | --- | | `cpa_auto_add` | 是否开启 CPA 自动入库 | | `cpa_auth_dir` | 本地 CPA auth 目录;写入 `xai-.json`,可留空 | -| `cpa_remote_url` | 远程 CPA 地址,如 `http://127.0.0.1:8317` | +| `cpa_remote_url` | 远程 CPA 地址,如 `http://你的CPA地址:8317` | | `cpa_management_key` | 远程 CPA 管理密钥(`remote-management.secret-key` 明文) | | `email_provider` | `duckmail` / `yyds` / `cloudflare` | | `register_count` | 目标注册数量 | @@ -130,12 +130,11 @@ SSO 不是 CPA 凭据。程序会: ```json { "cpa_auto_add": true, - "cpa_auth_dir": "/path/to/CLIProxyAPI/auths" + "cpa_auth_dir": "你的CPA auth目录" } ``` -跨机器 / WSL 可写挂载路径,例如 -`//wsl.localhost/Ubuntu/home/you/CLIProxyAPI/auths`。 +`cpa_auth_dir` 填 CPA 实际监听的 auth 目录路径即可。 ### 远程 Management API @@ -143,7 +142,7 @@ SSO 不是 CPA 凭据。程序会: { "cpa_auto_add": true, "cpa_auth_dir": "", - "cpa_remote_url": "http://127.0.0.1:8317", + "cpa_remote_url": "http://你的CPA地址:8317", "cpa_management_key": "你的管理密钥明文" } ``` @@ -162,7 +161,7 @@ python sso_to_auth_json.py --sso sso_list.txt --cpa-auth-dir /path/to/auths # 上传远程 CPA python sso_to_auth_json.py --sso sso_list.txt \ - --cpa-remote-url http://127.0.0.1:8317 \ + --cpa-remote-url http://你的CPA地址:8317 \ --cpa-management-key '你的管理密钥' # 单个 cookie + 代理 @@ -219,7 +218,7 @@ python grok_register_ttk.py ```bash curl -H "Authorization: Bearer <管理密钥>" \ - http://127.0.0.1:8317/v0/management/auth-files + http://你的CPA地址:8317/v0/management/auth-files ``` **CLI 为什么还开浏览器** diff --git a/sso_to_auth_json.py b/sso_to_auth_json.py index 74ed576..920381b 100644 --- a/sso_to_auth_json.py +++ b/sso_to_auth_json.py @@ -437,12 +437,12 @@ def main() -> int: ap.add_argument( "--cpa-auth-dir", default=None, - help="额外写出 CLIProxyAPI 扁平格式 xai-.json 到该目录(CPA 热加载,可直接指向 CPA 挂载目录)", + help="额外写出 CLIProxyAPI 扁平格式 xai-.json 到该目录(CPA 热加载)", ) ap.add_argument( "--cpa-remote-url", default=None, - help="远程 CPA 地址,如 http://IP:8317;配合 --cpa-management-key 通过 Management API 上传", + help="远程 CPA 地址,如 http://你的CPA地址:8317;配合 --cpa-management-key 通过 Management API 上传", ) ap.add_argument( "--cpa-management-key",