Harness Notes

Commands

Updated 2026-11-25,

On this page

The command for each task, in each harness. Pick what you are working with, then read across: commands you type in your shell or a script and commands you type inside an open session are listed separately. Commands for renaming sessions are on Thread naming and importing from another harness on Migration.

From your shell

Commands you run in a terminal or script, outside a session.

TaskCodex CLIchecked at 0.162.1
Set up
Install

codex app-server daemon bootstrap

Install durable local app-server management for SSH-driven use.

1 note

--remote-control starts it with remote control on.

Sign in or pair

codex remote-control pair

Create and print a short-lived manual pairing code.

1 note

Experimental. The daemon must already be running.

Use
Check status

codex app-server daemon version

Print the local CLI and running app-server versions as JSON.

1 note

Reports versions only, not pid or uptime.

Start or run

codex app-server daemon start

Start the local app-server daemon if it is not already running.

codex remote-control

Start remote control through the managed daemon, falling back to the foreground.

1 note

Experimental. --no-daemon runs an embedded app-server in the foreground until Ctrl-C.

codex remote-control start

Start the app-server daemon with remote control enabled.

1 note

Experimental; --json.

Change
Enable

codex app-server daemon enable-remote-control

Enable remote control for future starts and a running managed daemon.

Disable

codex app-server daemon disable-remote-control

Disable remote control for future starts and a running managed daemon.

Update

codex app-server daemon update

Replace the daemon package.

1 note

May interrupt running work. --from-cli pins this CLI's package; -y requires --from-cli. Added in 0.155.0.

Restart

codex app-server daemon restart

Restart the local app-server daemon.

Remove
Shut down

codex app-server daemon stop

Stop the local app-server daemon.

codex remote-control stop

Stop the app-server daemon.

1 note

Experimental; --json.

Inside a session

Slash commands you type into an open session.

TaskCodex CLIchecked at 0.162.1
Change
Update

/daemon

Show the background-server connection and offer to update it.

1 note

Confirming exits Codex and may interrupt work. Added in 0.156.0.

Notes and sources

Codex CLI
  • The shell CLI installs and removes plugins but has no enable, disable, update or validate command; the /plugins browser can switch plugins on or off.
  • --worktree starts new sessions in a managed Git worktree and works with codex fork given an explicit session; resume, queue, archive, unarchive and delete reject it at run time.
  • MCP protocol capabilities are recorded in mcp.json; these records cover the operator commands.
  • 0.164.0 TUI: /presets opens ten numbered reusable-input slots (1–9 and 0) for prompts/slash commands, with a keyboard menu and saving through local settings. It is not a skill or model-callable tool.
  • 0.164.0 TUI: /model [model] --reasoning=<level> --speed=<tier> validates available model/effort/tier choices before applying session settings. /permissions <profile-id> [--approval-policy=<policy>] [--reviewer=user|auto_review] discovers and validates the selected permission profile before releasing queued input. These commands are distinct from CLI launch flags.
  • 0.166.0 adds codex doctor --network-only, which runs only the config, network environment, provider HTTP and Responses WebSocket checks.