Codex
OpenAI's Codex CLI. Full session resume and native JSONL event stream.
Slot:
agent · Name: codex · Binary: codexOpenAI Codex CLI is a terminal coding agent from OpenAI. AO hooks into it via PATH wrappers and reads its native session JSONL for activity + cost.
macOSSupported
LinuxSupported
WindowsSupported
Install
npm install -g @openai/codexUse
agent: codexNo plugin-level config.
How it works
- Launch:
codexruns inside the worktree. AO setsCODEX_DISABLE_UPDATE_CHECK=1to keep the agent quiet about updates mid-session. - Activity tracking: Codex writes session events to
~/.codex/sessions/YYYY/MM/DD/<id>.jsonl. AO reads the last entry to determineactive/ready/idle/waiting_input/blocked. - PR + git tracking: AO installs wrappers at
~/.ao/bin/ghand~/.ao/bin/git. When Codex runsgh pr create, the wrapper records the PR number in the session metadata. - Session resume:
codex resume <threadId>— AO stores the thread id in session metadata and replays it.
Environment variables
| Variable | Set by AO | Purpose |
|---|---|---|
AO_SESSION_ID | ✓ | AO session id |
AO_ISSUE_ID | ✓ | Issue identifier |
PATH | ✓ | Prepends ~/.ao/bin for the wrappers |
GH_PATH | ✓ | Absolute path to the real gh, used by the wrapper |
CODEX_DISABLE_UPDATE_CHECK | ✓ (1) | Skip version check |
OpenAI API credentials come from wherever codex reads them — AO doesn't set them.