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. /quit
한국어English

Cmd. /quit

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

Key takeaways

  • Exit the Codex CLI session cleanly, with /exit as the equivalent alias, after reviewing the diff and stopping background terminals.
  • Check the input surface and availability before using the examples below.

Purpose

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

/quit

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

/quit

When to use it

  1. Use /quit after reviewing /diff and cleaning background terminals with /ps and /stop.
  2. Use /resume later if you need to return to saved work.

Choosing related commands

CommandDifferenceChoose It When
/quitExits the CLIYou are done with the session
/exitSame behaviorYou prefer the alternate spelling
/newStarts a new chatYou want to stay in the CLI

Effects and persistence

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

/quit exits Codex CLI. /exit is equivalent.

Cautions

  • Save, commit, or intentionally leave changes before exiting.
  • Use /stop first if Codex-owned background terminals should not continue.

Official sources

  • Developer Commands
  • Cli

Complete command list · Verification scope · History for this command

Related docs

Cmd. /exit

Exit the Codex CLI session; equivalent to /quit.

Cmd. /ps

Show background terminals and recent output.

Cmd. /tasks

Claude Code Command Master · Manage current-session background work (/bashes).

Cmd. /background

Claude Code Command Master · Detach the current session as a background agent (/bg).

Cmd. /resume

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

Cmd. /logout

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

Cmd. /usage

View Codex account token usage and apply available rate-limit resets.

On this page

PurposeAvailabilityExamplesWhen to use itChoosing related commandsEffects and persistenceCautionsOfficial sources