Codex
Stage runs tasks as Codex threads through the Codex app-server daemon on the computer Codex runs on. Codex keeps what it owns: threads, models, your login and project trust. Stage keeps the task, its journal, its final reply and what comes next.
Requirements
- Stage on your computer: the desktop app or Stage's per-user service,
stage serve --local-harnesses, or a worker with local harnesses (the worker service, orstage worker run --local-harnesses). Codex is unavailable in the Docker image. - The Codex CLI, logged in with
codex login. Stage stores no Codex credentials.
Connect
Open Settings > Connections, choose Add connection > Codex, and click Connect. From a terminal:
stage harness codex run connectStage starts the app-server daemon when it is down (at most once every 30 seconds), reads the Codex login and connects the Codex home. It never stops, restarts or updates the daemon: running turns survive a Stage restart, and codex resume and Codex Desktop see the same threads.
Stage uses codex on your PATH; set Codex CLI to a path to use another (stage harness codex set binary=PATH). When Codex is signed out, the panel shows the command that fixes it: run codex login, then Connect. States and settings: Connections reference.
Workspaces
Workspaces are the projects Codex trusts. Trust a project in Codex, or add a workspace with the Trust folder source (stage workspaces add), which asks Codex to trust the folder through its app server. Stage never edits Codex's config files. Browse lists folders on the Codex host, starting at the host user's home. Projects
Start a task
Select the Codex connection and the exact workspace for your task. Tasks run in the project root: no Codex worktrees and no Plan mode. Choose a model and a permission: Read only, Auto (default) or Full access. Images are sent with the prompt.
The thread keeps running in Codex after the launch. When it finishes, task detail shows its final answer (up to 4000 characters). Complete the task in Stage to start what depends on it.
Answer and message
Answer in Stage
For tracked active threads on Codex 0.172 or later, the Session tab lists command, file-change and permission approvals under Requests. Answer with the options each request offers.
Message Codex in Stage
Send starts a new turn once the thread is idle. Steer adds input to the running turn when the daemon supports it. Queue is unavailable until Codex's queue API leaves experimental.
Answer in Codex
Codex questions and MCP prompts are answered in Codex. Copy resume command on a task row, in notifications and in the Session tab copies cd <dir> && codex resume <id>; run it in a terminal. On a worker, run it on that machine.
Auto-complete
Archiving a thread in Codex completes its successful task while Complete tasks when archived in Codex is on (the default). The session action Archive in Codex archives it from Stage, for a person or an agent; the action itself never completes a task, the observed archive does. Auto-complete
Disconnect
stage harness codex disconnect, or Disconnect in Settings. Stage stops tracking; tasks and history stay, and the daemon and its threads stay in Codex.
Limits
- No worktrees and no Plan mode: every task runs in the project checkout.
- Questions and MCP prompts are answered in Codex, through the resume command.
- Not in Docker. On a worker, only with the worker service or
stage worker run --local-harnesses.
Next steps
- Harnesses: how Codex compares with the other harnesses.
- Sessions and references: what Stage keeps from a session.
- Connections reference: states, settings and CLI.
- Agents that queue work: let Codex add tasks and notes to Stage.