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›Cmd. /exit
한국어English

Cmd. /exit

Exit the Codex CLI session; equivalent to /quit.

Key takeaways

  • Exit the Codex CLI session; equivalent to /quit.
  • Check the input surface and availability before using the examples below.

Purpose

Exit the Codex CLI session; equivalent to /quit.

/exit

Availability

FieldValue
Input surfaceRunning CLI prompt
KindBuilt-in
StatusCurrent reference
Aliases—
Documented minimumNot specified
Reviewed against2026-09-22 · Codex CLI 0.155.1

The installed command menu and account or organization settings determine availability.

Examples

/exit

When to use it

  1. Run /diff or /status before exiting a session with meaningful local changes.
  2. Use /exit when your team prefers explicit shell-like naming over /quit.

Choosing related commands

CommandDifferenceChoose It When
/exitExits the CLIYou prefer the shell-style spelling
/quitExits the CLIYou use the primary slash command name
/newStarts a new conversationYou want to stay in the CLI

Effects and persistence

Exits the CLI conversation. Choose a saved session through resume to continue later.

/exit exits the CLI. It is the alternative spelling of /quit.

Cautions

  • Save, commit, or intentionally discard important work before exiting.
  • /exit does not replace process cleanup for externally started commands.

Official sources

  • Developer Commands
  • Cli

Complete command list · Verification scope · History for this command

Related docs

Cmd. /quit

Exit the Codex CLI session cleanly, with /exit as the equivalent alias, after reviewing the diff and stopping background terminals.

Cmd. /new

Start a new conversation inside the current CLI session.

Cmd. /resume

Claude Code Command Master · Resume by ID, name, or picker (/continue).

Cmd. /export

Claude Code Command Master · Copy or save the current conversation as plain text.

Cmd. /rename

Claude Code Command Master · Changes the current session's name while retaining its conversation.

Cmd. /worktree

Run new or forked sessions in isolated Git checkouts

Cmd. /logout

Sign out of Codex and clear local credentials for the current user.

On this page

PurposeAvailabilityExamplesWhen to use itChoosing related commandsEffects and persistenceCautionsOfficial sources