📌 📄 内容摘要:
kkjusdoit 在 CPA 配置 大坑 之 Codex 启动后尝试连接 API 时,反复出现:502 中发帖
CPA + Codex 配置避坑指南
前言
本文记录了配置 CLI Proxy API (CPA) 与 Codex 集成时遇到的各种坑,希望能帮助后来者少走弯路。
环境信息
系统: macOS (Apple Silicon)
CPA 版本: v6.9.29
Codex 版本: 0.121.0
代理工具: ClashX / Clash Verge
核心问题:502 Bad Gateway
症状
Codex 启动后尝试连接 API 时,反复出现:
Unexpected status 502 Bad Gateway: Unknown error, url: http://localhost:8321/v1/responses
根本原因
系统代理拦截了 localhost 请求!
ClashX/Clash Verge 等代理工具默认会拦截所有 HTTP 请求...
────────── 链接信息 ──────────
🔗 论坛链接: linux.do
📎 访问地址: https://linux.do/t/topic/1997266/1
─────────────────────────────
📢 来源:LINUX DO