Skip to content

Codex Setup

Codex is OpenAI's AI coding assistant CLI. Clauddy is fully compatible with the OpenAI API format.

Prerequisites

Install

bash
npm install -g @openai/codex
powershell
npm install -g @openai/codex

Verify: codex --version

Configuration

Codex uses config files for API setup.

toml
model_provider = "clauddy"
model = "gpt-5.3-codex"

[model_providers.clauddy]
name = "clauddy"
base_url = "https://clauddy.com/v1"
wire_api = "responses"
requires_openai_auth = true
toml
# 1. Press Win+R, type %USERPROFILE% and press Enter
# 2. Create .codex folder
# 3. Create config.toml and auth.json inside

model_provider = "clauddy"
model = "gpt-5.3-codex"

[model_providers.clauddy]
name = "clauddy"
base_url = "https://clauddy.com/v1"
wire_api = "responses"
requires_openai_auth = true

Also create auth.json in the same directory:

json
{
  "OPENAI_API_KEY": "sk-your-clauddy-token"
}
json
{
  "OPENAI_API_KEY": "sk-your-clauddy-token"
}

Creating .codex folder on Windows

powershell
mkdir "%USERPROFILE%\.codex"

Config Reference

SettingDescription
base_urlClauddy OpenAI-compatible endpoint: https://clauddy.com/v1
OPENAI_API_KEYYour Clauddy API token
modelRecommended: gpt-5.3-codex

URL Format

Codex requires the /v1 suffix. Use https://clauddy.com/v1, not https://clauddy.com.

Launch

bash
cd your-project-folder
codex

Troubleshooting

See Codex FAQ.

Clauddy | AI API 聚合平台