Codex (CLI / app)
Codex speaks the OpenAI Responses protocol only (wire_api = "responses").
Use an OpenAI-compatible base URL that includes /v1.
~/.codex/config.toml
Section titled “~/.codex/config.toml”model = "claude-turbo-hub-qwen3-coder"model_provider = "opengateway-oss"
[model_providers.opengateway-oss]name = "OpenGateway OSS"base_url = "https://api.opengateway.one/oss/v1"env_key = "OPENGATEWAY_API_KEY"wire_api = "responses"
[model_providers.opengateway-frontier]name = "OpenGateway Frontier"base_url = "https://api.opengateway.one/frontier/v1"env_key = "OPENGATEWAY_API_KEY"wire_api = "responses"Then:
export OPENGATEWAY_API_KEY="YOUR_KEY"To run a frontier model for one session:
model = "turbo-agent-model-claude-sonnet-4-6"model_provider = "opengateway-frontier"Effort & context
Section titled “Effort & context”model_reasoning_effort(none|minimal|low|medium|high|xhigh) maps to the Responsesreasoning.effortfield — see Effort levels.model_context_windowis client-side: Codex truncates prompts to it, so set it to match the model you target. See 1M context.
OpenGateway Guide
Ask about configuring OpenGateway — lanes, base URLs, client setup, model choice, or an error you hit. Answers are grounded in the docs.