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.
| Task | Codex CLIchecked at 0.162.1 |
|---|---|
| Use | |
| Open the manager | Open the agent command center for sessions on the shared local or a remote app-server. 2 notesNo --json. Takes --remote, --remote-auth-token-env, -C/--cd and --no-alt-screen; rejects --no-daemon. Keys: Open, New, New worktree, Resume, Fork, Rename, Stop (interrupts an active thread), Archive, Hide, Delete, Pin. |
| Send a message |
Queue a text message for an existing session by UUID or exact name. 2 notesImage attachments are not supported. --worktree is rejected. 0.166.0 adds `--resume`: after queueing, Codex reads the thread and, if it is not loaded, resumes it on the local daemon or the `--remote` server. It cannot resume through the embedded server; a failed resume prints a warning and the queue still succeeds. Unsupported inherited options are now rejected. |
| Resume |
Resume a saved interactive session by UUID or name, with a picker by default. 2 notes--last, --all, --include-non-interactive, --remote, --remote-auth-token-env. --worktree parses but is rejected at run time. |
| Fork |
Fork a saved session into a new chat, with a picker by default. 2 notesSESSION_ID is documented as a UUID only. --worktree works only with an explicit SESSION_ID. |
| Change | |
| Archive | Archive a saved session by id or name. 1 noteA UUID takes precedence over a name. --worktree is rejected. |
| Unarchive | Restore an archived session by id or name. 2 notes--worktree is rejected. 0.166.0: unarchiving a thread also restores its archived spawned descendant threads, including ones archived separately. Active descendants are skipped, and a descendant that fails to restore does not block the parent. |
| Remove | |
| Delete | Permanently delete a saved session by id or name. 1 noteDestructive. --force skips the prompt but requires a UUID; names always need confirmation. |
Inside a session
Slash commands you type into an open session.
| Task | Codex CLIchecked at 0.162.1 |
|---|---|
| Use | |
| Open the manager | Open the agent command center from inside a session. 1 noteRequires a shared local or remote server. |
| Resume | Open the saved-session picker, or resume a session by id or name. |
| Fork | Fork the current chat, optionally into a new managed worktree. |
| Change | |
| Archive | |
| Remove | |
| Delete | Permanently delete the current session and its subagent threads after confirmation. 1 noteDestructive. Unavailable while a task runs or in a side chat. |
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.
- codex-cli-0.162.1 help observation, live observation, checked 2026-10-14
- Codex developer commands, Documentation, checked 2026-10-15
- Codex 0.166.0: codex-rs/core-plugins/src/marketplace_policy.rs, Source code, checked 2026-10-30
- Codex 0.166.0: codex-rs/core-plugins/src/marketplace_policy.rs, Source code, checked 2026-10-30
- Codex 0.166.0: codex-rs/core-plugins/src/manager.rs, Source code, checked 2026-10-30
- Codex 0.166.0: codex-rs/app-server/src/startup_warnings.rs, Source code, checked 2026-10-30
- Codex 0.166.0: codex-rs/cli/src/queue_cmd.rs, Source code, checked 2026-10-30
- Codex 0.166.0: codex-rs/tui/src/session_queue_commands.rs, Source code, checked 2026-10-30
- Codex 0.166.0: codex-rs/cli/src/queue_cmd.rs, Source code, checked 2026-10-30
- Codex 0.166.0: codex-rs/app-server/src/request_processors/thread_processor.rs, Source code, checked 2026-10-30
- Codex 0.166.0: codex-rs/thread-store/src/local/unarchive_thread.rs, Source code, checked 2026-10-30
- Codex 0.166.0: codex-rs/tui/src/session_archive_commands.rs, Source code, checked 2026-10-30
- 2026-10-24 release review: codex permission, Source code, checked 2026-10-24
- Codex 0.164.0 worktrees: codex-rs/cli/src/main.rs, Source code, checked 2026-10-27
- Codex 0.164.0 worktrees: codex-rs/tui/src/chatwidget/worktree_picker.rs, Source code, checked 2026-10-27