Skip to main content
Slash commands are entered at the prompt during an interactive Claude Code session. Type / followed by the command name. Most commands open an interactive panel; some accept inline arguments.
Commands marked as “non-interactive only” or with specific flags require you to be outside of an active conversation, or to be running in --print mode.

Session management

Description: Clear conversation history and free up context window space.Usage:
/clear
Wipes the current conversation transcript. The session continues but with an empty history. Useful when context is nearly full and you want to start a fresh exchange without restarting the process.
Description: Clear conversation history but keep a summary in context.Usage:
/compact
/compact <custom summarization instructions>
Unlike /clear, /compact summarizes the conversation before discarding the full transcript. Pass optional instructions to control how the summary is written (e.g. focus on the API design decisions).
Description: Resume a previous conversation.Usage:
/resume
/resume <session-id>
/resume <search-term>
Opens an interactive picker to select from past sessions in the current directory. Provide a session UUID to jump directly, or a search term to pre-filter the list.
Description: Create a branch of the current conversation at this point.Usage:
/branch
Forks the conversation history at the current message so you can explore a different direction without losing the original thread.
Description: Restore the code and/or conversation to a previous point.Usage:
/rewind
Opens a picker that lets you select an earlier user message to rewind to. Files modified after that point can optionally be restored to their prior state.
Description: Rename the current conversation.Usage:
/rename <new name>
Sets a display name for the session that appears in /resume and in the terminal title bar.
Description: Toggle a searchable tag on the current session.Usage:
/tag <tag-name>
Attaches or removes a tag that can be used to filter sessions in the resume picker.
Description: Exit the Claude Code REPL.Usage:
/exit
Closes the session cleanly.

Model and effort

Description: View or change the active model for the current session.Usage:
/model
/model <model-name>
/model default
Run without arguments to open the interactive model picker. Pass a model name or alias (e.g. sonnet, opus, claude-sonnet-4-6) to set it directly. Pass default to revert to the configured default.Examples:
/model sonnet
/model claude-opus-4-6
/model default
Description: Set effort level for model usage.Usage:
/effort <level>
Controls how much compute the model uses for reasoning. Accepted values: low, medium, high, max.
/effort high
Description: Toggle fast mode on or off for the current session.Usage:
/fast
Fast mode uses a lighter-weight configuration to reduce latency. Only available on supported models.

Memory and context

Description: Edit Claude memory files.Usage:
/memory
Opens a selector to choose which CLAUDE.md memory file to edit — global, project-level, or local. The selected file opens in your $EDITOR or $VISUAL editor.
Description: Visualize current context usage as a colored grid.Usage:
/context
Renders a heatmap of the context window, showing how much space is occupied by different message types.
Description: List all files currently in context.Usage:
/files
Displays every file that has been read or written during the current session.
Description: Add a new working directory to the session.Usage:
/add-dir <path>
Grants Claude tool access to an additional directory beyond the initial working directory.

Configuration

Description: Open the configuration panel.Usage:
/config
Opens the interactive settings UI where you can adjust Claude Code preferences, including output style, verbose mode, and other options.
Description: View and configure hook settings for tool events.Usage:
/hooks
Opens the hooks configuration menu, which shows all configured hooks grouped by tool event type (e.g. PreToolUse, PostToolUse).
Description: Manage allow and deny tool permission rules.Usage:
/permissions
Opens the permission rule list where you can review, add, or remove rules that control which tools Claude can execute without prompting.
Description: Open or create your keybindings configuration file.Usage:
/keybindings
Opens your keybindings JSON file in $EDITOR. Creates the file if it does not exist.
Description: Toggle between Vim and Normal editing modes.Usage:
/vim
Switches the prompt input between Vim key bindings and the default normal mode.

MCP servers

Description: Manage MCP (Model Context Protocol) servers.Usage:
/mcp
/mcp enable [<server-name>]
/mcp disable [<server-name>]
/mcp reconnect <server-name>
Run without arguments to open the MCP settings panel. Use subcommands to enable or disable servers by name, or reconnect to a server that has dropped.Examples:
# Open MCP settings UI
/mcp

# Enable all disabled MCP servers
/mcp enable

# Enable a specific server
/mcp enable my-server

# Disable a specific server
/mcp disable my-server

# Reconnect a specific server
/mcp reconnect my-server

Agents and plugins

Description: Manage agent configurations.Usage:
/agents
Opens the agent management panel where you can view, enable, and configure subagent definitions.
Description: Manage Claude Code plugins.Usage:
/plugin
Opens the plugin management interface for installing, updating, and removing plugins.
Description: Activate pending plugin changes in the current session.Usage:
/reload-plugins
Reloads all plugins without restarting Claude Code. Useful after installing or updating a plugin.
Description: List available skills.Usage:
/skills
Shows all loaded skills — from ~/.claude/skills/, project-local .claude/skills/, plugins, and MCP.

Session information

Description: Show the total cost and duration of the current session.Usage:
/cost
Displays token usage and estimated API cost accumulated in the current session.
Description: Show plan usage limits.Usage:
/usage
Shows your current plan’s usage allowance and how much you have consumed.
Description: Show Claude Code usage statistics and activity.Usage:
/stats
Displays aggregated usage statistics across sessions.
Description: Show Claude Code status including version, model, account, API connectivity, and tool statuses.Usage:
/status
Useful for quickly verifying your environment is correctly configured.
Description: Show remote session URL and QR code.Usage:
/session
Only visible when running in remote mode (--remote). Displays the URL and a terminal QR code to connect from a mobile device or browser.
This command is only available when Claude Code is started with --remote.
Description: View uncommitted changes and per-turn diffs.Usage:
/diff
Shows a unified diff of all uncommitted file changes made during the session, organized by conversation turn.

Output and display

Description: Copy Claude’s last response to clipboard.Usage:
/copy
/copy <N>
Copies the most recent assistant message. Pass a number to copy the Nth-latest response (e.g. /copy 2 copies the second-most-recent response).
Description: Export the current conversation to a file or clipboard.Usage:
/export
Opens an export dialog to save the session transcript as Markdown or copy it to the clipboard.
Description: Enable plan mode or view the current session plan.Usage:
/plan
Toggles plan mode, which requires Claude to produce a step-by-step plan before executing changes.
Description: Change the terminal theme.Usage:
/theme
Opens a theme picker to switch between available color schemes.
Description: Set the prompt bar color for this session.Usage:
/color
Opens a color selector for the input prompt highlight color.

Help and feedback

Description: Show help and available commands.Usage:
/help
Lists all available commands with short descriptions.
Description: Submit feedback about Claude Code.Usage:
/feedback
Opens a feedback submission flow to report bugs or share suggestions with Anthropic.
Description: Diagnose and verify your Claude Code installation and settings.Usage:
/doctor
Runs a series of checks on your environment (API keys, MCP servers, tool availability) and reports any issues.
Description: View release notes.Usage:
/release-notes
Shows the changelog for the current and recent Claude Code versions.
Description: Upgrade to Max for higher rate limits and more Opus.Usage:
/upgrade
Opens the upgrade flow for Anthropic account subscribers.

Development tools

Description: Manage IDE integrations and show status.Usage:
/ide
Shows connected IDE extensions and lets you manage IDE integration settings.
Description: Set up Claude GitHub Actions for a repository.Usage:
/install-github-app
Walks through installing the Claude GitHub App on a repository to enable automated PR reviews and issue responses.
Description: Get comments from a GitHub pull request.Usage:
/pr-comments
Fetches review comments from a GitHub PR and surfaces them in the conversation context.
Description: Ask a quick side question without interrupting the main conversation.Usage:
/btw <question>
Sends a one-off question to the model without affecting the main conversation flow. The response is shown inline and then dismissed.

Privacy and account

Description: Sign in to your Anthropic account.Usage:
/login
Only available when not using a third-party provider (Bedrock, Vertex). Opens the OAuth login flow.
Description: Sign out from your Anthropic account.Usage:
/logout
Clears stored credentials for the current Anthropic account.
Description: View and update your privacy settings.Usage:
/privacy-settings
Opens the privacy settings panel to control data collection and conversation logging preferences.

Build docs developers (and LLMs) love