/exit
A Claude Code slash command, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
Exit the CLI. In an attached background session, this detaches and the session keeps running. Alias: /quit
Anthropic's own wording. Read off Commands, captured 2026-09-28.
In the changelogs
10Releases whose published page names /exit.
-
v2.1.307
Console sign-in notice in cloud sessions builds its exit instruction differently
The notice saying sign-in isn't available in a cloud session started with a Console sign-in now builds its "run /exit" step at runtime
found in this entry's text
-
v2.1.307
Small additions: out-of-credits reason, exit hint, run skill script, Artifact switch
Out-of-credits messages carry a reason, exit hints match your setup, the run skill gains a script, and
CLAUDE_CODE_DISABLE_ARTIFACTis wired infound in this entry's text
-
v2.1.307
Expired sign-in message no longer always opens with "Run /exit"
With
DISABLE_LOGIN_COMMANDset, the expired claude.ai sign-in message now builds its opening sentence instead of always saying "Run /exit"found in this entry's text
-
v2.1.305
Input is held back with a notice when no cloud session is running
When no cloud session is running, Claude Code can refuse to send or run what you typed and tells you to run /login
found in this entry's text
-
v2.1.302
/resume refuses while the terminal is attached to a remote session
In a terminal attached to a remote session, /resume now explains how to resume a local conversation instead of opening the picker
found in this entry's text, named in this entry
-
v2.1.302
New and reworded messages for cloud sessions and missing start folders
Claude Code now explains how to open another cloud session and says plainly when a server's start folder no longer exists
found in this entry's text
-
v2.1.229
Slash commands can mark themselves terminal-only, and SDK clients get the list
Terminal-only commands like /doctor and /exit are flagged so non-terminal hosts can hide them.
named in this entry, found in this entry's text
-
v2.1.207
extensions.worktreeConfig Automatically Restored After Last Worktree Removal
found in this entry's text
-
v1.0.7
New Features
found in this entry's text
-
v0.2.25
Exit Command Aliases
found in this entry's text
First cited
1The earliest release whose published evidence quoted /exit was v2.1.302, 16 Oct 2026. That is the oldest release this project wrote about it, so it is a floor on the name's age and not the release that introduced it. It is not a presence reading: which builds carried the name is the table below.
Presence across releases
0The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the slash command does. All slash commands.