Claude Code cheat sheet
Every slash command, keyboard shortcut and CLI flag on one printable page. Pick Mac or Windows keys, then print it or save it as a PDF from the print dialog.
Keyboard shortcuts
- Ctrl+C
- Interrupt a running operation, or clear the input. A second press on empty input exits.
- Ctrl+D
- Exit the session (press twice). With text in the prompt it deletes the next character.
- Ctrl+G
- Open the prompt in your default text editor.
- Ctrl+L
- Redraw the screen, keeping input and history.
- Ctrl+O
- Toggle the transcript viewer with detailed tool usage.
- Ctrl+R
- Reverse search your command history.
- Ctrl+V (Cmd+V in iTerm2)Alt+V
- Paste an image from the clipboard (Cmd+V in iTerm2, Alt+V on Windows).
- Ctrl+B
- Send running Bash commands and agents to the background.
- Ctrl+T
- Show or hide Claude's task checklist.
- Ctrl+S
- Stash the prompt, or restore the stashed prompt.
- Ctrl+Z
- Suspend Claude Code to your shell (Unix). Run fg to resume.
- Esc
- Interrupt Claude mid-turn, keeping the work so far, or close a dialog.
- Esc Esc
- Clear the input draft, or on empty input open the rewind menu.
- Shift+Tab
- Cycle permission modes: default, acceptEdits, plan and more.
- Option+PAlt+P
- Switch model without clearing your prompt.
- Option+TAlt+T
- Toggle extended thinking.
- Option+OAlt+O
- Toggle fast mode.
- Ctrl+X Ctrl+K
- Stop all running background subagents (press twice to confirm).
- Ctrl+Y
- Paste the text you last deleted with Ctrl+K, Ctrl+U or Ctrl+W.
- Ctrl+_
- Undo the last input edit.
- ! at start
- Shell mode: run a command directly and add its output to the session.
- @
- Trigger file path autocomplete.
- ? on empty input
- Toggle the shortcut help panel.
CLI flags
- -p, --print
- Print a response without interactive mode, then exit.
- -c, --continue
- Load the most recent conversation in the current directory.
- -r, --resume
- Resume a session by ID or name, or open the picker.
- --model
- Set the model for the session by alias or full name.
- --add-dir
- Add more working directories Claude can read and edit.
- --allowedTools
- Tools that run without asking for permission.
- --disallowedTools
- Deny rules that remove or block tools.
- --permission-mode
- Start in a permission mode such as plan or acceptEdits.
- --dangerously-skip-permissions
- Skip permission prompts (same as bypassPermissions mode).
- --output-format
- Print mode output: text, json or stream-json.
- --input-format
- Print mode input: text or stream-json.
- --max-turns
- Limit agentic turns in print mode.
- --max-budget-usd
- Stop a print mode run once estimated spend reaches this amount.
- --append-system-prompt
- Append text to the default system prompt.
- --system-prompt
- Replace the entire system prompt.
- --mcp-config
- Load MCP servers from JSON files or strings.
- --strict-mcp-config
- Only use MCP servers from --mcp-config.
- --settings
- Load a settings file or inline JSON for this session.
- --session-id
- Use a specific session UUID.
- --fork-session
- When resuming, create a new session ID instead of reusing the original.
- --effort
- Set the effort level for the session.
- --worktree, -w
- Start in an isolated git worktree.
- --name, -n
- Set a display name for the session.
- --fallback-model
- Fall back to other models when the primary is overloaded.
- --debug
- Enable debug mode, optionally filtered by category.
- --verbose
- Show full turn-by-turn output.
- --bare
- Minimal mode: skip auto-discovery of hooks, skills, plugins, MCP and CLAUDE.md.
- --tools
- Restrict which built-in tools Claude can use.
- --ide
- Connect to your IDE on startup.
- --chrome
- Enable Chrome browser integration.
- -v, --version
- Print the version number.
Slash commands
Context and memory
- /add-dir
- Adds a working directory for file access during the current session.
- /autocompact
- Sets the auto-compact window size for automatic context compaction.
- /btw
- Asks a side question about the session without adding to the conversation.
- /clear
- Starts a new conversation with empty context, optionally naming the previous one.
- /compact
- Frees up context by summarizing the conversation.
- /context
- Visualizes current context usage and provides optimization suggestions.
- /goal
- Sets a persistent goal for Claude to work towards across turns.
- /init
- Initializes a project with a CLAUDE.md guide and offers interactive setup.
- /memory
- Manages CLAUDE.md files and auto memory settings.
- /recap
- Generates a one-line summary of the current session.
Sessions and history
- /branch
- Creates a branch of the current conversation to explore different directions.
- /cd
- Moves the current session to a new working directory, preserving conversation.
- /copy
- Copies the last assistant response, or a specific one, to the clipboard.
- /exit
- Exits the CLI; detaches background sessions, allowing them to continue.
- /export
- Exports the current conversation as plain text to a file or clipboard.
- /focus
- Toggles a focus view showing only the last prompt, tool summary, and response.
- /fork
- Copies the current conversation to a new background session.
- /rename
- Renames the current session, auto-generating a name if none is provided.
- /resume
- Resumes a conversation by ID or name, or opens the session picker.
- /rewind
- Rewinds the conversation or code to a previous point.
Review and code quality
- /autofix-pr
- Spawns a cloud session to automatically fix PR issues from CI or reviews.
- /code-review
- Reviews code diffs, PRs, or branches for correctness and cleanup opportunities.
- /diff
- Reviews changes in your working tree, including Claude's edits.
- /pr-comments
- Fetches and displays comments from a GitHub pull request.
- /review
- Reviews the current diff, a PR, branch, or specified path.
- /security-review
- Analyzes current branch changes for security vulnerabilities.
- /simplify
- Reviews changed code for cleanup and applies fixes.
- /ultrareview
- Runs a deep, multi-agent code review in a cloud sandbox.
- /verify
- Skill: Confirms code changes by building, running, and observing the app.
Configuration and modes
- /auto-mode-setup
- Drafts autoMode.environment entries and saves them to user settings.
- /color
- Sets the prompt bar color for the current session.
- /config
- Opens the Settings interface or sets preferences directly via key=value pairs.
- /effort
- Sets Claude's effort level and manages Ultracode for the session.
- /fast
- Toggles fast mode on or off, even mid-response.
- /fewer-permission-prompts
- Scans transcripts and adds an allowlist to reduce permission prompts.
- /hooks
- Views hook configurations for tool events.
- /ide
- Manages IDE integrations and shows their status.
- /keybindings
- Opens your keyboard shortcuts configuration file.
- /model
- Switches the active AI model and sets it as the default.
- /output-style
- Lists available output styles or switches to a specific one.
- /permissions
- Manages allow, ask, and deny rules for tool permissions.
- /plan
- Enters plan mode directly from the prompt.
- /privacy-settings
- Views and updates your privacy settings.
- /sandbox
- Toggles sandbox mode on or off.
- /scroll-speed
- Adjusts mouse wheel scroll speed interactively.
- /statusline
- Configures Claude Code's status line.
- /terminal-setup
- Configures terminal keybindings and clipboard access for newlines and copying.
- /theme
- Changes the color theme, offering auto, light, dark, colorblind, and custom options.
- /tui
- Sets the terminal UI renderer and relaunches with the conversation intact.
- /update-config
- Skill: Describes and applies settings changes to the `settings.json` file.
- /voice
- Toggles voice dictation or enables it in a specific mode.
Extend: MCP, plugins, skills, agents
- /advisor
- Enables or disables the advisor tool, which consults a second model for guidance.
- /batch
- Orchestrates large-scale codebase changes in parallel using subagents.
- /chrome
- Configures Claude within Chrome browser settings.
- /import
- Imports configuration from other AI coding tools into Claude Code.
- /install-github-app
- Installs the Claude GitHub App for a repository, with optional GitHub Actions setup.
- /install-slack-app
- Installs the Claude Slack app by opening a browser for OAuth.
- /list-agents
- Lists all messageable Claude Code sessions and subagents.
- /loop
- Runs a prompt repeatedly while the session remains open.
- /mcp
- Manages MCP server connections and OAuth authentication.
- /plugin
- Manages Claude Code plugins.
- /reload-plugins
- Reloads all active plugins to apply pending changes.
- /reload-skills
- Re-scans skill and command directories for updates.
- /skill-doctor
- Shows skill costs and usage to identify unused skills.
- /skills
- Lists and manages available skills.
- /subtask
- Spawns a forked background subagent for a task.
- /workflow-authoring
- Skill: Loads reference for writing dynamic workflow scripts.
- /workflows
- Opens the workflow progress view to manage running and completed workflows.
Background, cloud and remote
- /background
- Detaches the current session to run as a background agent.
- /desktop
- Continues the current session in the Claude Code Desktop app.
- /mobile
- Displays a QR code to download the Claude mobile app.
- /remote-control
- Makes the current session available for Remote Control.
- /remote-env
- Chooses the default cloud environment for CLI sessions.
- /schedule
- Manages cloud-executing routines conversationally.
- /stop
- Stops the current background session.
- /tasks
- Views and manages background work in the current session.
- /teleport
- Pulls a cloud session into the current terminal.
- /web-setup
- Connects your GitHub account for cloud sessions using local gh CLI credentials.
Account, usage and billing
- /cost
- An alias for the /usage command.
- /login
- Signs you into your Anthropic account.
- /logout
- Signs you out from your Anthropic account.
- /passes
- Shares a free week of Claude Code with friends.
- /rate-limit-options
- Shows options to continue working despite usage limits.
- /setup-bedrock
- Configures Amazon Bedrock authentication and settings.
- /setup-vertex
- Configures Google Cloud Agent Platform authentication and settings.
- /stats
- Opens the Stats tab, an alias for /usage.
- /status
- Opens the Settings interface to the Status tab.
- /upgrade
- Opens the upgrade page in your browser to switch to a higher plan tier.
- /usage
- Shows session cost, plan usage limits, and activity statistics.
- /usage-credits
- Configures usage credits or requests them from an admin.
Help and troubleshooting
- /bug
- Reports a bug or shares your conversation with selectable history.
- /debug
- Enables debug logging for the current session to troubleshoot issues.
- /doctor
- Runs a setup checkup to diagnose and fix Claude Code installation issues.
- /feedback
- Sends product feedback about Claude Code, or manages drafted feedback.
- /heapdump
- Writes a JavaScript heap snapshot and memory breakdown for diagnosis.
- /help
- Shows help information and available commands.
- /insights
- Generates an HTML report analyzing recent Claude Code session usage.
- /powerup
- Discovers Claude Code features via interactive lessons.
- /release-notes
- Views the changelog in an interactive version picker.
Everything else
- /artifacts
- Lists artifacts, then allows attaching, opening, or copying links.
- /claude-api
- Loads Claude API reference material and provides subcommands for API management.
- /dataviz
- Provides design guidance for charts, graphs, and dashboards.
- /deep-research
- Fans out web searches, cross-checks sources, and synthesizes a cited report.
- /design
- Drafts UI mockups, screen flows, landing pages, or posters as editable artboards.
- /design-login
- Authorizes design-system access for /design-sync using your claude.ai account.
- /design-sync
- Converts and uploads a repo's React design system to Claude Design.
- /radio
- Opens Claude FM lo-fi radio in your browser.
- /run
- Launches and drives your project's app to verify changes.
- /run-skill-generator
- Teaches /run and /verify how to build and launch apps.
- /slides
- Creates a new presentation as a Claude Slides artifact.
- /stickers
- Orders Claude Code stickers.
- /team-onboarding
- Generates a team onboarding guide from usage history.
Shortcuts and flags checked against the Claude Code docs on 2026-10-24. Commands come from the synced slash command catalog.
A cheat sheet you stop needing
/cards quizzes you on every command until you remember it without looking.