Contents
Installing is one command. What usually trips people up is one of three things: running the command in the wrong Windows shell, a folder missing from PATH, or an account that doesn’t include Claude Code. This guide follows Anthropic’s official setup page as of November 2026; if a command has changed, the Claude Code docs are the reference.
Before you start
- A supported system: macOS 13+, Windows 10 1809+, Ubuntu 20.04+, Debian 10+ or Alpine 3.19+.
- At least 4 GB of RAM, an x64 or ARM64 processor, and an internet connection from a country Anthropic supports.
- An account that includes Claude Code: Pro, Max, Ultra, Team, Enterprise or a Console account. The free plan doesn’t include it; see Claude Code pricing.
- Git (optional but useful): on Windows, Anthropic recommends Git for Windows so Claude Code can use Bash.
1. Install on macOS and Linux
Open Terminal and run:
curl -fsSL https://claude.ai/install.sh | bash
There is no progress bar while it downloads, so wait for it to finish. The installer puts claude in ~/.local/bin. If you use Homebrew on a Mac, the alternative is:
brew install --cask claude-code
That cask tracks the stable channel, usually about a week behind the newest release, and it doesn’t update itself.
2. Install on Windows
First check which shell you’re in: PowerShell prompts start with PS C:\, CMD prompts start with C:\ and no PS. You don’t need to run as Administrator.
PowerShell:
irm https://claude.ai/install.ps1 | iex
CMD:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
Or WinGet:
winget install Anthropic.ClaudeCode
If you see The token '&&' is not a valid statement separator, you’re in PowerShell running the CMD command. If you see 'irm' is not recognized, you’re in CMD running the PowerShell command.
WSL is another option on Windows: open your Linux distribution in WSL, run the Linux command from step 1, and start claude inside WSL, not from PowerShell. The docs note that sandboxing is supported in WSL 2 but not on native Windows.
3. Install with npm (optional)
If you already have Node.js and prefer npm:
npm install -g @anthropic-ai/claude-code@latest
The package needs Node.js 22 or later. Never use sudo: an install that needs admin rights can’t update itself and causes permission problems. If you hit EACCES, see npm EACCES. Pick one install method only; two installs fight over which version runs.
4. Check that it worked
Open a new terminal window and run:
claude --version
claude doctor
The first prints the version number. The second checks the install and settings without starting a session, and lists any warnings with a suggested fix.
5. Sign in and start your first session
cd path/to/your-project
claude
The first time, Claude Code opens the browser to sign in. Choose your account type (Claude subscription or Console) and finish the steps. On a server without a browser it shows a link to open on your own computer, covered in Claude Code on a server. Once signed in, run /init so it writes a CLAUDE.md describing your project.
6. Updating
- Native install: updates in the background. To update now:
claude update. - Homebrew:
brew upgrade claude-code. - WinGet:
winget upgrade Anthropic.ClaudeCode. - npm:
npm install -g @anthropic-ai/claude-code@latest(avoidnpm update -g).
Troubleshooting
command not foundornot recognized: open a new terminal. On macOS and Linux, add the folder to PATH and reload:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
Use ~/.zshrc instead of ~/.bashrc if your shell is zsh (the macOS default).
syntax error near unexpected token '<'or a403: the URL returned a web page instead of the script, usually because of the network or location. Try another network and check the install troubleshooting page in the docs.clauderuns but the version is old: you have two installs.claude doctorshows which one is running; remove the other.- A message that your account doesn’t include Claude Code: you’re signed in with a free account. Upgrade or sign in with a Console account.
- On Windows it can’t find Git Bash: install Git for Windows, or set the path with
CLAUDE_CODE_GIT_BASH_PATHin your settings.
On ArabyHost
Once the project works on your computer, it needs somewhere to run. Static sites and PHP apps run on the regular hosting plans; Node.js (20 and 24) and Python (3.9 to 3.12) apps run on the AI/Developer plans through Phusion Passenger, with SSH jailed in CageFS, Git, and background workers kept alive with cron. On those plans you can also install Claude Code on the server itself over SSH with npm inside your own folder, since Node.js 24 is available and there is no root (details in Claude Code on a server). To deploy, follow the guide for your project type, such as Deploy a Node.js app, or deploy from Git. There is no Docker and no GPU.
FAQ
Do I need Node.js to install Claude Code?
Not with the recommended native installer, which puts a standalone binary in place. You only need Node.js 22 or later if you choose the npm install.
How do I update Claude Code?
Native installs update themselves in the background, and `claude update` forces an update now. Homebrew and WinGet installs don't auto-update: run `brew upgrade claude-code` or `winget upgrade Anthropic.ClaudeCode`.
I get 'claude is not recognized' or 'command not found' after installing. What now?
The install folder isn't on your PATH yet. Open a new terminal window first. On macOS and Linux, make sure `~/.local/bin` is added to PATH in your shell profile.
Can I use Claude Code without a terminal?
Yes. The Claude desktop app for macOS and Windows includes Claude Code in its Code tab with no separate install, and there is a browser version at claude.ai/code. Both need a paid plan.