For the latest Node.js version, I was getting source code to build `codex-cli` folder. Here are some notes: 1. `~/.codex/config.json` The `model` must be your deployment name. It's not a "Model name". ```json { "model": "codex-mini", "provider": "azure" } ``` 2. `~/.profile` ```shell # Codex CLI export AZURE_OPENAI_API_KEY='your-api-key' export AZURE_BASE_URL="https://your-resource-name.openai.azure.com/openai" ``` Only `o4-mini` and `codex-mini` models able to use Responses API. If I get codex v0.5.0 by `npm install -g @openai/codex`, I still can't run with Azure OpenAI. I tried everything. It just can't run. <img width="1918" height="1207" alt="Image" src="https://github.com/user-attachments/assets/8ca096ea-212a-4c40-a0d5-64c25f01ac64" />