This page provides comprehensive documentation for end users on how to install, configure, and effectively use Claude Code. It covers the essential concepts, workflows, and capabilities needed to get started with the system.
For detailed information on specific topics:
For information about extending Claude Code with plugins, hooks, and skills, see Plugin System, Hook System, and Skill System.
Claude Code is an agentic coding tool that operates in your terminal, providing an interactive AI assistant for software development tasks. The system processes natural language commands, executes tools with permission controls, and maintains conversation context across sessions.
Key capabilities:
Sources: README.md1-73 CHANGELOG.md1-50
System Flow:
claude command in terminalSources: README.md1-73 CHANGELOG.md1-100
Claude Code supports multiple installation methods. The recommended approach varies by platform:
| Platform | Recommended Method | Command |
|---|---|---|
| macOS/Linux | Install script | curl -fsSL https://claude.ai/install.sh | bash |
| macOS/Linux | Homebrew | brew install --cask claude-code |
| Windows | Install script | irm https://claude.ai/install.ps1 | iex |
| Windows | WinGet | winget install Anthropic.ClaudeCode |
| All platforms | npm (deprecated) | npm install -g @anthropic-ai/claude-code |
After installation, navigate to your project directory and run:
The system will prompt for authentication on first launch. See Installation & Setup for detailed instructions, troubleshooting, and alternative installation methods.
Sources: README.md14-46 CHANGELOG.md390-391
Typical interaction pattern:
claude/model, /compact, etc.)Sources: README.md1-73 CHANGELOG.md32-100
Claude Code supports three types of commands:
Standard conversational input processed by the AI agent. Examples:
Built-in system commands that execute immediately. Common commands:
| Command | Purpose |
|---|---|
/help | Display available commands |
/model | Select AI model |
/compact | Trigger context compaction |
/clear | Clear conversation history |
/resume | Resume previous session |
/config | Open settings editor |
/sandbox | Configure bash sandbox |
Full reference: CLI Commands & Interaction Modes
User-defined or plugin-provided commands with custom behavior. Skills are defined in SKILL.md files and support parameters, hooks, and custom tools.
Sources: CHANGELOG.md501-502 CHANGELOG.md543-548
Session lifecycle:
claude --resume (shows session picker)claude --resume <session-id>/rename [name]--from-pr flag or automatic detectionSession storage location: ~/.claude/sessions/
Each session includes:
Sources: CHANGELOG.md55-56 CHANGELOG.md279-285 CHANGELOG.md329-344
Permission rules control tool execution based on patterns:
allow: Execute without promptingask: Prompt user for approval (default)deny: Block executionRule syntax examples:
Wildcard patterns: Rules support * at any position (e.g., Bash(npm *), Bash(* install))
Scope hierarchy: Rules can be defined at enterprise, user, project, or local scope.
See Configuration Management for detailed rule configuration.
Sources: CHANGELOG.md562-563 CHANGELOG.md80-81 CHANGELOG.md449-450
Built-in tools:
Sandbox mode: When enabled, Bash tool executes in an isolated environment with:
docker, git can escape sandbox)See Sandbox Environment and Tool System & Permissions for details.
Sources: CHANGELOG.md198-199 CHANGELOG.md240-247
Settings locations:
/etc/claude/managed-settings.jsonC:\Program Files\ClaudeCode\managed-settings.json~/.claude/settings.json.claude/settings.json (in project root)settings.local.json (gitignored, machine-specific)Key settings categories:
permissionRules)sandbox)enabledPlugins)defaultModel)disableAllHooks)language)Access settings: Use /config command for interactive editing.
See Configuration Management for comprehensive settings documentation.
Sources: CHANGELOG.md543-548 CHANGELOG.md536-537
Plugin categories:
plugin-dev, feature-dev)commit-commands, code-review)explanatory-output-style)Skills are markdown files (SKILL.md) defining custom commands:
~/.claude/skills/ and .claude/skills/Agents are specialized AI assistants defined in .claude/agents/*.md:
See Plugin System, Skill System, and Official Plugins for detailed documentation.
Sources: CHANGELOG.md542-548 CHANGELOG.md226-227 CHANGELOG.md424-425
Context window management:
/compact commandCompaction process:
Token limits:
See Context Window & Compaction for implementation details.
Sources: CHANGELOG.md16-17 CHANGELOG.md329-344 CHANGELOG.md400-401
Background execution:
Ctrl+B to background any running command/tasks commandCtrl+F (two-press confirmation)Subagents:
--worktree flag)--agent parameter)Agent teams (experimental):
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1See Agent System & Subagents for multi-agent orchestration patterns.
Sources: CHANGELOG.md5-12 CHANGELOG.md222-224 CHANGELOG.md496-497
| Shortcut | Action | Context |
|---|---|---|
Ctrl+C / ESC | Cancel or exit | Main input |
Ctrl+B | Background current task | Active execution |
Ctrl+F | Kill background agents | Background tasks running |
Ctrl+G | Open external editor | Input field |
Ctrl+R | Search command history | Input field |
Ctrl+S | Stash current prompt | Input field |
Shift+Enter | Insert newline | Input field |
Shift+Down | Navigate teammates | Agent teams |
Tab | Accept autocomplete | Input field |
Up/Down | Command history | Input field |
Customization: Configure custom keybindings with /keybindings command.
See CLI Commands & Interaction Modes for complete command reference.
Sources: CHANGELOG.md372-373 CHANGELOG.md50-52 CHANGELOG.md442-443
Models can be selected via /model command or --model flag:
Available models (varies by plan):
Fast mode: Available for Opus 4.6 with /fast command (requires extra-usage plan)
Provider support:
Model-specific features:
Sources: CHANGELOG.md16-17 CHANGELOG.md194-195 CHANGELOG.md110-111
When using Claude Code, the system collects:
/bug commandPrivacy safeguards:
For complete details, see:
Help improve Claude: Configurable via settings or during session.
Sources: README.md62-72 CHANGELOG.md484-485
Diagnostic command: /doctor
Common issues:
claude auth login/config/doctor/compact or check token usageDebug logging: Enable verbose mode in settings or use --verbose flag.
Community support: Join Claude Developers Discord
Sources: CHANGELOG.md466-467 CHANGELOG.md155-157 README.md56-58
After completing basic setup, explore these topics:
/plugins to extend functionalityFor comprehensive command documentation, see CLI Commands & Interaction Modes.
Sources: README.md1-73
Refresh this wiki