Skip to content

Codex Integration

Connect the Codex desktop app to GodeX by adding a custom provider in ~/.codex/config.toml:

toml
model = "gpt-5.5"
model_provider = "godex"

[model_providers.godex]
name = "GodeX"
base_url = "http://127.0.0.1:5678/v1"
wire_api = "responses"
requires_openai_auth = false
supports_websockets = false

How It Works

Codex desktop app

    │  Responses API
    │  POST /v1/responses

GodeX (localhost:5678)

    │  Chat Completions API

DeepSeek · Zhipu · MiniMax · Xiaomi MiMo

Codex speaks the OpenAI Responses protocol. GodeX sits in the middle and translates to each provider's Chat Completions protocol. To Codex, GodeX is an ordinary OpenAI-compatible endpoint.

Key Fields

FieldValueNotes
model"gpt-5.5"Codex model alias; resolved by GodeX models.aliases
model_provider"godex"Points to the [model_providers.godex] block
base_url"http://127.0.0.1:5678/v1"GodeX server address
wire_api"responses"Must be "responses" — GodeX speaks Responses API
requires_openai_authfalseGodeX does not require OpenAI authentication
supports_websocketsfalseGodeX does not support WebSocket transport

Available Model Aliases

GodeX ships with these Codex model aliases in godex.yaml:

Codex ModelPurposeRoutes To
gpt-5.5Default: complex coding, computer use, researchdeepseek/deepseek-v4-pro
gpt-5.4Flagship: coding + reasoning + tool usedeepseek/deepseek-v4-pro
gpt-5.4-miniSub-agent taskszhipu/glm-5.1
gpt-5.3-codexCodex coding: complex software engineeringdeepseek/deepseek-v4-pro
gpt-5.3-codex-sparkNear-real-time coding iterationzhipu/glm-5.1

Model aliases are managed entirely in godex.yaml. Codex only needs the alias name — no client-side changes required when switching providers.

Verification

Health Check

bash
curl http://localhost:5678/health

List Models

bash
curl http://localhost:5678/v1/models

Test Request

bash
curl http://localhost:5678/v1/responses \
  -H 'content-type: application/json' \
  -d '{"model":"gpt-5.5","input":"Hello, who are you?"}'

Reasoning Effort

Codex model_reasoning_effort (low / medium / high / xhigh) is bridged by GodeX per provider:

ProviderBehavior
DeepSeekNative reasoning_effort, passed through directly
ZhipuBoolean thinking switch, mapped from effort level
MiniMaxNo native reasoning, ignored
Xiaomi MiMoBoolean thinking switch, similar to Zhipu

GodeX includes compatibility diagnostics in responses, so you always know what was degraded or ignored.