Windows 版的 Codex 桌面版其实已经可以通过 ChatGPT 连接了,但是官方没有把这个功能打开。把以下指令发到你的 Codex 就可以启用这个功能。
(注意,启用了之后,在 Codex UI 里面不会看到配对按钮,但是在手机端可以直接连上!)
以下是命令:
通过手机连接win端的codex
1. config点toml 里开启远程连接入口
2. SQLite 里启用 remote_control
3. 重启 Codex Desktop
4. 手机端重新发起连接
5. 按提示完成身份验证
可以直接把下面这段发给 Codex,让它帮你处理:
请帮我在 Windows 上开启 Codex App 的手机远程控制能力。
要求:
1. 检查 %USERPROFILE%\点codex\config点toml,确保 [features] 中存在 remote_connections = true。
2. 不要将 remote_control = true 写入 config点toml。
3. 备份 %USERPROFILE%\点codex\sqlite\codex-dev点db,备份文件名包含时间戳。
4. 在 SQLite 表 local_app_server_feature_enablement 中写入或更新:
- feature_name = remote_control
- enabled = 1
- updated_at = 当前毫秒时间戳
5. 验证 config点toml 和 SQLite 写入结果。
6. 提醒我完整重启 Codex App。
7. 重启后检查日志,确认 experimentalFeature/enablement/set 至少有一次 errorCode=null。
8. 提醒我手机端连接时必须完成 ChatGPT 账号 MFA / 多因素认证。