What is the command to install Claude Code?
Paste one line into a terminal, and which line depends on your shell. Whizi can't install it for you, because Whizi doesn't run Claude Code or any terminal agent. If you only want Claude's help with code and don't want to install anything, Whizi runs Claude Sonnet and Opus in the browser on Pro, and Claude Haiku on the free plan. Anthropic prints the install commands below on its setup page, read on 28 November 2026.

| Where you type it | Command | Updates itself? | |
|---|---|---|---|
| macOS, Linux, WSL | `curl -fsSL https://claude.ai/install.sh \ | bash` | Yes |
| Windows PowerShell | `irm https://claude.ai/install.ps1 \ | iex` | Yes |
| Windows CMD | curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd | Yes | |
| Homebrew | brew install --cask claude-code | No, run brew upgrade claude-code | |
| WinGet | winget install Anthropic.ClaudeCode | No, run winget upgrade Anthropic.ClaudeCode | |
| npm | npm install -g @anthropic-ai/claude-code@latest | Only if your npm folder is writable | |
| apt, dnf, apk | Signed repositories, steps on the setup page | No, use your normal system upgrade |
The native installer is the one Anthropic lists first as recommended. It prints no progress while it downloads, so a quiet terminal for a minute is normal. When it ends, open a new terminal window and run claude --version. A working install prints a version number followed by (Claude Code). On Windows, your prompt shows PS C:\ in PowerShell and C:\ without the PS in CMD, and that tells you which line to paste.
Installing is half the job. You still need an account before the first session works, and the next sections cover both. What you do once it runs is in how to use Claude Code.
Can you install Claude Code on Windows without WSL?
Yes. Anthropic's setup page says you can run Claude Code natively on Windows or inside WSL, and the native route needs nothing extra. You don't need to run the installer as Administrator either. Open PowerShell or CMD, paste the matching command and launch claude from any terminal afterward. The Windows requirement is Windows 10 version 1809 or later, or Windows Server 2019 or later.
| Option | What it needs | Sandboxing | Pick it when |
|---|---|---|---|
| Native Windows | Nothing; Git for Windows is optional | Not supported | Your projects and tools live on Windows |
| WSL 2 | WSL 2 enabled | Supported | You use Linux toolchains or want sandboxed commands |
| WSL 1 | WSL 1 enabled | Not supported | WSL 2 isn't available to you |
Git for Windows is optional but useful. With it, Claude Code uses Git Bash for its Bash tool. Without it, Claude Code falls back to the PowerShell tool. If you do run WSL, install and launch claude inside the WSL terminal with the Linux command, not from PowerShell.
Four Windows traps account for most failed first tries, all documented on Anthropic's troubleshooting page. Running curl -fsSL ... | bash in PowerShell fails with A parameter cannot be found that matches parameter name 'fsSL', because curl is an alias there. Opening the entry called Windows PowerShell (x86) triggers Claude Code does not support 32-bit Windows even on a 64-bit machine, so open the one without the x86 suffix. An older Claude Desktop can register a Claude.exe that takes PATH priority, so typing claude opens the desktop app instead of the CLI, and updating Desktop fixes it. And an npm install can fail with running scripts is disabled on this system until you set the execution policy to RemoteSigned for your user, or simply use the PowerShell installer, which installs a binary instead of a script.
What do you need before you install Claude Code?
You need a supported system, 4 GB of RAM, an internet connection and a paid Claude account. Anthropic's requirements list macOS 13.0 or later, Windows 10 1809 or later, Ubuntu 20.04 or later, Debian 10 or later, and Alpine Linux 3.19 or later, on x64 or ARM64 processors. The shell can be Bash, Zsh, PowerShell or CMD. Git is optional. On Alpine, install bash and curl first with apk add bash curl, or the install command fails with a not found error.
Anthropic's setup page says Claude Code requires a Pro, Max, Ultra, Team, Enterprise or Console account, and adds that the free claude.ai plan does not include Claude Code access. Third party routes through Amazon Bedrock, Google Cloud's Agent Platform and Microsoft Foundry also work. Claude Code is tied to Anthropic's supported countries, and the message App unavailable in region means yours isn't covered.
| Plan | Monthly price | Claude Code included | Usage, per the pricing page |
|---|---|---|---|
| Free | $0 | No | Limited |
| Pro | $20, or $17 billed as $200 up front | Yes | 1x |
| Max | $100 | Yes | 5x Pro |
| Ultra | $200 | Yes | 10x Pro weekly |
| Team, standard seat | $25, or $20 billed yearly | Yes | More than Pro |
| Team, premium seat | $125, or $100 billed yearly | Yes | 5x a standard seat |
| Enterprise | $20 a seat a month billed yearly, 20 seat minimum, plus API rate usage | Yes | Billed at API rates |
| Console | Billed per token | Yes | Pay as you go |
Prices are from claude.com/pricing on 28 November 2026, exclude tax, and can change. The cheapest legitimate way in is Pro on annual billing at $17 a month, or Pro monthly at $20. The Console account is the other door: it bills API usage per token, so a light user can spend less than a plan, and a heavy one far more. What each route costs in practice is worked out in Claude Code pricing, and whether any of it is free is answered in is Claude Code free.
One quirk matters if you hold both kinds of access. If the ANTHROPIC_API_KEY variable is set and you approve the key when Claude Code asks, it skips the login prompt and bills the API instead of your plan.
Is the Claude Code download the same as the Claude desktop app?
No, they are two installs that share an account. The terminal installer puts a claude command on your machine. The desktop app is a separate download that gives you Claude Code through a Code tab without opening a terminal. Anthropic's setup page links desktop downloads for macOS, Windows and Linux, and a paid plan is needed for Claude Code in either.
Choose the terminal install if you work in a shell, want it inside scripts, or use editors that call the CLI. Choose the desktop app if the command line puts you off. The setup page also points beginners to a terminal guide that shows how to open one and paste a command. The desktop app has its own walkthrough in Claude desktop app.
Mind the lookalikes. Search results for this query include third party guides that tell you to route traffic through someone else's API endpoint. The one reviewed for this page asks you to set a custom ANTHROPIC_BASE_URL and paste a key from a reseller. Anthropic's own install needs neither, and your prompts and code would pass through a stranger's server. Another guide in the results lists the npm package as @anthropic/claude-code, which isn't the name Anthropic's docs give. The package in the docs is @anthropic-ai/claude-code.
How do you check the install and sign in?
Run claude --version, then claude inside a project folder, and finish the browser login. A version number confirms the binary is on your PATH. Running claude opens an interactive session, and on first use it sends you through the browser to log in. Use claude doctor for a read-only report on install health, settings errors and the last update attempt, without starting a session.
Sign in can fail in places with no browser, such as WSL2, SSH and containers. Anthropic's fix is to press c at the login prompt to copy the URL, open it in a browser on your own machine, sign in, and paste the code it shows back into the terminal at Paste code here. Copy the whole code, including the # in the middle, or you get That doesn't look like the full code. If pasting does nothing, run claude auth login instead. A 403 Forbidden after login usually means your subscription isn't active, or a Console account lacks the Claude Code or Developer role.
Enterprise users can hit Claude Code access has not been granted for this account. That means an organization Owner set the role to Custom without Claude Code access. Only an Owner can change it. Ask yours, since nothing you run in the terminal will fix a role set in the organization's admin settings.
How do you update, pin or uninstall Claude Code?
Native installs update themselves in the background, and everything else needs a command. Claude Code checks for updates at startup and while running, and the new version takes effect the next time you start it. Run claude update to apply one right away. Homebrew, WinGet, apt, dnf and apk installs don't auto-update by default. On Homebrew and WinGet you can opt in by setting CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE to 1.
| Goal | How | |
|---|---|---|
| Stay about a week behind | Set "autoUpdatesChannel": "stable" in settings.json, or install with `curl -fsSL https://claude.ai/install.sh \ | bash -s stable` |
| Install a specific version | `curl -fsSL https://claude.ai/install.sh \ | bash -s 2.1.89` (PowerShell has its own form on the setup page) |
| Stop background updates | Set DISABLE_AUTOUPDATER to "1" in the env key of settings.json | |
| Stop every update path | Set DISABLE_UPDATES | |
| Homebrew channel | claude-code tracks stable, claude-code@latest tracks latest |
To uninstall a native install on macOS, Linux or WSL, delete ~/.local/bin/claude and the folder ~/.local/share/claude. On Windows, remove claude.exe from %USERPROFILE%\.local\bin and the %USERPROFILE%\.local\share\claude folder. Homebrew uses brew uninstall --cask claude-code, WinGet uses winget uninstall Anthropic.ClaudeCode and npm uses npm uninstall -g @anthropic-ai/claude-code. Deleting ~/.claude as well removes your settings, allowed tools, MCP servers and session history, so do that last and only if you mean it.
What do the first install errors mean?
Most install errors are a PATH problem or the wrong command for your shell, and each has a one line fix. Anthropic's troubleshooting page maps every message, and these are the ones people meet first, as of November 2026:
| What you see | What it means | Fix | |
|---|---|---|---|
command not found: claude or 'claude' is not recognized | The install folder isn't on your PATH | Open a new terminal, then add ~/.local/bin (macOS, Linux) or %USERPROFILE%\.local\bin (Windows) to PATH | |
The token '&&' is not a valid statement separator | You pasted the CMD command into PowerShell | Use `irm https://claude.ai/install.ps1 \ | iex` |
'irm' is not recognized as an internal or external command | You pasted the PowerShell command into CMD | Use the CMD command, or open PowerShell | |
syntax error near unexpected token '<' or curl: (22) 403 | The script came back as a web page | Usually a proxy or network filter; see the troubleshooting page | |
Killed during a Linux install | The machine ran out of memory | Free memory or add swap, then rerun | |
Cask 'claude-code' is unavailable | Homebrew is out of date | Update Homebrew, then reinstall | |
TLS connect error or CRYPT_E_NO_REVOCATION_CHECK | Certificates or a blocked revocation check | Update CA certificates or configure your corporate certificates | |
App unavailable in region | Claude Code isn't offered in your country | Check Anthropic's supported countries |
On macOS and Linux the usual PATH fix is echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc for zsh, then source ~/.zshrc. Bash users write to ~/.bashrc. A terminal that was already open keeps its old PATH, and a terminal inside an editor takes its PATH from the editor, so quit and reopen it. If the install runs but you still see an old version or nothing, run claude doctor before reinstalling.
What if you want Claude for code without installing anything?
If you want Claude's answers about code rather than an agent that edits your repo, a chat app needs no install, no terminal and no Claude plan. Whizi puts Claude, GPT and Gemini in one app in your browser on Mac and Windows, so you can paste a stack trace or a function and ask each model for its take. The free plan gives 10 messages a day on Whizi AI, Auto and Claude Haiku, with no card. The larger Claude, GPT and Gemini models start on Pro, whose first week costs $1.99.
Where Whizi loses is plain. It can't read your project folder, edit files, run your tests or work in a terminal, and Claude Code does all of that. Pick Claude Code when you want changes made across a repo and tests run for you. Pick a chat app when you want an explanation, a review or a draft you'll paste in yourself. Side by side model chats, where two models answer the same prompt, are on Pro.
- Choose the command for your shell: bash on Mac, Linux and WSL, irm in PowerShell, curl with install.cmd in CMD
- Open a new terminal after the install and run claude --version
- Sign up for a paid Claude plan or a Console account, because the free claude.ai plan has no Claude Code
- Run claude in your project folder and finish the browser login
- Run claude doctor if the command is missing or the version looks old
- If you installed with Homebrew or WinGet, schedule the upgrade command yourself
Frequently asked questions
Do I need WSL to install Claude Code on Windows?
No. Anthropic's setup page says Claude Code runs natively on Windows or inside WSL. Run irm https://claude.ai/install.ps1 | iex in PowerShell, no Administrator rights needed. Git for Windows is optional, and without it Claude Code uses PowerShell as its shell tool. WSL adds sandboxing, which native Windows lacks.
Is Claude Code free to download?
The download is free, but using it is not. Anthropic says Claude Code requires a Pro, Max, Ultra, Team, Enterprise or Console account, and the free claude.ai plan does not include it. Pro is $20 a month, or $17 a month billed as $200 up front, as of November 2026.
Can I install Claude Code with npm?
Yes, with npm install -g @anthropic-ai/claude-code@latest, but the native installer is the recommended route. The npm package needs Node.js 22 or later and installs the same native binary. Never use sudo, because an install that needs it cannot update itself, and use npm install again to upgrade, not npm update -g.
Why does Claude Code say command not found after installing?
The install folder is not on your PATH yet. Open a new terminal first, since an old one keeps its old PATH. If it still fails, add ~/.local/bin on macOS and Linux, or %USERPROFILE%\.local\bin on Windows, to PATH, then run claude --version and claude doctor.