Codex CLI commands
Handy Codex CLI commands, kept current by the community. Add one you rely on.
/usage
Account usage
View token activity or use an available earned rate-limit reset.
/copy
Copy latest output
Copy the latest completed Codex response to the clipboard.
/status
Session status
Inspect the active model, approval policy, writable roots, and token usage.
/model
Select model
Choose the active model and, when available, its reasoning effort.
/compact
Compact transcript
Summarize earlier conversation turns to free context while preserving key details.
/review
Review working tree
Ask Codex to review the current working tree, focusing on behavior changes and missing tests.
/mention
Mention a file
Attach a file or folder to the conversation so follow-up turns use it directly.
/delete
Delete session
Permanently delete the current session transcript and exit Codex.
/mcp
List MCP tools
Show configured Model Context Protocol tools available in the session.
/archive
Archive session
Archive the current session and exit Codex without deleting its transcript.
/new
New conversation
Start a new conversation in the same CLI session without leaving the terminal.
/clear
Clear and start fresh
Clear the terminal and start a fresh chat in the same CLI session.
/resume
Resume session
Reload a saved conversation from the session picker.
/init
Initialize AGENTS.md
Generate an AGENTS.md scaffold in the current directory for persistent repo instructions.
/hooks
Manage hooks
View configured lifecycle hooks, trust changes, or disable non-managed hooks.
/raw
Raw scrollback
Toggle raw scrollback mode to make terminal copying and selection less formatted.
/feedback
Send feedback
Collect logs or diagnostics and send feedback to the Codex maintainers.
/plugins
Browse plugins
Inspect installed and discoverable plugins, or manage plugin availability.
/side
Side conversation
Open an ephemeral side conversation; /btw is an alias for the same workflow.
/import
Import external setup
Import supported Claude Code setup, project files, or recent chats into Codex.
/apps
Browse apps
Browse available apps and insert an app mention into the prompt.
Create a command
Please sign in to add a command.