按顺序排查
运行版本检查,确认当前认证方式,退出并重新登录;企业环境同时核对代理、证书和工作区策略。不要把 token 贴到 Issue。
仍失败时
用空目录复现并记录时间、平台和脱敏错误;搜索同版本 Issue 后再提交,避免把账号隐私公开。
参考来源
优先使用 OpenAI 官方文档与官方仓库。外部来源会单独标识。
- OpenAI Codex Quickstart
官方来源 · https://learn.chatgpt.com/docs/quickstart
- OpenAI Codex:Troubleshooting
官方来源 · https://learn.chatgpt.com/docs/reference/troubleshooting
- openai/codex Issue #12764:The codex cli giving: 401 unauthorized
外部公开来源 · https://github.com/openai/codex/issues/12764
codex.study 是独立运营的中文 Codex 学习与资料平台,与 OpenAI 不存在隶属、授权或官方认证关系。