← Getting Started with Claude Code
Lesson 2 of 3
Installation & Setup
doc
Installing Claude Code
Claude Code runs as a CLI tool. To install:
npm install -g @anthropic-ai/claude-code
Once installed, run claude to start an interactive session.
Authentication
Claude Code uses your Anthropic API key. Set it up:
export ANTHROPIC_API_KEY=your-key-here
Or Claude Code will prompt you on first run.