DESKTOP / CODEX

Codex Desktop

Configure Codex Desktop to use Mengbi Router for personal coding tasks.

!

Production integration docs · examples use router-api.mengbi-ai.net and a personal API key placeholder.

01 /

Prepare

Prepare Codex Desktop with a personal Mengbi Router key and a current model ID.

Prepare 1

Use the Codex Desktop configuration supported by your current installation.

  • Install the latest stable Codex Desktop release.
  • Create a personal Mengbi API key in the console.
  • Copy the exact model ID from the model catalog.

NoteClient configuration fields can change between versions. Prefer the documented OpenAI-compatible or native provider setting.

Prepare 2

Use the Codex Desktop configuration supported by your current installation.

bash
mkdir -p ~/.codex && cat > ~/.codex/config.toml <<'EOF'
model_provider = "mengbi"
model = "gpt-5.6-sol"
model_reasoning_effort = "high"

[model_providers.mengbi]
name = "Mengbi Router"
base_url = "https://router-api.mengbi-ai.net/v1"
env_key = "OPENAI_API_KEY"
wire_api = "responses"
EOF

Prepare 3

Use the Codex Desktop configuration supported by your current installation.

powershell
New-Item -ItemType Directory -Force -Path "$HOME\.codex" | Out-Null
@'
model_provider = "mengbi"
model = "gpt-5.6-sol"
model_reasoning_effort = "high"

[model_providers.mengbi]
name = "Mengbi Router"
base_url = "https://router-api.mengbi-ai.net/v1"
env_key = "OPENAI_API_KEY"
wire_api = "responses"
'@ | Set-Content -Path "$HOME\.codex\config.toml" -Encoding UTF8

Prepare 4

Use the Codex Desktop configuration supported by your current installation.

bash
echo 'export OPENAI_API_KEY="sk-mengbi-xxxxxx"' >> ~/.zshrc
source ~/.zshrc

NoteClient configuration fields can change between versions. Prefer the documented OpenAI-compatible or native provider setting.

Prepare 5

Use the Codex Desktop configuration supported by your current installation.

  • Install the latest stable Codex Desktop release.
  • Create a personal Mengbi API key in the console.
  • Copy the exact model ID from the model catalog.

Prepare 6

Use the Codex Desktop configuration supported by your current installation.

toml
model = "gpt-5.6-sol"
# Example: model = "gpt-5.6-sol"