Command Overview
Categorize Codex slash commands by role and choose the right command for the job.
Key takeaways
- Codex slash commands fall into five roles: session operations, execution control, safety and permissions, extensions and integrations, and personalization and environment.
- Core command groups teach the everyday commands, while individual pages go deeper on high-value commands teams want to standardize.
- The 2026-06-12 baseline tracks the 0.139.0 release plus deltas like code-mode web search, plugin JSON automation, and session archiving.
/vim,/skills,/theme,/raw,/ide,/approve,/memories, and/archiveare now covered as standard commands per the official slash table.
Command Categories
- Session operations:
/status,/clear,/copy,/new,/resume,/archive,/quit,/stop,/raw - Execution control:
/model,/fast,/plan,/goal,/review,/diff,/compact,/side,/approve - Safety and permissions:
/permissions,/sandbox-add-read-dir,/approvalsalias - Extensions and integrations:
/mcp,/app,/apps,/plugins,/hooks,/agent,/ide,/skills - Personalization and environment:
/personality,/title,/theme,/statusline,/keymap,/vim,/debug-config,/logout,/memories
Groups vs. Individual Pages
- Core groups teach the commands most users run every day.
- Individual pages go deeper on high-value commands teams may want to standardize.
Current Baseline (2026-06-12 KST)
| Change | Commands | Impact |
|---|---|---|
| Current CLI baseline | codex plugin marketplace, codex debug app-server, codex app-server | Tracks the 0.139.0 latest release and the 0.138.0~0.139.0 operational deltas. |
| Code mode and MCP compatibility | codex exec, /mcp, /plugins | Covers code-mode standalone web search, MCP input schema preservation for oneOf/allOf, and better large-schema compaction. |
| Diagnostics reporting | codex doctor, /debug-config | Adds editor/pager environment reporting, JSON raw-value redaction, and effective sandbox-mode checks. |
| Desktop handoff | /app, codex app | Hand the current CLI thread into Codex Desktop on macOS or native Windows. |
| Plugin JSON automation | /plugins | Covers plugin add/remove JSON, list --available --json, marketplace source fields, and marketplace install/upgrade. |
| App-server and debug recovery | /status, /debug-config | Covers account token usage, ChatGPT v2 access tokens, and the restored send-message-v2 debug command. |
| Image paths and reasoning UX | /model, /app, /apps | Covers image file-path exposure, reasoning-effort fallback shortcuts, and model-advertised effort ordering. |
| Sandbox and state stability | /debug-config, /permissions, /resume, /fork | Covers codex sandbox -P, network proxy enforcement, resume/fork --last prompt handling, scoped MCP startup warnings, and cloud-managed requirement preservation. |
| Session archiving | /archive, codex archive, codex unarchive | Archive completed or abandoned sessions and protect them from resume/fork until restored. |
| Permission profile maturity | /permissions, --profile | Covers named permission profiles, custom-profile picker display, and profile-file migration. |
| App-server and remote control | /status, remote-control | Covers remote /status, pairing/grant RPCs, and app-server archive events. |
| Plugin inventory automation | /plugins | Adds codex plugin list --json and remote catalog suggestions. |
| Model policy re-check | /model | Removes deprecated gpt-5.3-codex from new standards and separates Cloud task model policy. |
| Expanded official inventory | /approve, /ide, /memories, /raw, /skills, /theme, /vim | Added individual pages after the 2026-05-21 official slash table re-check. |
| Persistent goals | /goal | Track a long-running objective and pause, resume, or clear it. |
| TUI keymap | /keymap | Inspect shortcut contexts/actions and persist custom bindings. |
| Side conversations | /side | Ask a focused side question without disrupting the parent thread. |
| Background terminal cleanup | /ps, /stop | Inspect and stop background terminals owned by the session. |
| Hooks GA | /hooks | Review hook sources, trust changes, and disable non-managed hooks. |
| Plugin workflow expansion | /plugins, /apps | Manage plugin inventory, marketplace sources, sharing, and app mentions. |
| MCP diagnostics | /mcp | Use verbose for server-level diagnostics. |
| Reasoning/model switching | /model | Switch model and reasoning where supported; use Alt+, for quick effort changes. |
| Footer/title customization | /statusline, /title | Persist visible status, thread, branch, model, and progress fields. |
| Composer/input customization | /vim, /theme, /raw | Configure editing mode, syntax highlighting, and copy-friendly scrollback. |
2026-06-12 Re-check
/vim, /skills, /theme, /raw, /ide, /approve, and /memories are now covered as standard
commands because they appear in the current official slash command table. As of the 2026-06-12
re-check, /archive is also listed in the official slash table. /app is covered as a release-tracked
command from 0.138.0, but it is not yet a separate row in the official slash table.
Operating Principles
- Every advanced command page includes the original syntax, practical examples, nearby commands, and sources.
- Environment differences such as CLI, IDE, macOS, Windows, and remote app-server flows are called out where they matter.
- When Codex changes, update
updatesandverificationtogether.