惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Troy Hunt's Blog
Blog — PlanetScale
Blog — PlanetScale
Engineering at Meta
Engineering at Meta
F
Full Disclosure
Recorded Future
Recorded Future
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
博客园_首页
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Recent Commits to openclaw:main
Recent Commits to openclaw:main
H
Hacker News: Front Page
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
博客园 - 司徒正美
Webroot Blog
Webroot Blog
Google DeepMind News
Google DeepMind News
Help Net Security
Help Net Security
Cloudbric
Cloudbric
PCI Perspectives
PCI Perspectives
有赞技术团队
有赞技术团队
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
TaoSecurity Blog
TaoSecurity Blog
L
Lohrmann on Cybersecurity
量子位
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Tailwind CSS Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
B
Blog RSS Feed
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
N
News and Events Feed by Topic
罗磊的独立博客
T
Threat Research - Cisco Blogs
Schneier on Security
Schneier on Security
T
Tor Project blog
IT之家
IT之家
M
MIT News - Artificial intelligence
S
Security @ Cisco Blogs
O
OpenAI News
AI
AI
S
Securelist
Simon Willison's Weblog
Simon Willison's Weblog
The Last Watchdog
The Last Watchdog
月光博客
月光博客
Security Archives - TechRepublic
Security Archives - TechRepublic
L
LINUX DO - 热门话题

Kerry的学习笔记

再聊机场客户端 - 多代理客户端会打架 - Kerry的学习笔记 闲聊下机场客户端和订阅阅后即焚 - Kerry的学习笔记 我做了一个机场测速观察站 - Kerry的学习笔记 我让 Codex 自己缓解了一下它的 SSD 高频写入问题 - Kerry的学习笔记 没想到奈云也出事了 - Kerry的学习笔记 Claude 本轮封号潮好迷 - Kerry的学习笔记 记一次 Claude 桌面端连不上的排查 - Kerry的学习笔记 我的 Claude 稳定使用经验 - Kerry的学习笔记 如何为 Shadowrocket 使用 IPRoyal 代理 - Kerry的学习笔记 寰宇云机场怎么样? - Kerry的学习笔记 如何稳定使用 Claude, ChatGPT, Gemini(静态IP + Clash) - Kerry的学习笔记 ChatGPT 可以生成分层的 PSD?感觉还差了点 - Kerry的学习笔记 使用机场客户端的正确姿势:避免那些“灵异”现象的小经验 - Kerry的学习笔记 别卷机场了,eSIM 才是真的香! - Kerry的学习笔记 Google Play 账号快速换区 - Kerry的学习笔记 写在机房拔线后 - Kerry的学习笔记 Gmail 停止支持 POP3了,但我们可以设置邮件转发 - Kerry的学习笔记
Codex 登录报错 token exchange failed - Kerry的学习笔记
Kerry · 2026-03-31 · via Kerry的学习笔记
signed into AI

这篇文章大约需要2分钟阅读。

Codex 出了 Windows 版,下来尝试。结果登录的时候报错了,浏览器回调失败。我想这肯定就是代理的锅,于是就折腾 Clash 客户端去了。

signin codex failed
  • 打开虚拟网卡,加上全局,试了,没用。
  • 给 Proxifier 加规则,没用。
  • 用了回环工具,没用。
  • 检查了1455端口,没被占用。
  • 关掉 WSL,没用。

最后是去小红书找到了答案:添加一个系统环境变量之后就成功了。

NO_PROXY=localhost,127.0.0.1

我去问了 ChatGPT 原因。我是在成功登录之后,浏览器跳转后卡在:localhost:1455/auth/callback。而因为我之前设置了两个环境变量:

HTTP_PROXY=127.0.0.1:7890
HTTPS_PROXY=127.0.0.1:7890

这就导致:

  • 所有请求(包括 localhost)都走代理
  • 包括 Codex 登录回调:http://localhost:1455

结果:

  • Codex 在等 localhost:1455
  • 请求却被 Clash 拿走了
  • 本地服务收不到请求 ❌
  • 最终报: token_exchange_failed

所以最终的解决方案就是确保你的环境变量有下面这3个:

HTTP_PROXY=http://127.0.0.1:7890
HTTPS_PROXY=http://127.0.0.1:7890
NO_PROXY=localhost,127.0.0.1

如果需要IPV6的话,那就是 NO_PROXY=localhost,127.0.0.1,::1。