Use PixMind in Codex CLI through CC Switch
Route Codex Responses through CC Switch and convert them to PixMind Chat Completions.
Codex CLI cannot natively connect to PixMind Chat Completions, but it can use PixMind through CC Switch 3.17.0+ local routing.
Why the same Base URL does not work
The protocols use different request shapes, tool-call events, and streaming formats:
- Current PixMind endpoint:
POST /api-platform/v1/chat/completions - Codex CLI custom provider requirement: a Responses-compatible endpoint
Changing only the URL or setting wire_api to responses does not convert the protocol. It usually results in a 404, an invalid request shape, or tool events that the client cannot parse.
1. Add PixMind as a provider
In the CC Switch Codex panel, add a custom provider:
- Provider Name:
PixMind - API Endpoint:
https://aihub-admin.aimix.pro/api-platform/v1 - API Key: your PixMind API key
- API Format:
OpenAI Chat Completions (Requires routing) - Model: start with
gpt-5.6-terra
2. Enable local routing
Open Settings → Routing → Local Routing:
- Enable the Local Routing master switch.
- Enable
Codexunder Routing Enabled. - Switch to the PixMind provider.
- Restart Codex so it reloads
config.tomland the model catalog.
CC Switch performs the full round trip:
Codex Responses
→ CC Switch Local Route
→ PixMind Chat Completions
→ CC Switch Local Route
→ Codex Responses3. Map models
You can map Codex to any LLM available through PixMind, including:
gpt-5.6-solfor difficult engineering and flagship reasoninggpt-5.6-terraas the balanced daily defaultgpt-5.6-lunafor quick edits and lightweight workclaude-sonnet-5for balanced coding and tool usegemini-3.5-flashfor fast multimodal work
If requests return 404 or streaming cannot be parsed, verify that API Format is Chat Completions and that both Local Routing and Codex takeover are enabled.