Skip to main content
reopt Handbook
reopt Handbook
Codex Command MasterLabels and command selectionHow to read a detail guideComplete command listTerminal CLI Commands and Options

Task guides

Core Command GroupSession Command GroupCustom Command GuideMCP Command and Integration GuideDesign Workflows

Conversation and context

Cmd. /clearCmd. /renameCmd. /archiveCmd. /deleteCmd. /compactCmd. /copyCmd. /memoriesCmd. /importCmd. /initCmd. /mentionCmd. /forkCmd. /sideCmd. /resumeCmd. /newCmd. /cdCmd. /exportCmd. /recap

Planning and execution

Cmd. /planCmd. /goalCmd. /psCmd. /stopCmd. /app

Review and verification

Cmd. /review

Models and settings

Cmd. /modelCmd. /fast

Permissions and integrations

Cmd. /permissionsCmd. /ideCmd. /setup-default-sandboxCmd. /sandbox-add-read-dirCmd. /pluginsCmd. /hooksCmd. /approveCmd. /skillsCmd. /mcp

Status and diagnostics

Cmd. /agentCmd. /appsCmd. /diffCmd. /feedbackCmd. /personalityCmd. /rawCmd. /statusCmd. /debug-configCmd. /title

Display and input

Cmd. /keymapCmd. /vimCmd. /experimentalCmd. /statuslineCmd. /themeCmd. /petsCmd. /voiceCmd. /worktree

Account and usage

Cmd. /exitCmd. /logoutCmd. /quitCmd. /usage

Legacy

Cmd. /approvals

Verification and history

Current verification scopeHandbook updatesRelease coverage historyEarlier verification recordsCommand change history
Handbook›Codex Command Master›Complete command list
한국어English

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 / syntaxKind · statusPurpose and availabilityDetails
/permissionsBuilt-in · Current referenceChange Codex approval and permission policy during a session.Guide
/ideBuilt-in · Current referenceInclude open files, selections, and IDE context in the next prompt.Guide
/keymapBuilt-in · Current referenceInspect and remap TUI keyboard shortcuts.Guide
/vimBuilt-in · Current referenceToggle Vim mode for the Codex TUI composer.Guide
/setup-default-sandboxBuilt-in · ConditionalSet 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-dirBuilt-in · ConditionalGrant sandbox read access to an additional absolute directory path. Native Windows only; distinguish this from Linux sandboxing under WSL.Guide
/agent, /subagentsBuilt-in · Current referenceSwitch between spawned Codex subagent threads to inspect each agent transcript, status, model, and reasoning effort before merging their work.Guide
/appsBuilt-in · Current referenceBrowse apps and connectors, then insert app mentions into the prompt.Guide
/pluginsBuilt-in · Current referenceBrowse installed and discoverable Codex plugins.Guide
/hooksBuilt-in · Current referenceReview lifecycle hooks and manage trust or disabled state.Guide
/clearBuilt-in · Current referenceClear the terminal and current chat context, then start a fresh Codex chat.Guide
/renameBuilt-in · Current referenceRename the current saved Codex chat without changing its transcript or execution state.Guide
/archiveBuilt-in · Current referenceArchive a completed or abandoned Codex session.Guide
/deleteBuilt-in · Current referencePermanently delete the current Codex session transcript and spawned descendant sessions.Guide
/compactBuilt-in · Current referenceSummarize a long conversation to free context.Guide
/copyBuilt-in · Current referencePick a whole Codex response, code block, or blockquote and copy it as Markdown.Guide
/diffBuilt-in · Current referenceReview current Git changes from inside Codex.Guide
/exitBuilt-in · Current referenceExit the Codex CLI session; equivalent to /quit.Guide
/experimentalBuilt-in · Current referenceToggle experimental Codex features from the TUI.Guide
/approveBuilt-in · Current referenceApprove one retry of a recent auto-review denial.Guide
/memoriesBuilt-in · Current referenceConfigure memory use and generation for Codex sessions.Guide
/skillsBuilt-in · Current referenceBrowse and apply local skills for task-specific behavior.Guide
/importBuilt-in · ConditionalImport 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
/feedbackBuilt-in · Current referenceSend feedback and diagnostics to Codex maintainers.Guide
/initBuilt-in · Current referenceGenerate an AGENTS.md scaffold for persistent repository instructions.Guide
/logoutBuilt-in · Current referenceSign out of Codex and clear local credentials for the current user.Guide
/mcpBuilt-in · Current referenceList configured MCP tools and inspect server diagnostics.Guide
/mentionBuilt-in · Current referenceAttach a file or path to the conversation.Guide
/modelBuilt-in · Current referenceSwitch among GPT-6 Astra, GPT-5.6 Sol, Terra, Luna, and supported reasoning effort levels.Guide
/fastBuilt-in · ConditionalTurn 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
/planBuilt-in · Current referenceSwitch to plan mode and optionally send a planning prompt.Guide
/goalBuilt-in · Current referenceSet, inspect, pause, resume, or clear a persistent long-running task goal.Guide
/personalityBuilt-in · ConditionalChoose the response communication style for the current Codex thread. Requires a model supporting personality settings; use the picker for friendly, pragmatic, or none.Guide
/psBuilt-in · Current referenceShow background terminals and recent output.Guide
/stopBuilt-in · Current referenceStop all background terminals owned by the current Codex session.Guide
/forkBuilt-in · Current referenceBranch the current conversation into a new thread.Guide
/appBuilt-in · ConditionalHand off the current CLI thread to Codex Desktop. Session handoff is available for supported macOS and Windows apps.Guide
/side, /btwBuilt-in · Current referenceStart an ephemeral side conversation from the current thread.Guide
/rawBuilt-in · Current referenceToggle raw scrollback mode for easier terminal selection and copying.Guide
/resumeBuilt-in · Current referenceReopen the saved-session picker to continue earlier Codex work across interruptions, remote app-server sessions, and large multi-thread task histories.Guide
/newBuilt-in · Current referenceStart a new conversation inside the current CLI session.Guide
/quitBuilt-in · Current referenceExit the Codex CLI session cleanly, with /exit as the equivalent alias, after reviewing the diff and stopping background terminals.Guide
/reviewBuilt-in · Current referenceAsk Codex to review the current working tree.Guide
/statusBuilt-in · Current referenceInspect session configuration, token usage, model, and policy.Guide
/usageBuilt-in · Current referenceView Codex account token usage and apply available rate-limit resets.Guide
/debug-configBuilt-in · Current referenceInspect Codex config layers, policy sources, and requirements diagnostics.Guide
/statuslineBuilt-in · Current referenceConfigure TUI footer status-line fields.Guide
/titleBuilt-in · Current referenceConfigure terminal window or tab title fields.Guide
/themeBuilt-in · Current referenceChoose and persist the TUI syntax-highlighting theme.Guide
/pets, /petBuilt-in · Current referenceChoose 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.

CommandKind · statusCurrent guidance
/approvalsAlias · RenamedLegacy alias for the /permissions command.
/cd <path>Built-in · Release-trackedTrack the 0.149.0 working-directory commands and verify their live behavior in the installed slash-command help.
/exportBuilt-in · Release-trackedExport the complete TUI conversation as Markdown to the clipboard or a new file.
/recapBuilt-in · Release-trackedManual task recaps and the automatic recap setting
/voiceBuilt-in · ExperimentalExperimental voice conversations and live transcripts on supported builds
/worktreeBuilt-in · ExperimentalRun new or forked sessions in isolated Git checkouts

Official sources

  • Codex CLI command reference
  • Changelog

Related docs

Complete command list

Claude Code Command Master · Syntax, type, availability, and guide links for all 114 entries in the official Claude Code slash table.

Cmd. /team-onboarding

Claude Code Command Master · Generate a team guide from 30 days of usage.

Command change history

Codex CLI: Earlier command-version evidence and behavior changes, with links back to current detail guides.

Terminal CLI Commands and Options

All 27 official Codex CLI command entries, global and command-specific option tables, and release additions

MCP connections and commands

Claude Code Command Master · Choose the commands for mcp connections and commands and follow their availability rules and concrete examples.

How to read a detail guide

Codex CLI: Read detail guides in order: availability, concrete examples, persistence, and official evidence.

Terminal CLI Commands and Options

All 27 official Codex CLI command entries, global and command-specific option tables, and release additions

On this page

Official slash tableRelease additions, aliases, and older commandsOfficial sources