Diagnostics & status
/doctor
Source: src/commands/doctor/
Run a full environment diagnostics check. Claude verifies that all required tools are installed, configurations are valid, and connections are reachable, then reports any issues with suggested fixes.
/status
Source: src/commands/status/
Show current system and session status: active model, session ID, tool permissions, memory usage, and connection state.
/stats
Source: src/commands/stats/
Display statistics for the current session, including message count, tool call count, and elapsed time.
/cost
Source: src/commands/cost/
Display token usage and the estimated API cost for the current session. Breaks down input tokens, output tokens, and cache usage.
/version
Source: src/commands/version.ts
Show the installed Claude Code version.
/usage
Source: src/commands/usage/
Show detailed API usage for the current session, including per-request token counts and model names.
/extra-usage
Source: src/commands/extra-usage/
Show extended usage details beyond what /usage provides, including cache read/write breakdowns.
/rate-limit-options
Source: src/commands/rate-limit-options/
View your current rate limit configuration and the available options for adjusting limits.
Installation & setup
/install
Source: src/commands/install.tsx
Install or update Claude Code. Walks through the installation process with an interactive UI.
/upgrade
Source: src/commands/upgrade/
Upgrade Claude Code to the latest available version.
/init
Source: src/commands/init.ts
Initialize a project by creating a CLAUDE.md file at the repo root. Claude inspects the project structure and generates an initial memory file with relevant conventions and context.
Running
/init on an existing project will prompt before overwriting a CLAUDE.md that already exists./init-verifiers
Source: src/commands/init-verifiers.ts
Set up verifier hooks for the project. Verifiers run automatically after Claude makes changes to check correctness (e.g., run tests, lint).
/onboarding
Source: src/commands/onboarding/
Run the first-time setup wizard. Covers authentication, model selection, permissions, and editor integration in a guided flow.
/terminalSetup
Source: src/commands/terminalSetup/
Configure terminal integration, including shell completion, keybindings, and display settings.
Remote & environment
/remote-env
Source: src/commands/remote-env/
Configure a remote environment for Claude Code to operate in, such as a cloud VM or CI container.
/remote-setup
Source: src/commands/remote-setup/
Run the setup flow for a remote session, installing dependencies and configuring the environment on the remote host.
/env
Source: src/commands/env/
View the environment variables visible to Claude Code in the current session.
/sandbox-toggle
Source: src/commands/sandbox-toggle/
Toggle sandbox mode. In sandbox mode, Claude’s tool calls are restricted to a safe execution environment that cannot modify the host system.
Misc
/help
Source: src/commands/help/
Show help and a list of all available commands.
/exit
Source: src/commands/exit/
Exit Claude Code.
/feedback
Source: src/commands/feedback/
Send feedback directly to Anthropic from within Claude Code.
/voice
Source: src/commands/voice/
Toggle voice input mode. When enabled, Claude Code accepts spoken input via your system microphone.
| Command | Source | Description |
|---|---|---|
/doctor | doctor/ | Run environment diagnostics |
/status | status/ | Show system and session status |
/stats | stats/ | Show session statistics |
/cost | cost/ | Display token usage and estimated cost |
/version | version.ts | Show Claude Code version |
/usage | usage/ | Show detailed API usage |
/extra-usage | extra-usage/ | Show extended usage details |
/rate-limit-options | rate-limit-options/ | View rate limit configuration |
/install | install.tsx | Install or update Claude Code |
/upgrade | upgrade/ | Upgrade to the latest version |
/init | init.ts | Initialize project (create CLAUDE.md) |
/init-verifiers | init-verifiers.ts | Set up verifier hooks |
/onboarding | onboarding/ | Run first-time setup wizard |
/terminalSetup | terminalSetup/ | Configure terminal integration |
/remote-env | remote-env/ | Configure remote environment |
/remote-setup | remote-setup/ | Set up remote session |
/env | env/ | View environment variables |
/sandbox-toggle | sandbox-toggle/ | Toggle sandbox mode |
/help | help/ | Show help and available commands |
/exit | exit/ | Exit Claude Code |
/feedback | feedback/ | Send feedback to Anthropic |
/voice | voice/ | Toggle voice input mode |