Install Claude Code with npm:
npm install -g @anthropic-ai/claude-code
Or use Homebrew on macOS:
brew install claude-code
After installation, run claude to start an interactive session. You'll need an Anthropic API key or a Claude subscription. The tool will prompt you to authenticate on first run.