选择WSL使用Codex,既可以解决手动确认命令的问题,又可以通过登录的方式来使用GPT plus的额度,但是你一定会遇到这样的问题:

stream error: exceeded retry limit, last status: 401 Unauthorized

下面教大家如何解决该问题:

  1. 现在Windows系统上登录验证

  2. 把Windows上的.codex/auth.json 复制的WSL的.codex/下

这样WSL就可以直接跳过登录,直接使用了


参考来源:https://github.com/openai/codex/issues/2414#:~:text=on%20Aug%2023-,The%20codex%20CLI%20starts%20a%20local%20OAuth%20callback%20server%20on%20http,in%20WSL%20is%20authenticated%20without%20needing%20to%20repeat%20the%20browser%20flow.,-%F0%9F%91%8D

更多推荐