@openai/codex) is OpenAI’s
terminal coding agent. Recent versions speak the OpenAI Responses API.
Protocol: OpenAI Responses API
- Base URL:
https://api.orcarouter.ai/v1(includes/v1) - wire_api: must be
"responses"— current Codex builds removed the older"chat"value - OrcaRouter implements
/v1/responses, so it works out of the box
Install
Configure
Edit~/.codex/config.toml:
Run
Notes
- Model names use the
vendor/modelformat;orcarouter/autois simplest. - On Windows, Codex runs under WSL2.
VS Code extension: OpenAI’s official Codex extension runs the CLI inside the
editor and shares the same
~/.codex/config.toml — no separate in-editor
endpoint setting. (Codex inside GitHub Copilot is a different product that uses
Copilot’s own account and can’t BYOK to OrcaRouter.)Enable thinking / reasoning
Setmodel_reasoning_effort in config.toml (minimal / low / medium /
high / xhigh; default medium), or pick it from the /model menu in an
interactive session.