>_cli-install
C

Install Claude Code

Anthropic's agentic coding CLI for your terminal

Claude Code is Anthropic's command-line coding agent. It reads your codebase, edits files, runs commands, and ships changes — all from the terminal, driven by Claude.

Install on macOS
curl -fsSL https://claude.ai/install.sh | bash
Other install methods
Homebrew
brew install --cask claude-code
npm
npm install -g @anthropic-ai/claude-code@latest
Install on Windows
irm https://claude.ai/install.ps1 | iex
Other install methods
WinGet
winget install Anthropic.ClaudeCode
npm
npm install -g @anthropic-ai/claude-code@latest
Install on Linux
curl -fsSL https://claude.ai/install.sh | bash
Other install methods
npm
npm install -g @anthropic-ai/claude-code@latest
Run it
claude
Verify the install
claude --version

Before you start

The native installer bundles its own runtime and auto-updates in the background. The npm route needs Node.js 22+.

Official documentation: Claude Code setup docs

Frequently asked questions

Is Claude Code free?

Claude Code is included with Claude Pro, Max, Team, and Enterprise plans, and is available through the Claude Developer Platform with pay-as-you-go API billing. The free plan does not include it.

Do I need Node.js to run Claude Code?

Only for the npm install route, which needs Node.js 22 or later. The native installer does not require Node.

How do I update Claude Code?

Native installs update automatically. For Homebrew or WinGet, run brew upgrade claude-code or winget upgrade Anthropic.ClaudeCode.

Claude and Claude Code are trademarks of Anthropic, PBC. cli-install.com is an independent resource and is not affiliated with or endorsed by the trademark owner.