{"name":"\/exit","slug":"exit","family":"slash","title":"Slash commands","noun":"slash command","description":"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`","description_source":"docs","described_by":{"doc":"claude-code\/commands","title":"Commands"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.309","builds":0,"mined_builds":150,"first_cited":{"version":"2.1.302","released_at":"2026-10-16 16:48:28","spans":1}},"aliases":[],"entries":[{"version":"2.1.307","anchor":"console-profile-cloud-session-refusal-notice-now-uses-a-help","heading":"Console sign-in notice in cloud sessions builds its exit instruction differently","line":"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","released_at":"2026-10-21 20:47:18","reason":"found in this entry's text"},{"version":"2.1.307","anchor":"out-of-credits-message-now-carries-a-reason-code-exit-hint","heading":"Small additions: out-of-credits reason, exit hint, run skill script, Artifact switch","line":"Out-of-credits messages carry a reason, exit hints match your setup, the run skill gains a script, and `CLAUDE_CODE_DISABLE_ARTIFACT` is wired in","released_at":"2026-10-21 20:47:18","reason":"found in this entry's text"},{"version":"2.1.307","anchor":"auto-update-disabled-message-and-login-hint-tweaks","heading":"Expired sign-in message no longer always opens with \"Run \/exit\"","line":"With `DISABLE_LOGIN_COMMAND` set, the expired claude.ai sign-in message now builds its opening sentence instead of always saying \"Run \/exit\"","released_at":"2026-10-21 20:47:18","reason":"found in this entry's text"},{"version":"2.1.305","anchor":"cloud-session-guard-for-slash-commands-only-login-exit-a","heading":"Input is held back with a notice when no cloud session is running","line":"When no cloud session is running, Claude Code can refuse to send or run what you typed and tells you to run \/login","released_at":"2026-10-20 19:29:36","reason":"found in this entry's text"},{"version":"2.1.302","anchor":"resume-refuses-when-the-terminal-is-attached-to-a-remote-se","heading":"\/resume refuses while the terminal is attached to a remote session","line":"In a terminal attached to a remote session, \/resume now explains how to resume a local conversation instead of opening the picker","released_at":"2026-10-16 16:48:28","reason":"found in this entry's text, named in this entry"},{"version":"2.1.302","anchor":"cloud-session-and-refusal-messages-changed","heading":"New and reworded messages for cloud sessions and missing start folders","line":"Claude Code now explains how to open another cloud session and says plainly when a server's start folder no longer exists","released_at":"2026-10-16 16:48:28","reason":"found in this entry's text"},{"version":"2.1.229","anchor":"slash-commands-can-mark-themselves-terminal-only-and-sdk-cli","heading":"Slash commands can mark themselves terminal-only, and SDK clients get the list","line":"Terminal-only commands like \/doctor and \/exit are flagged so non-terminal hosts can hide them.","released_at":"2026-08-12 19:28:48","reason":"named in this entry, found in this entry's text"},{"version":"2.1.207","anchor":"extensions-worktreeconfig-automatically-restored-after-last-","heading":"extensions.worktreeConfig Automatically Restored After Last Worktree Removal","line":null,"released_at":"2026-07-10 22:25:09","reason":"found in this entry's text"},{"version":"1.0.7","anchor":"new-features","heading":"New Features","line":null,"released_at":"2025-05-30 16:29:49","reason":"found in this entry's text"},{"version":"0.2.25","anchor":"exit-command-aliases","heading":"Exit Command Aliases","line":null,"released_at":"2025-02-27 23:08:59","reason":"found in this entry's text"}],"entries_total":10,"docs":[{"source":"claude-code","path":"commands","title":"Commands","documented":true},{"source":"claude-code","path":"agent-view","title":"Manage multiple agents with agent view","documented":false},{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false},{"source":"claude-code","path":"fullscreen","title":"Fullscreen rendering","documented":false},{"source":"claude-code","path":"plugin-evals","title":"Test plugins with evals","documented":false},{"source":"claude-code","path":"quickstart","title":"Quickstart","documented":false},{"source":"claude-code","path":"remote-control","title":"Continue local sessions from any device with Remote Control","documented":false},{"source":"claude-code","path":"tools-reference","title":"Tools reference","documented":false},{"source":"mcp","path":"specification\/2024-11-05\/server\/utilities\/logging","title":"Logging","documented":false},{"source":"mcp","path":"specification\/2025-03-26\/server\/utilities\/logging","title":"Logging","documented":false}],"docs_total":13,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/slash\/exit","family_url":"https:\/\/changelogs.core-directive.com\/reference\/slash.json"}