/ 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
/clear
/clear
Description: Clear conversation history and free up context window space.Usage: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.
/compact
/compact
Description: Clear conversation history but keep a summary in context.Usage: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)./resume
/resume
Description: Resume a previous conversation.Usage: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.
/branch
/branch
Description: Create a branch of the current conversation at this point.Usage:Forks the conversation history at the current message so you can explore a different direction without losing the original thread.
/rewind
/rewind
Description: Restore the code and/or conversation to a previous point.Usage: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.
/rename
/rename
Description: Rename the current conversation.Usage:Sets a display name for the session that appears in
/resume and in the terminal title bar./tag
/tag
Description: Toggle a searchable tag on the current session.Usage:Attaches or removes a tag that can be used to filter sessions in the resume picker.
/exit
/exit
Description: Exit the Claude Code REPL.Usage:Closes the session cleanly.
Model and effort
/model
/model
Description: View or change the active model for the current session.Usage: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:/effort
/effort
Description: Set effort level for model usage.Usage:Controls how much compute the model uses for reasoning. Accepted values:
low, medium, high, max./fast
/fast
Description: Toggle fast mode on or off for the current session.Usage:Fast mode uses a lighter-weight configuration to reduce latency. Only available on supported models.
Memory and context
/memory
/memory
Description: Edit Claude memory files.Usage: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./context
/context
Description: Visualize current context usage as a colored grid.Usage:Renders a heatmap of the context window, showing how much space is occupied by different message types.
/files
/files
Description: List all files currently in context.Usage:Displays every file that has been read or written during the current session.
/add-dir
/add-dir
Description: Add a new working directory to the session.Usage:Grants Claude tool access to an additional directory beyond the initial working directory.
/compact
/compact
Configuration
/config
/config
Description: Open the configuration panel.Usage:Opens the interactive settings UI where you can adjust Claude Code preferences, including output style, verbose mode, and other options.
/hooks
/hooks
Description: View and configure hook settings for tool events.Usage:Opens the hooks configuration menu, which shows all configured hooks grouped by tool event type (e.g.
PreToolUse, PostToolUse)./permissions
/permissions
Description: Manage allow and deny tool permission rules.Usage:Opens the permission rule list where you can review, add, or remove rules that control which tools Claude can execute without prompting.
/keybindings
/keybindings
Description: Open or create your keybindings configuration file.Usage:Opens your keybindings JSON file in
$EDITOR. Creates the file if it does not exist./vim
/vim
Description: Toggle between Vim and Normal editing modes.Usage:Switches the prompt input between Vim key bindings and the default normal mode.
MCP servers
/mcp
/mcp
Description: Manage MCP (Model Context Protocol) servers.Usage: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:
Agents and plugins
/agents
/agents
Description: Manage agent configurations.Usage:Opens the agent management panel where you can view, enable, and configure subagent definitions.
/plugin
/plugin
Description: Manage Claude Code plugins.Usage:Opens the plugin management interface for installing, updating, and removing plugins.
/reload-plugins
/reload-plugins
Description: Activate pending plugin changes in the current session.Usage:Reloads all plugins without restarting Claude Code. Useful after installing or updating a plugin.
/skills
/skills
Description: List available skills.Usage:Shows all loaded skills — from
~/.claude/skills/, project-local .claude/skills/, plugins, and MCP.Session information
/cost
/cost
Description: Show the total cost and duration of the current session.Usage:Displays token usage and estimated API cost accumulated in the current session.
/usage
/usage
Description: Show plan usage limits.Usage:Shows your current plan’s usage allowance and how much you have consumed.
/stats
/stats
Description: Show Claude Code usage statistics and activity.Usage:Displays aggregated usage statistics across sessions.
/status
/status
Description: Show Claude Code status including version, model, account, API connectivity, and tool statuses.Usage:Useful for quickly verifying your environment is correctly configured.
/session
/session
Description: Show remote session URL and QR code.Usage: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./diff
/diff
Description: View uncommitted changes and per-turn diffs.Usage:Shows a unified diff of all uncommitted file changes made during the session, organized by conversation turn.
Output and display
/copy
/copy
Description: Copy Claude’s last response to clipboard.Usage: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)./export
/export
Description: Export the current conversation to a file or clipboard.Usage:Opens an export dialog to save the session transcript as Markdown or copy it to the clipboard.
/plan
/plan
Description: Enable plan mode or view the current session plan.Usage:Toggles plan mode, which requires Claude to produce a step-by-step plan before executing changes.
/theme
/theme
Description: Change the terminal theme.Usage:Opens a theme picker to switch between available color schemes.
/color
/color
Description: Set the prompt bar color for this session.Usage:Opens a color selector for the input prompt highlight color.
Help and feedback
/help
/help
Description: Show help and available commands.Usage:Lists all available commands with short descriptions.
/feedback
/feedback
Description: Submit feedback about Claude Code.Usage:Opens a feedback submission flow to report bugs or share suggestions with Anthropic.
/doctor
/doctor
Description: Diagnose and verify your Claude Code installation and settings.Usage:Runs a series of checks on your environment (API keys, MCP servers, tool availability) and reports any issues.
/release-notes
/release-notes
Description: View release notes.Usage:Shows the changelog for the current and recent Claude Code versions.
/upgrade
/upgrade
Description: Upgrade to Max for higher rate limits and more Opus.Usage:Opens the upgrade flow for Anthropic account subscribers.
Development tools
/ide
/ide
Description: Manage IDE integrations and show status.Usage:Shows connected IDE extensions and lets you manage IDE integration settings.
/install-github-app
/install-github-app
Description: Set up Claude GitHub Actions for a repository.Usage:Walks through installing the Claude GitHub App on a repository to enable automated PR reviews and issue responses.
/pr-comments
/pr-comments
Description: Get comments from a GitHub pull request.Usage:Fetches review comments from a GitHub PR and surfaces them in the conversation context.
/btw
/btw
Description: Ask a quick side question without interrupting the main conversation.Usage: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
/login
/login
Description: Sign in to your Anthropic account.Usage:Only available when not using a third-party provider (Bedrock, Vertex). Opens the OAuth login flow.
/logout
/logout
Description: Sign out from your Anthropic account.Usage:Clears stored credentials for the current Anthropic account.
/privacy-settings
/privacy-settings
Description: View and update your privacy settings.Usage:Opens the privacy settings panel to control data collection and conversation logging preferences.