Codex 客户端免手机号验证
首先关闭 Codex 客户端,结束所有相关进程,并且删除缓存目录
%USERPROFILE%\.codex\cache
操作步骤
- 进入 https://chatgpt.com/api/auth/session,保存内容至本地,形如
1 | { |
- 使用附录脚本转换为 Codex 能够识别的格式,形如
1 | { |
将转换结果另存为
%USERPROFILE%\.codex\auth.json启动 Codex 客户端
附录
auth.json 格式转换脚本
- 点击此处 获取 Python 脚本
1 | python .\codex-auth.py .\input.json -o auth.json |
- 点击此处 获取 JavaScript 脚本
1 | node .\codex-auth.js .\input.json -o auth.json |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 科海拾零!
评论