86 86
87## Built-in commands87## Built-in commands
88 88
89Built-in commands are shortcuts for common actions. The table below covers commonly used commands but not all available options. Type `/` in Claude Code to see the full list, or type `/` followed by any letters to filter.89Type `/` in Claude Code to see all available commands, or type `/` followed by any letters to filter. Not all commands are visible to every user. Some depend on your platform, plan, or environment. For example, `/desktop` only appears on macOS and Windows, `/upgrade` and `/privacy-settings` are only available on Pro and Max plans, and `/terminal-setup` is hidden when your terminal natively supports its keybindings.
90 90
91To create your own commands you can invoke with `/`, see [skills](/en/skills).91Claude Code also ships with [bundled skills](/en/skills#bundled-skills) like `/simplify`, `/batch`, and `/debug` that appear alongside built-in commands when you type `/`. To create your own commands, see [skills](/en/skills).
92
93In the table below, `<arg>` indicates a required argument and `[arg]` indicates an optional one.
92 94
93| Command | Purpose |95| Command | Purpose |
94| :------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |96| :------------------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
95| `/clear` | Clear conversation history |97| `/add-dir <path>` | Add a new working directory to the current session |
98| `/agents` | Manage [agent](/en/sub-agents) configurations |
99| `/chrome` | Configure [Claude in Chrome](/en/chrome) settings |
100| `/clear` | Clear conversation history and free up context. Aliases: `/reset`, `/new` |
96| `/compact [instructions]` | Compact conversation with optional focus instructions |101| `/compact [instructions]` | Compact conversation with optional focus instructions |
97| `/config` | Open the Settings interface (Config tab) |102| `/config` | Open the [Settings](/en/settings) interface (Config tab). Alias: `/settings` |
98| `/context` | Visualize current context usage as a colored grid |103| `/context` | Visualize current context usage as a colored grid |
99| `/cost` | Show token usage statistics. See [cost tracking guide](/en/costs#using-the-cost-command) for subscription-specific details. |104| `/copy` | Copy the last assistant response to clipboard. When code blocks are present, shows an interactive picker to select individual blocks or the full response |
100| `/debug [description]` | Troubleshoot the current session by reading the session debug log. Optionally describe the issue |105| `/cost` | Show token usage statistics. See [cost tracking guide](/en/costs#using-the-cost-command) for subscription-specific details |
101| `/doctor` | Checks the health of your Claude Code installation |106| `/desktop` | Continue the current session in the Claude Code Desktop app. macOS and Windows only. Alias: `/app` |
102| `/exit` | Exit the REPL |107| `/diff` | Open an interactive diff viewer showing uncommitted changes and per-turn diffs. Use left/right arrows to switch between the current git diff and individual Claude turns, and up/down to browse files |
103| `/export [filename]` | Export the current conversation to a file or clipboard |108| `/doctor` | Diagnose and verify your Claude Code installation and settings |
104| `/help` | Get usage help |109| `/exit` | Exit the CLI. Alias: `/quit` |
110| `/export [filename]` | Export the current conversation as plain text. With a filename, writes directly to that file. Without, opens a dialog to copy to clipboard or save to a file |
111| `/extra-usage` | Configure extra usage to keep working when rate limits are hit |
112| `/fast [on\|off]` | Toggle [fast mode](/en/fast-mode) on or off |
113| `/feedback [report]` | Submit feedback about Claude Code. Alias: `/bug` |
114| `/fork [name]` | Create a fork of the current conversation at this point |
115| `/help` | Show help and available commands |
116| `/hooks` | Manage [hook](/en/hooks) configurations for tool events |
117| `/ide` | Manage IDE integrations and show status |
105| `/init` | Initialize project with `CLAUDE.md` guide |118| `/init` | Initialize project with `CLAUDE.md` guide |
119| `/insights` | Generate a report analyzing your Claude Code sessions, including project areas, interaction patterns, and friction points |
120| `/install-github-app` | Set up the [Claude GitHub Actions](/en/github-actions) app for a repository. Walks you through selecting a repo and configuring the integration |
121| `/install-slack-app` | Install the Claude Slack app. Opens a browser to complete the OAuth flow |
122| `/keybindings` | Open or create your keybindings configuration file |
123| `/login` | Sign in to your Anthropic account |
124| `/logout` | Sign out from your Anthropic account |
106| `/mcp` | Manage MCP server connections and OAuth authentication |125| `/mcp` | Manage MCP server connections and OAuth authentication |
107| `/memory` | Edit `CLAUDE.md` memory files |126| `/memory` | Edit `CLAUDE.md` memory files, enable or disable [auto-memory](/en/memory#auto-memory), and view auto-memory entries |
108| `/model` | Select or change the AI model. With Opus 4.6, use left/right arrows to [adjust effort level](/en/model-config#adjust-effort-level). The change takes effect immediately without waiting for the current response to finish |127| `/mobile` | Show QR code to download the Claude mobile app. Aliases: `/ios`, `/android` |
109| `/permissions` | View or update [permissions](/en/permissions#manage-permissions) |128| `/model [model]` | Select or change the AI model. For models that support it, use left/right arrows to [adjust effort level](/en/model-config#adjust-effort-level). The change takes effect immediately without waiting for the current response to finish |
129| `/output-style [style]` | Switch between [output styles](/en/output-styles). **Default** is standard behavior, **Explanatory** adds educational insights about implementation choices and codebase patterns, and **Learning** pauses to ask you to write small code pieces for hands-on practice. You can also [create custom output styles](/en/output-styles#create-a-custom-output-style) |
130| `/passes` | Share a free week of Claude Code with friends. Only visible if your account is eligible |
131| `/permissions` | View or update [permissions](/en/permissions#manage-permissions). Alias: `/allowed-tools` |
110| `/plan` | Enter plan mode directly from the prompt |132| `/plan` | Enter plan mode directly from the prompt |
111| `/rename [name]` | Rename the current session. Without a name, generates one from conversation history (requires at least one message in the conversation context). |133| `/plugin` | Manage Claude Code [plugins](/en/plugins) |
112| `/resume [session]` | Resume a conversation by ID or name, or open the session picker |134| `/pr-comments [PR]` | Fetch and display comments from a GitHub pull request. Automatically detects the PR for the current branch, or pass a PR URL or number. Requires the `gh` CLI |
113| `/rewind` | Rewind the conversation and/or code, or summarize from a selected message |135| `/privacy-settings` | View and update your privacy settings. Only available for Pro and Max plan subscribers |
136| `/release-notes` | View the full changelog, with the most recent version closest to your prompt |
137| `/remote-control` | Make this session available for [remote control](/en/remote-control) from claude.ai. Alias: `/rc` |
138| `/remote-env` | Configure the default remote environment for [teleport sessions](/en/claude-code-on-the-web#teleport-a-web-session-to-your-terminal) |
139| `/rename [name]` | Rename the current session. Without a name, auto-generates one from conversation history |
140| `/resume [session]` | Resume a conversation by ID or name, or open the session picker. Alias: `/continue` |
141| `/review` | Review a pull request for code quality, correctness, security, and test coverage. Pass a PR number, or omit to list open PRs. Requires the `gh` CLI |
142| `/rewind` | Rewind the conversation and/or code to a previous point, or summarize from a selected message. See [checkpointing](/en/checkpointing). Alias: `/checkpoint` |
143| `/sandbox` | Toggle [sandbox mode](/en/sandboxing). Available on supported platforms only |
144| `/security-review` | Analyze pending changes on the current branch for security vulnerabilities. Reviews the git diff and identifies risks like injection, auth issues, and data exposure |
145| `/skills` | List available [skills](/en/skills) |
114| `/stats` | Visualize daily usage, session history, streaks, and model preferences |146| `/stats` | Visualize daily usage, session history, streaks, and model preferences |
115| `/status` | Open the Settings interface (Status tab) showing version, model, account, and connectivity |147| `/status` | Open the Settings interface (Status tab) showing version, model, account, and connectivity |
116| `/statusline` | Set up Claude Code's status line UI |148| `/statusline` | Configure Claude Code's [status line](/en/statusline). Describe what you want, or run without arguments to auto-configure from your shell prompt |
117| `/copy` | Copy the last response to clipboard. When code blocks are present, shows an interactive picker to select individual code blocks or the full response. Select **Always copy full response** in the picker to skip it in future sessions; revert by setting `copyFullResponse` to `false` in `/config` |149| `/stickers` | Order Claude Code stickers |
118| `/tasks` | List and manage background tasks |150| `/tasks` | List and manage background tasks |
119| `/teleport` | Resume a remote session from claude.ai (subscribers only) |151| `/terminal-setup` | Configure terminal keybindings for Shift+Enter and other shortcuts. Only visible in terminals that need it, like VS Code, Alacritty, or Warp |
120| `/desktop` | Hand off the current CLI session to the Claude Code Desktop app (macOS and Windows only) |152| `/theme` | Change the color theme. Includes light and dark variants, colorblind-accessible (daltonized) themes, and ANSI themes that use your terminal's color palette |
121| `/theme` | Change the color theme |153| `/upgrade` | Open the upgrade page to switch to a higher plan tier |
122| `/todos` | List current TODO items |154| `/usage` | Show plan usage limits and rate limit status |
123| `/usage` | For subscription plans only: show plan usage limits and rate limit status |155| `/vim` | Toggle between Vim and Normal editing modes |
124 156
125### MCP prompts157### MCP prompts
126 158