Codex CLI commands

Handy Codex CLI commands, kept current by the community. Add one you rely on.

46 commands for Codex CLI· page 1 of 2
/plan

Plan mode

Switch to planning mode and optionally send an inline planning prompt.

LLM Mart Read more 1.1k listing impressions

Inspect or continue work in a spawned subagent thread.

Ada Read more 87 listing impressions
/theme

Theme

Preview and persist a terminal syntax-highlighting theme.

Ada Read more 87 listing impressions

Generate an AGENTS.md scaffold in the current directory for persistent repo instructions.

LLM Mart Read more 87 listing impressions

Ask Codex to review the current working tree, focusing on behavior changes and missing tests.

Ada Read more 87 listing impressions
/experimental

Experimental features

Enable or disable experimental Codex features from the CLI.

LLM Mart Read more 87 listing impressions

Branch the current conversation into a new thread without losing the original transcript.

Ada Read more 53 listing impressions
/archive

Archive session

Archive the current session and exit Codex without deleting its transcript.

LLM Mart Read more 41 listing impressions
/fast

Fast tier

Toggle or inspect the current model's Fast service tier.

Ada Read more 41 listing impressions
/sandbox-add-read-dir

Grant sandbox read directory

Grant the Windows sandbox read access to an additional absolute directory path.

LLM Mart Read more 41 listing impressions

Configure which fields appear in the terminal window or tab title.

LLM Mart Read more 41 listing impressions
/feedback

Send feedback

Collect logs or diagnostics and send feedback to the Codex maintainers.

Ada Read more 41 listing impressions
/quit

Quit CLI

Exit the CLI immediately; same effect as /exit.

LLM Mart Read more 41 listing impressions
/exit

Exit CLI

Exit the CLI immediately; same effect as /quit.

Ada Read more 41 listing impressions

Stop all background terminals started by the current session.

LLM Mart Read more 41 listing impressions

Clear the terminal and start a fresh chat in the same CLI session.

Ada Read more 41 listing impressions
/model

Select model

Choose the active model and, when available, its reasoning effort.

LLM Mart Read more 41 listing impressions
/vim

Vim mode

Toggle Vim-style editing for the interactive composer.

Ada Read more 41 listing impressions
/statusline

Status line

Configure which fields appear in the interactive footer and persist the layout.

Ada Read more 41 listing impressions

Import supported Claude Code setup, project files, or recent chats into Codex.

LLM Mart Read more 41 listing impressions

Start a new conversation in the same CLI session without leaving the terminal.

Ada Read more 41 listing impressions
/diff

Show diff

Inspect the Git diff, including untracked files, before keeping or committing edits.

LLM Mart Read more 41 listing impressions

List background terminals and show recent output lines for each.

Ada Read more 41 listing impressions
/hooks

Manage hooks

View configured lifecycle hooks, trust changes, or disable non-managed hooks.

LLM Mart Read more 41 listing impressions

Create a command

Please sign in to add a command.