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

推荐订阅源

N
Netflix TechBlog - Medium
V
Vulnerabilities – Threatpost
Google Online Security Blog
Google Online Security Blog
Hugging Face - Blog
Hugging Face - Blog
L
LINUX DO - 热门话题
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
D
Docker
C
Cyber Attacks, Cyber Crime and Cyber Security
MyScale Blog
MyScale Blog
P
Palo Alto Networks Blog
T
Tenable Blog
P
Privacy International News Feed
Google DeepMind News
Google DeepMind News
小众软件
小众软件
Cisco Talos Blog
Cisco Talos Blog
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
A
Arctic Wolf
C
Cybersecurity and Infrastructure Security Agency CISA
C
Cisco Blogs
T
Threat Research - Cisco Blogs
NISL@THU
NISL@THU
The Hacker News
The Hacker News
Project Zero
Project Zero
AWS News Blog
AWS News Blog
Simon Willison's Weblog
Simon Willison's Weblog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Threatpost
V
Visual Studio Blog
The GitHub Blog
The GitHub Blog
The Cloudflare Blog
Last Week in AI
Last Week in AI
Jina AI
Jina AI
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
Vercel News
Vercel News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
MongoDB | Blog
MongoDB | Blog
U
Unit 42
Scott Helme
Scott Helme
A
About on SuperTechFans
WordPress大学
WordPress大学
F
Fortinet All Blogs
大猫的无限游戏
大猫的无限游戏
G
GRAHAM CLULEY
Latest news
Latest news
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
Schneier on Security

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。