Codex安装教程及注意事项
国内没有帐号只能用API登录。准备工作Codex APP下载链接:https://openai.com/zh-Hans-CN/codex/get-started/原理Codex → CC Switch→DeepSeek可能出现的错误信息1.unexpected status 502 Bad Gateway: Unknown error, url: http://127.0.0.1:15721/v1/responses2.unexpected status 502 Bad Gateway: CC Switch local proxy failed while handling Codex endpoint /responses. Provider: DeepSeek; model: deepseek-v4-flash; cause: 转发失败: 连接失败: error sending request for url (https://api.deepseek.com/v1/chat/completions), url: http://127.0.0.1:15721/v1/responses原因CC Switch往外发请求到 DeepSeek 那一步连接失败——也就是 CC Switch → api.deepseek.com 这一跳断了。对策在电脑系统“用户环境变量”里加 / 改NO_PROXY127.0.0.1,localhost注意事项1.各软件版本要新、适用电脑。2.不要开代理免得被劫持127.0.0.1。3.调用API地址必是https://api.deepseek.com成品图