Codex CLI commands
Handy Codex CLI commands, kept current by the community. Add one you rely on.
/mention
Mention a file
Attach a file or folder to the conversation so follow-up turns use it directly.
/debug-config
Debug config
Print config-layer diagnostics and active policy requirements.
/skills
Skills browser
Browse available local skills and inject one into the current task.
/resume
Resume session
Reload a saved conversation from the session picker.
/copy
Copy latest output
Copy the latest completed Codex response to the clipboard.
/personality
Communication style
Switch Codex's communication style, such as friendly, pragmatic, or none.
/plugins
Browse plugins
Inspect installed and discoverable plugins, or manage plugin availability.
/mcp
List MCP tools
Show configured Model Context Protocol tools available in the session.
/usage
Account usage
View token activity or use an available earned rate-limit reset.
/ide
Include IDE context
Pull open files, selections, and other editor context into the next prompt.
/memories
Memory settings
Configure whether Codex uses or generates memories for future sessions.
/raw
Raw scrollback
Toggle raw scrollback mode to make terminal copying and selection less formatted.
/compact
Compact transcript
Summarize earlier conversation turns to free context while preserving key details.
/apps
Browse apps
Browse available apps and insert an app mention into the prompt.
/status
Session status
Inspect the active model, approval policy, writable roots, and token usage.
/permissions
Permissions
Adjust what Codex can do without asking first, such as switching between Auto and Read Only approval modes.
/approve
Approve denied action
Retry one recent action that Codex's automatic reviewer denied.
/side
Side conversation
Open an ephemeral side conversation; /btw is an alias for the same workflow.
/delete
Delete session
Permanently delete the current session transcript and exit Codex.
Create a command
Please sign in to add a command.