Claude Code

How do you install Claude Code?

QUICK ANSWER

Install Claude Code globally via npm by running the command: 'npm install -g @anthropic-ai/claude-code'. Authorize the command-line interface tool with your Anthropic Account to begin.

Installation and Login

Run the installation and startup commands in your terminal:

npm install -g @anthropic-ai/claude-code
claude

On initial startup, the console will print a verification URL and token. Navigate to the link in your browser, log in to your Anthropic console, and verify the token to link your CLI environment.

Verified against: Claude Code CLI v0.2.5