Codex CLI was talking to my OpenAI-compatible gateway just fine. Codex Desktop was not.
Same ~/.codex/config.toml. Same custom provider. Same machine. Desktop failed immediately with:
1 | Missing environment variable: CLI_PROXY_API_KEY |
The provider was not the problem. The process environment was.