Scope This article only covers connecting Codex App to LLMoxy GPT series models, with the example model uniformly using
gpt-5.5. For the terminal version, please refer to the "Codex CLI Configuration Guide".

Preparation
Prepare three things before starting:
- An active LLMoxy account
- An auto group LLMoxy API Key
- The model name used uniformly in this article:
gpt-5.5
Codex App shares the Codex configuration layer with Codex CLI and IDE plugins. User-level configuration is usually placed in ~/.codex/config.toml; in Windows native mode it corresponds to %USERPROFILE%\.codex\config.toml.
Universal LLMoxy Configuration
The following macOS, Windows Native, and Windows + WSL sections all use the same configuration. Write it to the config.toml in the corresponding environment:
model_provider = "llmoxy"
model = "gpt-5.5"
model_reasoning_effort = "high"
model_verbosity = "medium"
approval_policy = "on-request"
sandbox_mode = "workspace-write"
[model_providers.llmoxy]
name = "LLMoxy"
base_url = "https://llmoxy.com/v1"
wire_api = "responses"
requires_openai_auth = false
env_key = "LLMOXY_API_KEY"
Configuration meanings:
model_provider = "llmoxy": Default to the LLMoxy Provider defined belowmodel = "gpt-5.5": Default to calling GPT-5.5 on LLMoxybase_url = "https://llmoxy.com/v1": Codex OpenAI compatible endpoint needs/v1wire_api = "responses": Use the Responses API better suited for Codexenv_key = "LLMOXY_API_KEY": API Key is read from environment variables, not written into the config fileapproval_policyandsandbox_mode: Keep confirmation and workspace sandbox, suitable for ordinary users getting started
macOS Installation and Configuration
1. Install Codex App
Open the official macOS download address:
After downloading, double-click .dmg and drag Codex into Applications as prompted by the system.
2. Write configuration file
Open a terminal and create the Codex configuration directory:
mkdir -p ~/.codex
open -a TextEdit ~/.codex/config.toml
Paste the "Universal LLMoxy Configuration" above and save.
3. Set API Key
The default Shell on macOS is usually Zsh; write to ~/.zshrc:
{
echo ''
echo '# LLMoxy'
echo 'export LLMOXY_API_KEY="Your LLMoxy API Key"'
} >> ~/.zshrc
source ~/.zshrc
Verify:
echo "$LLMOXY_API_KEY"
You must replace Your LLMoxy API Key with the real token copied from the console.
4. Open project to verify
Launch Codex App, select a code directory, and send a lightweight task:
Explain the current project structure and point out where the entry file is.
If Codex can read the project and reply normally, the macOS side is connected to LLMoxy.
Windows Native Installation and Configuration

Windows uses Windows Native Agent by default; commands execute in the PowerShell environment, and the configuration file is under the Windows user directory.
1. Install Codex App
Choose either method:
- Microsoft Store page: Codex App
- PowerShell installation:
winget install Codex -s msstore
2. Write configuration file
Create and open the configuration file with PowerShell:
New-Item -ItemType Directory -Force "$HOME\.codex"
notepad "$HOME\.codex\config.toml"
Paste the "Universal LLMoxy Configuration" and save.
The actual path is usually similar to:
C:\Users\YourUsername\.codex\config.toml
3. Set API Key
We recommend writing to Windows user-level environment variables:
[Environment]::SetEnvironmentVariable("LLMOXY_API_KEY","Your LLMoxy API Key","User")
Close Codex App and PowerShell, reopen and verify:
echo $env:LLMOXY_API_KEY
4. Open project to verify
Launch Codex App, add a project directory, then send:
Run git status and explain the current workspace state.
If PowerShell execution policy blocks script execution, you can run in PowerShell:
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
If Git functionality is unavailable, install native Git first:
winget install Git.Git
Windows + WSL Configuration
If your project is mainly developed in the Linux toolchain, you can switch the Codex Agent to WSL.

1. Switch Agent
In Codex App, open Settings, switch Agent from Windows Native to WSL, then restart the App. This setting takes effect after restart.
2. Write WSL internal configuration
After switching to the WSL terminal, create the configuration:
mkdir -p ~/.codex
nano ~/.codex/config.toml
Write the "Universal LLMoxy Configuration" to ~/.codex/config.toml inside WSL.
3. Set WSL internal API Key
Bash users:
{
echo ''
echo '# LLMoxy'
echo 'export LLMOXY_API_KEY="Your LLMoxy API Key"'
} >> ~/.bashrc
source ~/.bashrc
Zsh users:
{
echo ''
echo '# LLMoxy'
echo 'export LLMOXY_API_KEY="Your LLMoxy API Key"'
} >> ~/.zshrc
source ~/.zshrc
Verify:
echo "$LLMOXY_API_KEY"
Windows Native and WSL are two separate environments. When Agent runs in WSL, you need to modify ~/.codex/config.toml in WSL and set LLMOXY_API_KEY in WSL.
Common App Settings
Default editor
You can select the default Open In editor in settings, such as VS Code or Visual Studio.

Integrated terminal
Under Windows, the integrated terminal can choose PowerShell, Command Prompt, Git Bash, or WSL. This setting and the Agent runtime environment are two different things: you can let Agent run in WSL while the integrated terminal still uses PowerShell.

After modifying the terminal, it usually only takes effect for new sessions; restart Codex App if necessary.
Common Issues
Still asks to log in to OpenAI after launch
Confirm that config.toml in the current environment has been written:
model_provider = "llmoxy"
And confirm that LLMOXY_API_KEY can be read in the same environment. When using the LLMoxy Provider, Codex uses the API Key from the environment variable to call LLMoxy; there is no need to write the secret key into the config file.
404 or model does not exist
Check three items:
base_urlmust behttps://llmoxy.com/v1modelmust begpt-5.5- API Key should use an auto group token
Windows and WSL configuration inconsistent
See which environment the Agent is running in:
- Windows Native: modify
%USERPROFILE%\.codex\config.toml, set Windows user environment variable - WSL: modify
~/.codex/config.tomlinside WSL, set WSL Shell environment variable
Want to reset to more conservative permissions
Keep the following configuration:
approval_policy = "on-request"
sandbox_mode = "workspace-write"
This will make Codex ask before going beyond the sandbox or performing sensitive operations.
