Skip to content

Codex CLI

Install the Codex CLI:

Terminal window
npm install -g @openai/codex
{
"agent": "codex",
"model": "o3"
}

Ralph spawns Codex CLI with:

Terminal window
codex exec "<boot prompt>" --json
  • exec — non-interactive execution subcommand
  • --json — structured JSON output
  • No --max-turns support — ralph uses its timeout mechanism

Ralph’s loop prompt is self-contained — it does not generate or manage AGENTS.md or any other agent-specific instructions file. All methodology content, roles, and behavioral rules are injected directly into the agent session.