Several slash commands let you view and change Claude Code’s behavior without leaving the terminal.
/config
Open the interactive settings panel (also aliased as /settings):
This opens a full-screen interactive UI where you can navigate and change all Claude Code settings — model, permission mode, theme, vim mode, and more. Navigate with arrow keys; changes take effect immediately.
/model
Switch between available Claude models mid-session:
Claude Code supports all models available on your Anthropic account.
/theme
Change the terminal color theme:
Pick from available themes to adjust syntax highlighting and UI colors.
/vim
Toggle vim keybinding mode for the input prompt:
In vim mode, use normal vim motions (h j k l, w b, 0 $, etc.) to navigate and edit your input.
/effort
Adjust Claude’s reasoning effort level:
Higher effort enables extended thinking for complex problems. Lower effort gives faster responses for simple tasks.
/output-style
Change how Claude formats its responses:
Options include different verbosity levels and formatting preferences.
/cost
View token usage and estimated cost for the current session:
This shows input tokens, output tokens, and running cost based on the active model’s pricing.
/doctor
Diagnose your environment:
The doctor command checks:
- Anthropic API authentication status
- Network connectivity to Anthropic endpoints
- Git installation and configuration
- Node.js / Bun runtime version
- Claude Code version and available updates
- MCP server connectivity (if configured)
Run /doctor first whenever something isn’t working as expected — it catches most common configuration issues.
/upgrade
Upgrade Claude Code to the latest version:
This downloads and installs the latest release. You can also upgrade manually:
npm install -g @anthropic-ai/claude-code