CLIs · Responses

Point Codex CLI at the Responses door.

In ~/.codex/config.toml. On Windows, %USERPROFILE%\.codex\config.toml. The base URL includes /v1. Codex is not a partner of REA.

Config

model = "gpt-5-codex"
model_provider = "rea"

[model_providers.rea]
name = "REA ControlPlane"
base_url = "https://api.reacontrolplane.com/v1"
wire_api = "responses"
env_key = "REA_CODEX_KEY"
export REA_CODEX_KEY="rea_YOUR_REA_KEY.sk-YOUR_OPENAI_KEY"

An xAI key goes in that same combined value when the model is a Grok model. A Bedrock Responses model uses this same file. The model id starts with bedrock/, and the key is the Bedrock API key. That page is Bedrock Responses.

Codex stays on OpenAI or xAI.

LoopGuard, PreFlight, and TraceGuard run on this door. They are included on every plan. The model table is on Set up. You bring your own model key. REA does not host the model.