OpenAI-Compatible Codex Gateway
Codex Pooler can act as a narrow OpenAI-compatible Codex gateway for selected SDK clients. Clients call /v1 with a Pool API key, and Codex Pooler translates supported requests into Codex-compatible work before applying the same Pool routing, limits, account selection, and accounting path.
It does not provide full OpenAI API parity.
Supported Shape At A Glance
Section titled “Supported Shape At A Glance”| Client need | Use this route | Boundary |
|---|---|---|
| List models visible to the Pool | GET /v1/models | OpenAI-shaped model list from Pool and catalog state |
| Send Responses work | POST /v1/responses | Translated to Codex-compatible work and routed through Pool policy |
| Use chat-completions-style clients | POST /v1/chat/completions | Coerced to Codex Responses work and normalized back to chat shape |
| Use narrow Responses websocket compatibility | GET /v1/responses | Not OpenAI Realtime SDK support |
| Read operator metadata | /mcp | Separate endpoint with operator MCP tokens, not Pool API keys |
Base URL
Section titled “Base URL”Use https://codex-pooler.example.com/v1 for deployed examples, or http://localhost:4000/v1 for local setup. The credential is a Pool API key.
Base URL: https://codex-pooler.example.com/v1Authorization: Bearer <pool-api-key>Unsupported Boundaries
Section titled “Unsupported Boundaries”Codex Pooler does not support /v1/realtime or OpenAI Realtime SDK websocket or session routes. GET /v1/responses is narrow Responses websocket compatibility only.
Unsupported /v1 routes may return deterministic OpenAI-shaped unsupported endpoint errors when explicitly routed. Examples include embeddings, batches, moderations, fine-tuning jobs, image variations, response retrieve, response cancel, response delete, and /v1/responses/compact.
Canonical Setup Pages
Section titled “Canonical Setup Pages”- OpenAI-Compatible SDKs explains SDK base URLs, route support, and MCP separation
- Runtime Routes lists supported, translated, partial, and unsupported public routes
- Routing Strategies explains how
/v1traffic still uses Pool eligibility and routing