在手机端使用 ChatGPT 新出的 Codex remote control 功能访问电脑端连接 CPA (接入中转站或号池)的 Codex APP。
auth.json 配置
在 CPA → 认证文件 → 找到手机端 APP 中登录的账号 → 下载 中下载对应的认证文件。
从下载到的认证文件中获取相关认证信息进行填写 codex 的 auth.json,:
{
"auth_mode": "chatgpt",
"tokens": {
"id_token": "XXXXXXXXXXXXXXXXXX",
"refresh_token": "XXXXXXXX",
"account_id": "XXXXXX"
},
"last_refresh": "2026-05-10T14:42:19+08:00"
}
config.toml 配置
experimental_bearer_token 需要替换为你自己的 API Key。
base_url 需要替换为你自己的 CPA 服务地址。
model_provider = "cliproxyapi"
model = "gpt-5.4"
model_reasoning_effort = "high"
approval_policy = "never"
approvals_reviewer = "user"
sandbox_mode = "danger-full-access"
model_context_window = 1000000
model_auto_compact_token_limit = 900000
[model_providers.cliproxyapi]
name = "custom"
wire_api = "responses"
requires_openai_auth = true
base_url = "http://localhost:8317/v1"
experimental_bearer_token = "sk-XXXXXXXXXXX"
6 个帖子 - 4 位参与者