Built-in commands
Complete reference for built-in commands available in Claude Code.
Type / 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.
Claude Code also includes bundled skills like /simplify, /batch, and /debug that appear alongside built-in commands when you type /. To create your own commands, see skills.
In the table below, <arg> indicates a required argument and [arg] indicates an optional one.
| Command | Purpose |
|---|---|
/add-dir <path> |
Add a new working directory to the current session |
/agents |
Manage agent configurations |
/btw <question> |
Ask a quick side question without adding to the conversation |
/chrome |
Configure Claude in Chrome settings |
/clear |
Clear conversation history and free up context. Aliases: /reset, /new |
/color [color|default] |
Set the prompt bar color for the current session. Available colors: red, blue, green, yellow, purple, orange, pink, cyan. Use default to reset |
/compact [instructions] |
Compact conversation with optional focus instructions |
/config |
Open the Settings interface to adjust theme, model, output style, and other preferences. Alias: /settings |
/context |
Visualize current context usage as a colored grid. Shows optimization suggestions for context-heavy tools, memory bloat, and capacity warnings |
/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 |
/cost |
Show token usage statistics. See cost tracking guide for subscription-specific details |
/desktop |
Continue the current session in the Claude Code Desktop app. macOS and Windows only. Alias: /app |
/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 |
/doctor |
Diagnose and verify your Claude Code installation and settings |
/exit |
Exit the CLI. Alias: /quit |
/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 |
/extra-usage |
Configure extra usage to keep working when rate limits are hit |
/fast [on|off] |
Toggle fast mode on or off |
/feedback [report] |
Submit feedback about Claude Code. Alias: /bug |
/fork [name] |
Create a fork of the current conversation at this point |
/help |
Show help and available commands |
/hooks |
Manage hook configurations for tool events |
/ide |
Manage IDE integrations and show status |
/init |
Initialize project with CLAUDE.md guide |
/insights |
Generate a report analyzing your Claude Code sessions, including project areas, interaction patterns, and friction points |
/install-github-app |
Set up the Claude GitHub Actions app for a repository. Walks you through selecting a repo and configuring the integration |
/install-slack-app |
Install the Claude Slack app. Opens a browser to complete the OAuth flow |
/keybindings |
Open or create your keybindings configuration file |
/login |
Sign in to your Anthropic account |
/logout |
Sign out from your Anthropic account |
/mcp |
Manage MCP server connections and OAuth authentication |
/memory |
Edit CLAUDE.md memory files, enable or disable auto-memory, and view auto-memory entries |
/mobile |
Show QR code to download the Claude mobile app. Aliases: /ios, /android |
/model [model] |
Select or change the AI model. For models that support it, use left/right arrows to adjust effort level. The change takes effect immediately without waiting for the current response to finish |
/passes |
Share a free week of Claude Code with friends. Only visible if your account is eligible |
/permissions |
View or update permissions. Alias: /allowed-tools |
/plan |
Enter plan mode directly from the prompt |
/plugin |
Manage Claude Code plugins |
/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 |
/privacy-settings |
View and update your privacy settings. Only available for Pro and Max plan subscribers |
/release-notes |
View the full changelog, with the most recent version closest to your prompt |
/reload-plugins |
Reload all active plugins to apply pending changes without restarting. Reports what was loaded and notes any changes that require a restart |
/remote-control |
Make this session available for remote control from claude.ai. Alias: /rc |
/remote-env |
Configure the default remote environment for web sessions started with --remote |
/rename [name] |
Rename the current session. Without a name, auto-generates one from conversation history |
/resume [session] |
Resume a conversation by ID or name, or open the session picker. Alias: /continue |
/review |
Deprecated. Install the code-review plugin instead: claude plugin install code-review@claude-code-marketplace |
/rewind |
Rewind the conversation and/or code to a previous point, or summarize from a selected message. See checkpointing. Alias: /checkpoint |
/sandbox |
Toggle sandbox mode. Available on supported platforms only |
/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 |
/skills |
List available skills |
/stats |
Visualize daily usage, session history, streaks, and model preferences |
/status |
Open the Settings interface (Status tab) showing version, model, account, and connectivity |
/statusline |
Configure Claude Code's status line. Describe what you want, or run without arguments to auto-configure from your shell prompt |
/stickers |
Order Claude Code stickers |
/tasks |
List and manage background tasks |
/terminal-setup |
Configure terminal keybindings for Shift+Enter and other shortcuts. Only visible in terminals that need it, like VS Code, Alacritty, or Warp |
/theme |
Change the color theme. Includes light and dark variants, colorblind-accessible (daltonized) themes, and ANSI themes that use your terminal's color palette |
/upgrade |
Open the upgrade page to switch to a higher plan tier |
/usage |
Show plan usage limits and rate limit status |
/vim |
Toggle between Vim and Normal editing modes |
MCP prompts
MCP servers can expose prompts that appear as commands. These use the format /mcp__<server>__<prompt> and are dynamically discovered from connected servers. See MCP prompts for details.
See also
- Skills: create your own commands
- Interactive mode: keyboard shortcuts, Vim mode, and command history
- CLI reference: launch-time flags