Claude Code Guide(zebbern)
Claude Code Guide
For reference and contributions, visit the official Claude Code documentation
Commands and provider model mappings change quickly; the linked official references remain authoritative.
<kbd>
| Section | Status | Other Resources |
|---|---|---|
| Getting Started | ✅ | Claude-Code Docs |
| Configuration & Environment Variables | ✅ | Claude-Code via Discord |
| Commands & Usage | ✅ | Security Agents SKILL.md |
| Interface & Input | ✅ | Let Agent Create SKILL.md |
| Advanced Features | ✅ | 954+ Agent Skills |
| Automation & Integration | ✅ | No cost ai resources |
| Help & Troubleshooting | ✅ | 250+ Mermaid templates |
| Third-Party Integrations | ✅ | Discord Communication MCP |
</kbd>
Contents
Fast paths: Install · Commands · Config · MCP · Agents · Troubleshoot
Full content map
- Thinking Mode
- Effort Levels
- Advisor Tool
- Fast Mode
- Auto Mode
- Plan Mode
- Background Tasks
- Workflows & Scheduling
- Remote Sessions
- Claude in Chrome
- Desktop and IDEs
- Sandbox Mode
- LSP Tool
- Sub Agents
- Agent Teams
- Skills
- Plugin System
- Worktree Isolation
- Native Installer
- Authentication CLI
- Agent Management CLI
- Remote Control
- Managed Settings
- Model Updates
- Theming & Customization
- Code Review
- Insights
- MCP Integration
- Hooks System
Getting Started
Enable completion alerts: run /config inside Claude Code and choose a notification channel such as Terminal bell.
Quick Start
TIP
Run claude in a project directory to start the interface.
Go to Help & Troubleshooting to fix issues...
Native installer (recommended; no Node.js required)
macOS, Linux, or WSL:
curl -fsSL https://claude.ai/install.sh | bashWindows PowerShell:
irm https://claude.ai/install.ps1 | iexWindows CMD:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmdSupported package managers (manual updates by default):
brew install --cask claude-code
winget install Anthropic.ClaudeCodenpm distribution (supported; Node.js 22+ is required to install):
npm install -g @anthropic-ai/claude-codeVerify the installation, then start Claude Code:
claude --version
claude doctor
claudeNative installs update themselves. Homebrew, WinGet, and the signed apt, dnf, and apk repositories follow their package manager's update flow. See the official setup guide for channels, version pinning, Linux repository setup, and signature verification. For an npm install, upgrade with npm install -g @anthropic-ai/claude-code@latest; do not use sudo npm install -g.
TIP
Open Project Via Terminal Into VS Code / Cursor
$ - cd /path/to/project
$ - code .
Make sure you have the (Claude Code extension) installed in your VS Code / Cursor
System Requirements
- OS: macOS 13+, Windows 10 1809+/Windows Server 2019+, Ubuntu 20.04+, Debian 10+, or Alpine Linux 3.19+. Native Windows, WSL 1, and WSL 2 are supported.
- Hardware: 4 GB+ RAM and an x64 or ARM64 processor
- Software: Git is optional on native Windows; without Git for Windows, Claude uses the PowerShell tool instead of Bash. Node.js 22+ is required only to install through npm; the installed CLI is a native binary.
- Internet: Connection for API calls
Initial Setup
Claude Code requires a Pro, Max, Team, Enterprise, or Console account; the free Claude.ai plan does not include Claude Code. The normal first-party flow is browser sign-in:
claude auth login # Claude subscription
claude auth login --console # Anthropic Console/API billing
claude auth status # Verify the active loginFor API automation or a provider/gateway deployment, inject credentials from an OS key store or secret manager instead of committing them:
export ANTHROPIC_API_KEY="$SECRET_FROM_YOUR_STORE" # bash/zsh: current process only$env:ANTHROPIC_API_KEY = $secretFromYourStore # PowerShell: current process onlyIMPORTANT
A persistent ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, or credential helper selects API/provider authentication even if you are logged in. Subscription-only features such as Remote Control, cloud sessions, claude.ai MCP connectors, and notification preferences then remain unavailable. Do not commit credentials; use your platform's secret storage.
Configuration & Environment
Environment Variables
Environment values can also be stored as strings under the
envkey in asettings.jsonfile. The official environment-variable reference is the exhaustive source.
IMPORTANT
On PowerShell, use $env:NAME = "value" for the current process. Persist secrets through an OS key store or secret manager, not a checked-in settings file.
# Authentication and routing: set only when API/provider billing is intentional
export ANTHROPIC_API_KEY="$SECRET_FROM_YOUR_STORE"
export ANTHROPIC_AUTH_TOKEN="$TOKEN_FROM_YOUR_STORE"
export ANTHROPIC_BASE_URL="https://gateway.example.com"
export ANTHROPIC_CUSTOM_HEADERS="X-Trace-Id: 12345"
# Model selection and provider alias overrides
export ANTHROPIC_MODEL="sonnet"