Skip to main content

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.
/doctor
Run /doctor first when something is not working. It covers the most common setup issues.

/status

Source: src/commands/status/ Show current system and session status: active model, session ID, tool permissions, memory usage, and connection state.
/status

/stats

Source: src/commands/stats/ Display statistics for the current session, including message count, tool call count, and elapsed time.
/stats

/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.
/cost

/version

Source: src/commands/version.ts Show the installed Claude Code version.
/version

/usage

Source: src/commands/usage/ Show detailed API usage for the current session, including per-request token counts and model names.
/usage

/extra-usage

Source: src/commands/extra-usage/ Show extended usage details beyond what /usage provides, including cache read/write breakdowns.
/extra-usage

/rate-limit-options

Source: src/commands/rate-limit-options/ View your current rate limit configuration and the available options for adjusting limits.
/rate-limit-options

Installation & setup

/install

Source: src/commands/install.tsx Install or update Claude Code. Walks through the installation process with an interactive UI.
/install

/upgrade

Source: src/commands/upgrade/ Upgrade Claude Code to the latest available version.
/upgrade

/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.
/init
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).
/init-verifiers

/onboarding

Source: src/commands/onboarding/ Run the first-time setup wizard. Covers authentication, model selection, permissions, and editor integration in a guided flow.
/onboarding

/terminalSetup

Source: src/commands/terminalSetup/ Configure terminal integration, including shell completion, keybindings, and display settings.
/terminalSetup

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-env

/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.
/remote-setup

/env

Source: src/commands/env/ View the environment variables visible to Claude Code in the current session.
/env

/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.
/sandbox-toggle

Misc

/help

Source: src/commands/help/ Show help and a list of all available commands.
/help
/help /commit

/exit

Source: src/commands/exit/ Exit Claude Code.
/exit

/feedback

Source: src/commands/feedback/ Send feedback directly to Anthropic from within Claude Code.
/feedback

/voice

Source: src/commands/voice/ Toggle voice input mode. When enabled, Claude Code accepts spoken input via your system microphone.
/voice

CommandSourceDescription
/doctordoctor/Run environment diagnostics
/statusstatus/Show system and session status
/statsstats/Show session statistics
/costcost/Display token usage and estimated cost
/versionversion.tsShow Claude Code version
/usageusage/Show detailed API usage
/extra-usageextra-usage/Show extended usage details
/rate-limit-optionsrate-limit-options/View rate limit configuration
/installinstall.tsxInstall or update Claude Code
/upgradeupgrade/Upgrade to the latest version
/initinit.tsInitialize project (create CLAUDE.md)
/init-verifiersinit-verifiers.tsSet up verifier hooks
/onboardingonboarding/Run first-time setup wizard
/terminalSetupterminalSetup/Configure terminal integration
/remote-envremote-env/Configure remote environment
/remote-setupremote-setup/Set up remote session
/envenv/View environment variables
/sandbox-togglesandbox-toggle/Toggle sandbox mode
/helphelp/Show help and available commands
/exitexit/Exit Claude Code
/feedbackfeedback/Send feedback to Anthropic
/voicevoice/Toggle voice input mode

Build docs developers (and LLMs) love