yelu provider to send Responses API requests to https://api.yelu.ai/v1 with your Yelu API key.
The configuration below uses
gpt-5.4, a coding-capable model recognized by the Yelu gateway. Model access is account-specific; confirm availability with GET /v1/models.Configuration at a glance
Unlike Claude Code, Codex requires the
/v1 suffix because its provider base URL is the OpenAI-compatible API root.
macOS
1. Install Codex
Use the official standalone installer:macOS
2. Set the key
macOS
3. Create the provider configuration
Create~/.codex/config.toml and add:
~/.codex/config.toml
model_provider and model_providers in a project-local .codex/config.toml.
Windows
Native PowerShell
Install Codex using the official Windows installer:Windows PowerShell
Windows PowerShell
%USERPROFILE%\.codex\config.toml:
Windows PowerShell
WSL 2
Use WSL 2 when your repository and tools live in Linux:Administrator PowerShell
WSL 2
~/.codex/config.toml. The Windows and WSL Codex installations use separate home directories, keys, and configuration files. Keep WSL projects under ~/code instead of /mnt/c for better filesystem performance.
Verify the API and configuration
First confirm that the key can see the model:Terminal
/status to confirm that the provider is yelu, the model is gpt-5.4, and the active directory is correct.
Safe defaults
- Keep
YELU_API_KEYin an environment variable or secret manager; never place the key directly in TOML. - Start unfamiliar repositories with
--sandbox read-onlyor use/permissionsbefore allowing edits. - Use
workspace-writeonly when the task should modify the current workspace. - Review the diff and run tests before accepting generated changes.
- Avoid
--dangerously-bypass-approvals-and-sandboxon a normal workstation.