Production integration docs · examples use router-api.mengbi-ai.net and a personal API key placeholder.
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.
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"
EOFPrepare 3
Use the Codex Desktop configuration supported by your current installation.
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 UTF8Prepare 4
Use the Codex Desktop configuration supported by your current installation.
echo 'export OPENAI_API_KEY="sk-mengbi-xxxxxx"' >> ~/.zshrc
source ~/.zshrcNoteClient 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.
model = "gpt-5.6-sol"
# Example: model = "gpt-5.6-sol"