Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

Claude Code Install (2026): How to Install It on Mac, Windows and Linux

To install Claude Code, open a terminal and run Anthropic's native installer: one command on a Mac, Linux or WSL, or one command in Windows PowerShell or CMD. Then open a new terminal window and type claude --version; if it prints a version number followed by (Claude Code), you're done, and if it says the command isn't found, the install folder isn't on your PATH yet.

One thing before you copy anything. As of October 2026, Anthropic's setup page says Claude Code needs a Pro, Max, Ultra, Team, Enterprise or Console account, and the free claude.ai plan doesn't include it. If you're still weighing that up, I've written about what the free Claude plan leaves out. Everything below assumes you've got a paid plan ready to sign in with.

Which install route to pick

Anthropic's quickstart offers four routes. Only one of them looks after its own updates, which is the detail most install guides skip.

RouteWho it suitsUpdates itself?
Native installer (marked Recommended)Mac, Linux, WSL and WindowsYes, in the background
HomebrewMac users who already install apps with HomebrewNo, you run brew upgrade
WinGetWindows users who already use WinGetNo, you run winget upgrade
apt, dnf or apkDebian, Ubuntu, Fedora, RHEL and AlpineNo, updates come with your normal system upgrades

If you've never opened a terminal, it's the Terminal app on a Mac and PowerShell or Command Prompt on Windows. Anthropic's own terminal guide shows how to open one and paste a command. And if you'd rather never see a command line at all, the Claude Code desktop app is the no-terminal route to the same tool.

The install commands to copy

Paste the line for your system, press Enter, and wait. The install command shows no progress while it downloads, so a quiet window doesn't mean it's stuck.

Mac, Linux or WSL (native installer)

curl -fsSL https://claude.ai/install.sh | bash

Windows PowerShell (native installer)

irm https://claude.ai/install.ps1 | iex

Windows CMD (native installer)

curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

Homebrew (Mac) or WinGet (Windows)

brew install --cask claude-code
winget install Anthropic.ClaudeCode

On Windows you don't need to run any of these as Administrator. Anthropic's setup page says so plainly, so skip the right-click, Run as administrator habit.

PowerShell or CMD: the mix-up that stops most Windows installs

Windows has two command windows, and each needs its own line. You can tell them apart by the prompt: PowerShell shows PS C:\ at the start, and CMD shows C:\ without the PS. If you paste the wrong one, the error tells you exactly what happened:

The error you seeWhat it meansWhat to do
The token '&&' is not a valid statement separatorYou're in PowerShell but ran the CMD lineRun the PowerShell line instead
'irm' is not recognized as an internal or external commandYou're in CMD but ran the PowerShell lineRun the CMD line instead

Check it worked, step by step

  1. Wait until the installer finishes and hands the prompt back to you.
  2. Close that window and open a new terminal window. A window that was already open keeps its old settings.
  3. Type claude --version and press Enter. A working install prints a version number followed by (Claude Code).
  4. For a fuller health check, run claude doctor. It prints read-only diagnostics about your install and settings, including warnings with suggested fixes, without starting a session.
  5. Go to a project folder, type claude, and follow the login prompts in your browser. Once you've signed in, your credentials are stored and you won't be asked again.

The fix for 'command not found'

If installation succeeded but your terminal says claude isn't found or isn't recognized, the install folder isn't on your PATH, which is the list of folders your terminal searches for programs. The native installer puts claude in a hidden .local folder inside your home folder, and it doesn't change PATH itself. It does notice the problem, though: look in its output under Setup notes for a line starting Native installation exists but, followed by the fix for your system.

Work with me

Want AI doing the heavy lifting in your marketing?

I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.

Anthropic's troubleshooting page lists the usual reasons the fix still doesn't seem to work:

  • The window predates the change. Open a new terminal window. A terminal inside an editor takes its PATH from the editor, so quit and reopen the editor too.
  • You only installed the VS Code extension. The extension bundles a private copy of Claude Code for its own chat panel and doesn't add it to PATH. Run the standalone install to use claude from a terminal.
  • Claude Desktop got there first. On Windows, an older version of Claude Desktop may register its own Claude.exe that takes priority, so typing claude opens the desktop app instead. Updating Claude Desktop to the latest version fixes it.

Windows: native or WSL

You can run Claude Code straight on Windows or inside WSL, the Linux layer Windows can run. Here's the choice as Anthropic's setup page lays it out:

OptionSandboxingWhen to use it
Native WindowsNot supportedWindows projects and tools
WSL 2SupportedLinux tools, or when you want sandboxed commands
WSL 1Not supportedOnly if WSL 2 isn't available

Git for Windows is optional on native Windows. Without it, Claude Code uses PowerShell as its shell, and WSL setups don't need it at all. If you go the WSL route, you install and launch claude inside the WSL terminal, not from PowerShell or CMD.

Updates: what looks after itself and what doesn't

A native install updates itself in the background. Homebrew, WinGet, apt, dnf and apk installs don't, by default, so you'll need to remember to run brew upgrade claude-code or winget upgrade Anthropic.ClaudeCode now and then to get new features and security fixes. Running claude doctor shows the result of the last update attempt Claude Code recorded.

Homebrew has a quirk worth knowing. It offers two versions. The claude-code cask tracks the stable channel, which is typically about a week behind and skips releases with major regressions. The claude-code@latest cask gets new versions as soon as they ship. If you install the latest one, upgrade it with brew upgrade claude-code@latest, not the plain name.

For the record, the system requirements as of October 2026: macOS 13.0 or later, Windows 10 1809 or later or Windows Server 2019 or later, Ubuntu 20.04, Debian 10 or Alpine Linux 3.19 or later, 4 GB of RAM or more, an x64 or ARM64 processor, and an internet connection. If you ever uninstall and claude still runs afterwards, you've probably got a second installation or a leftover shortcut from an older installer.

My advice for a first install

I'd use the native installer on every system, and I'd skip Homebrew and WinGet unless you already manage your apps that way. The native install keeps itself current, and the others quietly fall behind until you remember to upgrade them. On Windows, I'd start native and only move to WSL if you need sandboxing or Linux tools. Once claude --version answers, my walkthrough for people who've never written code picks up where this page stops.

If your team is deciding who should be using Claude Code and how to get it set up safely on everyone's machines, that's the kind of AI enablement I help with. I run AI training and workshops for teams, and help businesses with AI enablement and workflow automation, so the busywork runs itself and people get time back. Most of that work is with SaaS marketing teams and small businesses. Here's how we can work together.

Frequently asked questions

How do I install Claude Code?

Open a terminal and run the native installer command for your system: the curl command on Mac, Linux or WSL, the irm command in Windows PowerShell, or the curl command for Windows CMD. Then open a new window and run claude --version to check it worked.

Can I install Claude Code on the free Claude plan?

You can run the installer, but as of October 2026 Anthropic says Claude Code needs a Pro, Max, Ultra, Team, Enterprise or Console account, and the free claude.ai plan doesn't include Claude Code access.

Why does my terminal say claude is not found after installing?

The install folder isn't on your PATH yet. Open a new terminal window first, then check the installer's Setup notes output, which prints the fix for your system.

Does Claude Code update itself?

A native install updates itself in the background. Homebrew, WinGet, apt, dnf and apk installs don't by default, so you run the upgrade command for that tool yourself.

Do I need Git for Windows to install Claude Code?

No. Git for Windows is optional on native Windows. Without it, Claude Code uses PowerShell as its shell, and WSL setups don't need it.

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.