Documentación

Codex CLI setup (WebSocket)

Enable WebSocket mode for Codex CLI using the Sub2API-generated template.

Use this only if you specifically need Codex CLI WebSocket mode.

Get <BASE_URL> and <API_KEY> from API Keys -> Use key.

config.toml

toml
model_provider = "OpenAI"
model = "gpt-5.5"
review_model = "gpt-5.5"
model_reasoning_effort = "xhigh"
disable_response_storage = true
network_access = "enabled"
windows_wsl_setup_acknowledged = true

[model_providers.OpenAI]
name = "OpenAI"
base_url = "<BASE_URL>"
wire_api = "responses"
supports_websockets = true
requires_openai_auth = true

[features]
responses_websockets_v2 = true
goals = true

auth.json

json
{
  "OPENAI_API_KEY": "<API_KEY>"
}

Config directory is the same as standard Codex CLI: ~/.codex (macOS/Linux) or %userprofile%\.codex (Windows).