Need an API key first?
Create a token in the LumeCoder Console, then come back to finish the setup below.
Codex CLI Installation Guide
Choose your operating system and follow the steps to install Codex CLI
System Requirements
- •Windows 10 or Windows 11
- •Node.js 18+
- •Network connection
Installation Steps
Install Node.js
Visit nodejs.org, download the LTS version Windows installer (.msi).
Double-click to install, keep default options, click "Next" until complete.
After installation, open PowerShell and verify:
node -v npm -v
If you see version numbers (e.g., v20.x.x and 10.x.x), the installation was successful.
Install Codex CLI
Open PowerShell and run:
npm install -g @openai/codex@latest
After installation, run the following to initialize config directory:
codex /status
Config directory: C:\Users\<username>\.codex\
Configure Codex
Important: Replace OPENAI_API_KEY below with your API key from LumeCoder Console!
3.1 Create config.toml
Create %USERPROFILE%\.codex\config.toml with the following content:
model_provider = "lumecoder" model = "gpt-5.4" model_reasoning_effort = "medium" network_access = "enabled" disable_response_storage = true windows_wsl_setup_acknowledged = true model_verbosity = "medium" [model_providers.lumecoder] name = "lumecoder" base_url = "https://api.lumecoder.com" wire_api = "responses" requires_openai_auth = true
3.2 Configure API Key
Create %USERPROFILE%\.codex\auth.json and write:
{
"OPENAI_API_KEY": "sk-xxx"
}Start Codex
After configuration, run:
codex
Troubleshooting
PowerShell Execution Policy Error (Windows)
This can happen on Windows with any of the CLIs above (Claude Code, Codex, Gemini) when running a globally-installed npm package. If you see this error:
cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies...Method 1 (Recommended): Remove restrictions for current user only
Run in PowerShell (Administrator):
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Method 2: Temporary npx startup
If you don't want to modify global policy, use npx directly (replace the package with the CLI you are installing):
npx @anthropic-ai/claude-code # or: npx @openai/codex # or: npx @google/gemini-cli
This avoids changing the global execution policy, but requires npx every time.
