Skip to main content
Type / in the REPL to open the command palette. An autocomplete menu appears as you type, filtering commands by name and showing a short description for each. Press Tab or Enter to accept a suggestion, or continue typing to narrow the list.
CommandDescription
/helpShow the help overlay with available commands and keybindings
/exitExit Claude Code and return to the shell
/clearClear the current conversation history and start fresh
/resumeResume a previous session from the session picker
/sessionView and manage the current session (rename, branch, export)
/branchBranch the current session into a new independent conversation
/renameRename the current session
/exportExport the session transcript to a file
CommandDescription
/initInitialize a project — creates a CLAUDE.md file with project context
/commitGenerate and create a git commit for staged changes
/reviewRun an AI code review on the current diff or specified files
/diffShow the current git diff in the conversation
/statusShow git status output in the conversation
/compactCompact the conversation context to reduce token usage
/summaryGenerate a summary of the current session
CommandDescription
/modelSwitch the active AI model
/themeChange the UI color theme
/output-styleChange how Claude formats its responses
/configView or edit Claude Code configuration
/keybindingsOpen keybindings.json in your editor to customize shortcuts
/vimToggle vim mode for the prompt input
CommandDescription
/mcpManage MCP (Model Context Protocol) servers — list, add, remove, and authenticate
/pluginManage plugins — browse, enable, disable, and remove installed plugins
/installInstall a plugin by name or path
/skillsView and manage skills available in the current session
/agentsView and manage sub-agents in the current session
/hooksManage lifecycle hooks for tool execution events
/memoryView and manage persistent memory attached to the session
CommandDescription
/doctorRun diagnostics — checks configuration, authentication, and connectivity
/costShow token usage and estimated cost for the current session
/usageShow detailed token usage statistics broken down by model
/versionShow the installed Claude Code version
/loginAuthenticate with Anthropic (OAuth or API key)
/logoutSign out and clear stored credentials
/feedbackSend feedback to Anthropic
/release-notesShow the changelog for recent versions
/ultraplanActivate advanced multi-step planning mode (when enabled)
/teleportSync the current session to another machine via the Teleport system
The full command list may vary depending on which features are enabled in your build. Commands gated behind feature flags (such as /ultraplan and /teleport) only appear when the corresponding feature is active.

Build docs developers (and LLMs) love