Directory
Codex commands
Codex CLI slash commands, subcommands, and flags — with the version each one arrived or changed in.
44 entries
--approve-for-me
The flag that routes approval requests through automatic review under the workspace-write sandbox (hidden alias: --not-so-yolo).
2026-11-20--dangerously-bypass-approvals-and-sandbox
The flag that skips all confirmations and runs commands without sandboxing (hidden alias: --yolo) — self-described as EXTREMELY DANGEROUS.
2026-11-20--search
The flag that enables live web search — gives the model the native Responses web_search tool (no per-call approval).
2026-11-20-a / --ask-for-approval
The flag configuring when the model requires human approval before executing a command — on-request / never.
2026-11-20-c / --config
The launch flag that overrides individual config.toml values — dotted paths reach nested keys.
2026-11-20-m / --model
The launch flag that picks the model the agent should use — the in-session counterpart is /model.
2026-11-20-s / --sandbox
The flag selecting the sandbox policy for model-generated shell commands — read-only / workspace-write / danger-full-access.
2026-11-20/compact
The slash command that summarizes the conversation to prevent hitting the context limit.
2026-11-20/config
The slash command for in-session preferences — searchable across categories since 0.163.0.
2026-11-20/daemon
The slash command that manages the local background server — restart support added in 0.163.0.
2026-11-20/daybreak
The slash command that turns Daybreak on or off — explicit opt-in in 0.161, default-on for eligible accounts since 0.163.0.
2026-11-20/diff
The slash command that shows the git diff, including untracked files.
2026-11-20/experimental
The slash command that toggles experimental features — the in-session gateway to feature flags.
2026-11-20/fork
The slash command to fork the current chat; supports inline args.
2026-11-20/init
The slash command that creates an AGENTS.md instructions file for Codex.
2026-11-20/keymap
The slash command for remapping TUI shortcuts — leader key configurable since 0.163.0.
2026-11-20/mcp
The slash command to list MCP tools and log in to MCP servers; /mcp login since 0.161.0.
2026-11-20/mention
The slash command to mention a file and pull it into the conversation context.
2026-11-20/model
The TUI slash command for switching model and reasoning effort; inline args supported since 0.164.0.
2026-11-20/new
The slash command to start a new chat during a conversation; supports inline args.
2026-11-20/permissions
The slash command for choosing what Codex is allowed to do; inline args since 0.164.0.
2026-11-20/plan
The slash command that switches to Plan mode; supports inline args.
2026-11-20/presets
Numbered slots for reusable prompts and slash commands — ten slots since 0.164.0.
2026-11-20/resume
The slash command to resume a saved chat; supports inline args.
2026-11-20/review
The slash command that has Codex review your current changes and find issues; supports inline args.
2026-11-20/skills
The slash command for using skills to improve how Codex performs specific tasks.
2026-11-20/status
The slash command showing current session configuration and token usage.
2026-11-20/statusline
The slash command for configuring which items appear in the status line; supports inline args.
2026-11-20/usage
The slash command for the account usage panel or a usage-limit reset (panel since 0.156.0).
2026-11-20/voice
The in-TUI realtime voice conversation slash command — experimental in 0.155.0, on by default in 0.156.0, WebRTC since 0.170.0.
2026-11-20/worktree
The slash command to start or continue a conversation in a new Git worktree — experimental in 0.154, on by default in 0.156, a managed tool group in 0.162.
2026-11-20codex app-server
The experimental subcommand that runs the app server or related tooling — the desktop/IDE integration side.
2026-11-20codex apply
The subcommand that applies Codex's latest diff to your working tree via git apply (alias: a).
2026-11-20codex cloud
The experimental subcommand to browse Codex Cloud tasks and apply changes locally.
2026-11-20codex doctor
The subcommand that diagnoses local Codex installation, config, auth, and runtime health; --network-only since 0.166.0.
2026-11-20codex exec
The subcommand that runs Codex non-interactively (alias: e) — the entry point for scripting and CI.
2026-11-20codex fork
The CLI subcommand to fork a saved session (picker by default; --last to fork the most recent).
2026-11-20codex login
The subcommand that manages Codex login (paired with logout for clearing credentials).
2026-11-20codex mcp
The subcommand family for managing Codex's external MCP servers — list/get/add/remove/login/logout.
2026-11-20codex mcp-server
The removed legacy MCP server host subcommand — fully unusable since 0.154.0 (2026-09-09); no in-CLI replacement was named.
2026-11-20codex queue
The CLI subcommand that queues a message for an existing session (--resume since 0.166.0).
2026-11-20codex resume
The CLI subcommand to resume a saved interactive session (picker by default; --last for the most recent).
2026-11-20codex review
The CLI subcommand that runs a code review non-interactively — the standard entry for CI and pre-commit checks.
2026-11-20codex sandbox
The subcommand that runs commands inside a Codex-provided sandbox — reproduce the agent's execution environment by hand.
2026-11-20