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

Cmd. /logout

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

Key takeaways

  • Sign out of Codex and clear local credentials for the current user.
  • Check the input surface and availability before using the examples below.

Purpose

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

/logout

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

/logout

When to use it

  1. Run /logout before handing a workstation to another user.
  2. Use it during auth troubleshooting before logging in again.

Choosing related commands

CommandDifferenceChoose It When
/logoutClears the Codex login sessionYou need to change or remove credentials
/statusShows current session stateYou need to confirm auth and policy state
codex loginStarts login from the shellYou need to authenticate again

Effects and persistence

Signs out of the current account; later authenticated operations require sign-in again.

/logout signs out of Codex. Use it when rotating accounts or leaving a shared machine.

Cautions

  • Log out only after confirming no long-running work depends on the current account.
  • Credential storage can differ by platform and configuration.

Official sources

  • Developer Commands
  • Cli

Complete command list · Verification scope · History for this command

Related docs

Cmd. /web-setup

Claude Code Command Master · Connect Claude Code web using local gh credentials.

Terminal CLI Commands and Options

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

Cmd. /diff

Review current Git changes from inside Codex.

Cmd. /upgrade

Claude Code Command Master · Opens the billing flow for moving to a higher plan.

Cmd. /run-skill-generator

Claude Code Command Master · Generate project-specific /run and /verify skills.

Cmd. /exit

Exit the Codex CLI session; equivalent to /quit.

Cmd. /quit

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

On this page

PurposeAvailabilityExamplesWhen to use itChoosing related commandsEffects and persistenceCautionsOfficial sources