Use Connect on GateRook's AI apps page. GateRook adds one server entry to Codex's config, ~/.codex/config.toml (or config.toml in $CODEX_HOME), and backs up the file first.
- In GateRook, open AI apps and select Connect next to Codex.
- Check the entry under What will change, then select Connect Codex.
- Restart Codex. It reads
config.tomlonly when it starts. - Open a new chat and ask the prompt GateRook suggests.
The entry holds no token. Codex runs GateRook's helper through http_headers_helper, and the helper gives it a 15-minute token whenever it needs one. This needs Codex 0.148.0 or later; GateRook warns when it finds an older version, which would connect without a token. The Codex CLI and its IDE extension share this file.
The entry also sets Codex's own approval mode to writes, so Codex asks you before write tools, and a tool timeout of 60 seconds. GateRook's tool modes and Approvals still apply. On a production endpoint, the first token waits for your Allow in GateRook. See the Codex guide.