Source: code.claude.com/docs (updated April 2026)
🔷 Built-in Slash Commands
Type / in a session to see all available commands. Some are plan/platform-dependent.
| Command | Description |
|---|---|
/add-dir <path> | Add a working directory for file access in the current session |
/agents | Manage agent configurations |
/btw <question> | Ask a quick side question without adding to the conversation history |
/branch [name] | Create a branch (fork) of the current conversation. Alias: /fork |
/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 (red, blue, green, yellow, purple, orange, pink, cyan) |
/compact [instructions] | Compact conversation with optional focus instructions |
/config | Open Settings (theme, model, output style, etc.). Alias: /settings |
/context | Visualize context usage as a colored grid with optimization suggestions |
/copy [N] | Copy the last (or Nth-last) assistant response to clipboard |
/cost | Show token usage statistics |
/desktop | Continue current session in the Claude Code Desktop app (macOS/Windows). Alias: /app |
/diff | Open interactive diff viewer showing uncommitted changes and per-turn diffs |
/doctor | Diagnose and verify your Claude Code installation and settings |
/effort [low|medium|high|max|auto] | Set the model effort level (max requires Opus 4.6, session-only) |
/exit | Exit the CLI. Alias: /quit |
/export [filename] | Export current conversation as plain text |
/extra-usage | Configure extra usage when rate limits are hit |
/fast [on|off] | Toggle fast mode on or off |
/feedback [report] | Submit feedback about Claude Code. Alias: /bug |
/help | Show help and all available commands |
/hooks | View hook configurations for tool events |
/ide | Manage IDE integrations and show status |
/init | Initialize project with a CLAUDE.md guide |
/insights | Generate a report analyzing your Claude Code sessions |
/install-github-app | Set up Claude GitHub Actions for a repository |
/install-slack-app | Install the Claude Slack app (opens 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 and manage auto-memory |
/mobile | Show QR code to download the Claude mobile app. Aliases: /ios, /android |
/model [model] | Select or change the AI model |
/passes | Share a free week of Claude Code with friends (if eligible) |
/permissions | Manage allow/ask/deny rules for tool permissions. Alias: /allowed-tools |
/plan [description] | Enter plan mode (optionally with a task description) |
/plugin | Manage Claude Code plugins |
/pr-comments [PR] | Fetch and display GitHub pull request comments (requires gh CLI) |
/privacy-settings | View/update privacy settings (Pro/Max plans only) |
/release-notes | View the full changelog |
/reload-plugins | Reload all active plugins to apply changes without restarting |
/remote-control | Make this session available for remote control from claude.ai. Alias: /rc |
/remote-env | Configure the default remote environment for web sessions |
/rename [name] | Rename the current session (or auto-generate a name) |
/resume [session] | Resume a conversation by ID or name. Alias: /continue |
/rewind | Rewind conversation/code to a previous point. Alias: /checkpoint |
/sandbox | Toggle sandbox mode (supported platforms only) |
/schedule [description] | Create, list, or run Cloud scheduled tasks |
/security-review | Analyze pending branch changes for security vulnerabilities |
/terminal-setup | Configure terminal for optimal Claude Code use |
/upgrade | Upgrade your Claude plan (Pro/Max subscribers) |
🔷 Bundled Skills (appear alongside slash commands)
| Command | Description |
|---|---|
/simplify | Simplify code or content |
/batch | Run batch operations |
/debug | Debug code issues |
/loop | Run iterative loops |
🔷 CLI Commands (used outside a session)
| Command | Description |
|---|---|
claude | Start interactive session |
claude "query" | Start session with initial prompt |
claude -p "query" | Query via SDK, then exit (print mode) |
cat file | claude -p "query" | Process piped content |
claude -c | Continue most recent conversation |
claude -c -p "query" | Continue via SDK |
claude -r "<session>" "query" | Resume session by ID or name |
claude update | Update to latest version |
claude auth login | Sign in to Anthropic account |
claude auth logout | Log out |
claude auth status | Show authentication status |
claude agents | List all configured subagents |
claude auto-mode defaults | Print built-in auto-mode classifier rules as JSON |
claude mcp | Configure MCP servers |
claude plugin | Manage plugins. Alias: claude plugins |
claude remote-control | Start a Remote Control server |
🔷 Key CLI Flags
| Flag | Description |
|---|---|
--add-dir | Add additional working directories |
--agent | Specify an agent for the current session |
--agents | Define custom subagents dynamically via JSON |
--allow-dangerously-skip-permissions | Add bypassPermissions to the Shift+Tab mode cycle |
--allowedTools | Tools that execute without prompting |
--append-system-prompt | Append custom text to the default system prompt |
--append-system-prompt-file | Append system prompt text from a file |
--bare | Minimal mode: skip hooks, skills, plugins, MCP, CLAUDE.md |
--betas | Beta headers for API requests (API key users only) |
--chrome | Enable Chrome browser integration |
--continue, -c | Load most recent conversation |
--dangerously-skip-permissions | Skip all permission prompts |
--debug ["category"] | Enable debug mode (optional category filter) |
--debug-file <path> | Write debug logs to a file |
--disable-slash-commands | Disable all skills and commands for this session |
--disallowedTools | Remove tools from the model’s context entirely |
--effort [low|medium|high|max|auto] | Set effort level for the session |
--fallback-model | Enable fallback model when default is overloaded (print mode) |
--fork-session | Create a new session ID when resuming |
--from-pr | Resume sessions linked to a GitHub PR |
--system-prompt | Replace the default system prompt entirely |
--system-prompt-file | Load replacement system prompt from a file |
🔷 Keyboard Shortcuts (Interactive Mode)
| Shortcut | Description |
|---|---|
Ctrl+C | Cancel current input or generation |
Ctrl+D | Exit Claude Code session |
Ctrl+G / Ctrl+X Ctrl+E | Open in default text editor |
Ctrl+L | Redraw the screen |
Ctrl+O | Toggle verbose output |
Ctrl+R | Reverse search command history |
Ctrl+V / Cmd+V | Paste image from clipboard |
Ctrl+B | Background running tasks |
Ctrl+T | Toggle task list |
Ctrl+X Ctrl+K | Kill all background agents (press twice to confirm) |
Left/Right arrows | Cycle through dialog tabs |
Shift+Tab | Cycle through permission modes |
? | Show available shortcuts for your environment |
🔷 Special Input Prefixes
| Prefix | Description |
|---|---|
! | Bash mode — run a shell command directly, bypassing Claude’s conversational mode |
# | Add a comment/note to the conversation without triggering a response |
📝 Tips
- Type
/helpinside any session to see the full live list for your version and plan. - Custom slash commands can be added to
.claude/commands/(project) or~/.claude/commands/(global). - Bundled skills can also be invoked via natural language — Claude decides when to use them.
Note:availability of some commands depends on your plan (Pro/Max), platform (macOS/Windows/Linux), or environment.