/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.
What it is
Exit the CLI. In an attached [background session](/docs/en/agent-view#attach-to-a-session), this detaches and the session keeps running. Alias: /quit
Anthropic's own wording. Read off Commands, captured 2026-08-28.
Presence across releases
The 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.
Changelog entries naming it
-
v2.1.229Slash 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
Documentation pages
- Commands reference table Claude Code CLI
- Manage multiple agents with agent view mentions it Claude Code CLI
- Claude Code changelog mentions it Claude Code CLI
- Fullscreen rendering mentions it Claude Code CLI
- Quickstart mentions it Claude Code CLI
- Continue local sessions from any device with Remote Control mentions it Claude Code CLI
- Tools reference mentions it Claude Code CLI
- Logging mentions it Model Context Protocol
- Logging mentions it Model Context Protocol
- Logging mentions it Model Context Protocol
- Logging mentions it Model Context Protocol
- Logging mentions it Model Context Protocol
- Logging mentions it Model Context Protocol
A reference table page is one whose own table defines this name, and it is where the description above came from. A page that mentions it carries the name somewhere in its text and may say nothing about it at all. Every page carrying it.
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.