Complete command list
Syntax, type, availability, and guide links for all 50 entries in the official Codex CLI slash table.
Key takeaways
- Reviewed 2026-09-22 against Codex CLI 0.155.1. The 50 official rows can include aliases and removed entries; this is not a count of universally runnable commands.
- Use these commands inside the running CLI. Shell commands and flags are in the terminal CLI reference.
Reading the labels · Terminal CLI reference
Official slash table
| Command / syntax | Kind · status | Purpose and availability | Details |
|---|---|---|---|
/permissions | Built-in · Current reference | Change Codex approval and permission policy during a session. | Guide |
/ide | Built-in · Current reference | Include open files, selections, and IDE context in the next prompt. | Guide |
/keymap | Built-in · Current reference | Inspect and remap TUI keyboard shortcuts. | Guide |
/vim | Built-in · Current reference | Toggle Vim mode for the Codex TUI composer. | Guide |
/setup-default-sandbox | Built-in · Conditional | Set up the elevated Windows agent sandbox when Codex is running in degraded restricted-token mode. Native Windows only; distinguish this from Linux sandboxing under WSL. | Guide |
/sandbox-add-read-dir | Built-in · Conditional | Grant sandbox read access to an additional absolute directory path. Native Windows only; distinguish this from Linux sandboxing under WSL. | Guide |
/agent, /subagents | Built-in · Current reference | Switch between spawned Codex subagent threads to inspect each agent transcript, status, model, and reasoning effort before merging their work. | Guide |
/apps | Built-in · Current reference | Browse apps and connectors, then insert app mentions into the prompt. | Guide |
/plugins | Built-in · Current reference | Browse installed and discoverable Codex plugins. | Guide |
/hooks | Built-in · Current reference | Review lifecycle hooks and manage trust or disabled state. | Guide |
/clear | Built-in · Current reference | Clear the terminal and current chat context, then start a fresh Codex chat. | Guide |
/rename | Built-in · Current reference | Rename the current saved Codex chat without changing its transcript or execution state. | Guide |
/archive | Built-in · Current reference | Archive a completed or abandoned Codex session. | Guide |
/delete | Built-in · Current reference | Permanently delete the current Codex session transcript and spawned descendant sessions. | Guide |
/compact | Built-in · Current reference | Summarize a long conversation to free context. | Guide |
/copy | Built-in · Current reference | Pick a whole Codex response, code block, or blockquote and copy it as Markdown. | Guide |
/diff | Built-in · Current reference | Review current Git changes from inside Codex. | Guide |
/exit | Built-in · Current reference | Exit the Codex CLI session; equivalent to /quit. | Guide |
/experimental | Built-in · Current reference | Toggle experimental Codex features from the TUI. | Guide |
/approve | Built-in · Current reference | Approve one retry of a recent auto-review denial. | Guide |
/memories | Built-in · Current reference | Configure memory use and generation for Codex sessions. | Guide |
/skills | Built-in · Current reference | Browse and apply local skills for task-specific behavior. | Guide |
/import | Built-in · Conditional | Import supported Claude Code setup, project files, and recent chats into Codex. Use in a local TUI session. Unavailable while a task is running, in a remote session, or when connected to a local app-server daemon. | Guide |
/feedback | Built-in · Current reference | Send feedback and diagnostics to Codex maintainers. | Guide |
/init | Built-in · Current reference | Generate an AGENTS.md scaffold for persistent repository instructions. | Guide |
/logout | Built-in · Current reference | Sign out of Codex and clear local credentials for the current user. | Guide |
/mcp | Built-in · Current reference | List configured MCP tools and inspect server diagnostics. | Guide |
/mention | Built-in · Current reference | Attach a file or path to the conversation. | Guide |
/model | Built-in · Current reference | Switch among GPT-6 Astra, GPT-5.6 Sol, Terra, Luna, and supported reasoning effort levels. | Guide |
/fast | Built-in · Conditional | Turn Fast mode on or off, or report its status, to change the service tier without changing reasoning effort. Requires Fast support in the model catalog; check credit usage for the selected service tier. | Guide |
/plan | Built-in · Current reference | Switch to plan mode and optionally send a planning prompt. | Guide |
/goal | Built-in · Current reference | Set, inspect, pause, resume, or clear a persistent long-running task goal. | Guide |
/personality | Built-in · Conditional | Choose the response communication style for the current Codex thread. Requires a model supporting personality settings; use the picker for friendly, pragmatic, or none. | Guide |
/ps | Built-in · Current reference | Show background terminals and recent output. | Guide |
/stop | Built-in · Current reference | Stop all background terminals owned by the current Codex session. | Guide |
/fork | Built-in · Current reference | Branch the current conversation into a new thread. | Guide |
/app | Built-in · Conditional | Hand off the current CLI thread to Codex Desktop. Session handoff is available for supported macOS and Windows apps. | Guide |
/side, /btw | Built-in · Current reference | Start an ephemeral side conversation from the current thread. | Guide |
/raw | Built-in · Current reference | Toggle raw scrollback mode for easier terminal selection and copying. | Guide |
/resume | Built-in · Current reference | Reopen the saved-session picker to continue earlier Codex work across interruptions, remote app-server sessions, and large multi-thread task histories. | Guide |
/new | Built-in · Current reference | Start a new conversation inside the current CLI session. | Guide |
/quit | Built-in · Current reference | Exit the Codex CLI session cleanly, with /exit as the equivalent alias, after reviewing the diff and stopping background terminals. | Guide |
/review | Built-in · Current reference | Ask Codex to review the current working tree. | Guide |
/status | Built-in · Current reference | Inspect session configuration, token usage, model, and policy. | Guide |
/usage | Built-in · Current reference | View Codex account token usage and apply available rate-limit resets. | Guide |
/debug-config | Built-in · Current reference | Inspect Codex config layers, policy sources, and requirements diagnostics. | Guide |
/statusline | Built-in · Current reference | Configure TUI footer status-line fields. | Guide |
/title | Built-in · Current reference | Configure terminal window or tab title fields. | Guide |
/theme | Built-in · Current reference | Choose and persist the TUI syntax-highlighting theme. | Guide |
/pets, /pet | Built-in · Current reference | Choose or hide an ambient terminal pet in the Codex TUI. | Guide |
Release additions, aliases, and older commands
These entries track evidence outside the official table and names from older documents. For removed or renamed entries, use the current replacement in the guide.
| Command | Kind · status | Current guidance |
|---|---|---|
/approvals | Alias · Renamed | Legacy alias for the /permissions command. |
/cd <path> | Built-in · Release-tracked | Track the 0.149.0 working-directory commands and verify their live behavior in the installed slash-command help. |
/export | Built-in · Release-tracked | Export the complete TUI conversation as Markdown to the clipboard or a new file. |
/recap | Built-in · Release-tracked | Manual task recaps and the automatic recap setting |
/voice | Built-in · Experimental | Experimental voice conversations and live transcripts on supported builds |
/worktree | Built-in · Experimental | Run new or forked sessions in isolated Git checkouts |