codex 登录问题求助

2025 年 9 月 18 日
 sshang

macOS ,登录 codex 的时候老是提示

Token exchange failed: token endpoint returned status 403 Forbidden

我看是回调到了

http://localhost:1455/auth/callback?code=ac_xxxxxx.yyyyy&scope=openid+profile+email+offline_access&state=xxxxxx

有老哥遇到过吗,求助

7200 次点击
所在节点    程序员
3 条回复
OBJECTION
2025 年 9 月 18 日
https://github.com/openai/codex/issues/2414
要不看看这? 我是再 wsl 里面会失败,然后 issue 里面的方法是把 json 文件直接拷贝 你看看在其他机器上行不行
jqknono
2025 年 9 月 18 日
是不是从 vscode 远程登的, vscode 会 port forward, 找下远程设置的 ip, localhost 替换为远程 ip, 确保防火墙通的, 刷新就可以了. 另外可能要重启 vscode 才能看到效果.
jackfanwan
2025 年 9 月 19 日
我当时是因为 vpn 代理的问题,设为系统代理就好了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://v2ex.ih06.com/t/1160131

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX