Install Claude CodeHow to install Claude Codeon Mac, Windows and Linux.
One command per system, from Anthropic’s own setup guide. Then sign in, check it works, and if you prefer chat over the terminal, use it from a desktop app.
Before you start
macOS 13 or newer, Windows 10 (1809) or newer, or Ubuntu 20.04 or newer. 4 GB of RAM or more, an internet connection and a Claude account (Pro, Max, Team, Enterprise or Console).
Mac and Linux
Open Terminal and run:
curl -fsSL https://claude.ai/install.sh | bashOr with Homebrew:
brew install --cask claude-codeWindows (PowerShell)
No admin rights needed. Run:
irm https://claude.ai/install.ps1 | iexOr with WinGet:
winget install Anthropic.ClaudeCodeWindows (CMD)
From Command Prompt:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmdGit for Windows is optional: with it, Claude Code uses Git Bash for shell commands; without it, PowerShell.
Sign in and check it works.
Start it
In your project folder run
claude. The first run opens the browser to sign in to your Claude account.Check the install
Run
claude doctor. It prints install health, settings errors and fixes, without starting a session.Updates
The native installer updates itself in the background. Homebrew and WinGet installs don’t: run
brew upgrade claude-codeorwinget upgrade Anthropic.ClaudeCode.
Questions people ask.
Do I need Node.js to install Claude Code?
No. The native installer (install.sh, install.ps1 or install.cmd), Homebrew and WinGet need no Node.js.
Do I need WSL on Windows?
No. Claude Code runs on native Windows from PowerShell or CMD. WSL works too, if you prefer it.
Do I need admin rights on Windows?
No. Run the install command from PowerShell or CMD as your normal user.
How do I check the install?
Run claude doctor. It shows install health, settings problems and suggested fixes.