Skip to content

Commands reference

Slash commands control Claude Code from inside a session. Type / to see everything available, or / followed by letters to filter. Commands marked Skill are bundled skills — prompt-based workflows Claude can also trigger automatically when relevant.

For the official reference see code.claude.com/docs/en/commands.


Commands you’ll reach for in almost every session.

CommandWhat it does
/clearClear conversation history and free up context. Aliases: /reset, /new
/compact [instructions]Summarize the conversation to reclaim context. Pass instructions to focus what’s kept, e.g. /compact focus on the auth changes
/model [model]Switch the active model mid-session. Takes effect immediately — no need to restart
/plan [description]Enter plan mode. Pass a description to jump straight in: /plan fix the auth bug
/costShow token usage and session cost. See cost tracking docs
/contextVisualize context window usage as a colored grid with optimization suggestions
/rewindRewind the conversation and/or code to a previous point. See checkpointing docs. Alias: /checkpoint
/btw <question>Ask a quick side question without adding it to the main conversation thread

All commands included in Claude Code. Availability depends on your platform, plan, and environment — some commands only appear on macOS/Windows, or on Pro/Max plans.

CommandPurpose
/add-dir <path>Add a working directory for file access during the current session
/agentsManage agent configurations
/autofix-pr [prompt]Spawn a remote session to auto-fix CI failures and PR review comments on your open PR
/batch <instruction>Skill. Orchestrate large-scale parallel changes across a codebase in isolated worktrees
/branch [name]Fork the conversation at this point. Alias: /fork
/btw <question>Ask a side question without adding it to the conversation thread
/chromeConfigure Claude in Chrome settings
/claude-apiSkill. Load Claude API reference for your project’s language. Also activates automatically when your code imports anthropic or @anthropic-ai/sdk
/clearClear conversation history and free up context. Aliases: /reset, /new
/color [color|default]Set the prompt bar color for the current session: red, blue, green, yellow, purple, orange, pink, cyan
/compact [instructions]Compact conversation with optional focus instructions
/configOpen the Settings UI. Alias: /settings
/contextVisualize current context usage as a colored grid
/copy [N]Copy the last (or Nth-latest) assistant response to clipboard
/costShow token usage statistics
/debug [description]Skill. Enable debug logging and troubleshoot the current session
/desktopContinue the session in the Claude Code Desktop app. macOS and Windows only. Alias: /app
/diffOpen an interactive diff viewer showing uncommitted changes and per-turn diffs
/doctorDiagnose and verify your Claude Code installation and settings
/effort [level]Set model effort: low, medium, high, max, or auto
/exitExit the CLI. Alias: /quit
/export [filename]Export the current conversation as plain text
/extra-usageConfigure extra usage to keep working when rate limits are hit
/fast [on|off]Toggle fast mode
/feedback [report]Submit feedback about Claude Code. Alias: /bug
/helpShow help and available commands
/hooksView hook configurations for tool events
/ideManage IDE integrations and show status
/initInitialize project with a CLAUDE.md guide
/insightsGenerate a report analyzing your Claude Code sessions and interaction patterns
/install-github-appSet up the Claude GitHub Actions app for a repository
/install-slack-appInstall the Claude Slack app
/keybindingsOpen or create your keybindings configuration file
/loginSign in to your Anthropic account
/logoutSign out from your Anthropic account
/loop [interval] [prompt]Skill. Run a prompt repeatedly while the session stays open. See scheduled tasks
/mcpManage MCP server connections and OAuth authentication
/memoryEdit CLAUDE.md memory files and manage auto-memory
/mobileShow QR code to download the Claude mobile app. Aliases: /ios, /android
/model [model]Select or change the AI model
/passesShare a free week of Claude Code with friends (account-eligible only)
/permissionsManage allow, ask, and deny rules for tool permissions. Alias: /allowed-tools
/plan [description]Enter plan mode, optionally with an initial task
/pluginManage Claude Code plugins
/powerupDiscover Claude Code features through quick interactive lessons
/privacy-settingsView and update privacy settings (Pro and Max plans only)
/release-notesView the changelog in an interactive version picker
/reload-pluginsReload all active plugins to apply changes without restarting
/remote-controlMake this session available for remote control from claude.ai. Alias: /rc
/remote-envConfigure the default remote environment for web sessions
/rename [name]Rename the current session
/resume [session]Resume a conversation by ID or name. Alias: /continue
/rewindRewind conversation and/or code to a previous point. See checkpointing. Alias: /checkpoint
/sandboxToggle sandbox mode (supported platforms only)
/schedule [description]Create, update, list, or run Cloud scheduled tasks
/security-reviewAnalyze pending changes for security vulnerabilities
/setup-bedrockConfigure Amazon Bedrock authentication and settings (requires CLAUDE_CODE_USE_BEDROCK=1)
/setup-vertexConfigure Google Vertex AI authentication and settings (requires CLAUDE_CODE_USE_VERTEX=1)
/simplify [focus]Skill. Review and fix recently changed files for code quality issues
/skillsList available skills
/statsVisualize daily usage, session history, streaks, and model preferences
/statusOpen Settings (Status tab) showing version, model, account, and connectivity
/statuslineConfigure Claude Code’s status line
/stickersOrder Claude Code stickers
/tasksList and manage background tasks. Alias: /bashes
/teleportPull a Claude Code web session into this terminal. Alias: /tp
/terminal-setupConfigure terminal keybindings for Shift+Enter and other shortcuts
/themeChange the color theme, including light, dark, colorblind-accessible, and ANSI variants
/ultraplan <prompt>Draft and execute a plan in an ultraplan session
/upgradeOpen the upgrade page to switch plan tier
/usageShow plan usage limits and rate limit status
/voiceToggle push-to-talk voice dictation
/web-setupConnect your GitHub account to Claude Code on the web