Codex Setup
Codex connects to WDCloud API through the OpenAI-compatible protocol. Create a dedicated group token for Codex to keep usage and limits separate.
Requirements
- Node.js LTS
- Codex CLI
- A Codex token created in the WDCloud API console
- OpenAI-compatible Base URL:
https://token.wdcloud.ai
Windows
Install:
powershell
winget install OpenJS.NodeJS.LTS
npm install -g @openai/codex@latestCreate the config directory:
powershell
mkdir %USERPROFILE%\.codex
cd %USERPROFILE%\.codexWrite config.toml:
toml
model_provider = "wdcloud"
model = "gpt-5.6-sol"
model_reasoning_effort = "xhigh"
network_access = "enabled"
disable_response_storage = true
[model_providers.wdcloud]
name = "OpenAI"
base_url = "https://token.wdcloud.ai"
wire_api = "responses"
requires_openai_auth = trueWrite auth.json:
json
{
"OPENAI_API_KEY": "paste-your-codex-group-token"
}Start Codex:
powershell
cd your-project-folder
codexmacOS
bash
brew install node
npm install -g @openai/codex@latest
mkdir -p ~/.codex && cd ~/.codex~/.codex/config.toml:
toml
model_provider = "wdcloud"
model = "gpt-5.6-sol"
model_reasoning_effort = "xhigh"
network_access = "enabled"
disable_response_storage = true
[model_providers.wdcloud]
name = "OpenAI"
base_url = "https://token.wdcloud.ai"
wire_api = "responses"
requires_openai_auth = true~/.codex/auth.json:
json
{ "OPENAI_API_KEY": "paste-your-codex-group-token" }Start Codex:
bash
cd your-project-folder
codexLinux
Ubuntu / Debian:
bash
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g @openai/codex@latest
mkdir -p ~/.codex && cd ~/.codex~/.codex/config.toml:
toml
model_provider = "wdcloud"
model = "gpt-5.6-sol"
model_reasoning_effort = "xhigh"
network_access = "enabled"
disable_response_storage = true
[model_providers.wdcloud]
name = "OpenAI"
base_url = "https://token.wdcloud.ai"
wire_api = "responses"
requires_openai_auth = true~/.codex/auth.json:
json
{ "OPENAI_API_KEY": "paste-your-codex-group-token" }Start Codex:
bash
cd your-project-folder
codexTroubleshooting
- Set
base_urltohttps://token.wdcloud.aiwithout appending/v1. OPENAI_API_KEYshould be the dedicated Codex group token.- If a model is unavailable, check whether the token's group has access to that model.