Guides

How to Install Claude Code on Mac, Windows and Linux (Even If You've Never Used a Terminal)

How to install Claude Code on Mac, Windows and Linux, step by step, written for people who have never opened a terminal. Plus the no-terminal options.

Published
November 25, 2026
Last updated
November 25, 2026
Reading time
17 min read
Author
Ethan Rogers

Most guides on how to install Claude Code assume you already live in a terminal. A lot of the people I train on Claude Code don't. They run marketing teams, agencies and operations, and the first time they see a black window with a blinking cursor, they assume they are in the wrong place.

You are not. Installing Claude Code is one command you copy and paste, then one more word to start it. This guide covers every step on Mac, Windows and Linux, explains what the terminal actually is, and shows the two ways to use Claude Code with no terminal at all. Every command here comes from Anthropic's Claude Code docs, checked on November 25, 2026.

The short version

You need a paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Claude Console account. The free plan does not include Claude Code. Open a terminal, paste the line for your system, press Enter, then type claude.

Your computer Paste this
Mac, Linux or WSL curl -fsSL https://claude.ai/install.sh | bash
Windows PowerShell irm https://claude.ai/install.ps1 | iex
Windows CMD curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

Don't want a terminal? Install the Claude desktop app and use its Code tab instead.

What Claude Code is

Claude Code is Anthropic's coding agent. You describe a job in plain English, and it reads the files in a folder, makes changes, runs commands and tells you what it did. Anthropic's own description is an "agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools."

The important word is agent. A chat window gives you text to copy somewhere else. Claude Code does the work in place: it creates the files, edits them and runs them, and it asks your permission before it does anything you haven't allowed.

It is not only for developers. I use it every day for code, but also for research, file cleanup, writing and running the agents behind my own products. The terminal guide in Anthropic's docs even suggests non-coding first tasks like renaming screenshots on your Desktop based on what is in them.

It runs in the terminal, in VS Code and JetBrains, in the Claude desktop app and on the web, all on the same engine. This guide covers the terminal install first, because that's where people get stuck, then the no-terminal routes.

What a terminal is (and why it isn't scary)

A terminal is a window where you type instructions to your computer instead of clicking. Every Mac, Windows PC and Linux machine already has one. You type a command, press Enter, and the computer does it.

Three things to know before you start:

  • You can't click around inside it. You type, and you use the arrow keys. Anthropic's terminal guide says the same.
  • Pasting is normal. Nobody types install commands by hand. You copy them from a page like this one and paste.
  • No progress bar doesn't mean nothing is happening. The Claude Code installer shows no progress while it downloads. Leave the window open and wait.

On Windows there are two different terminal programs, PowerShell and CMD (Command Prompt). They look almost the same but use different commands, which causes most Windows install problems. I'll show you how to tell them apart in Step 1.

What you need before you start

A computer that meets the requirements. From Anthropic's system requirements:

Minimum
Mac macOS 13.0 or later
Windows Windows 10 version 1809 or later, or Windows Server 2019 or later, 64-bit
Linux Ubuntu 20.04+, Debian 10+ or Alpine Linux 3.19+
Hardware 4 GB of RAM or more, x64 or ARM64 processor
Network An internet connection, in an Anthropic supported country

A Claude account that includes Claude Code. The docs are direct: "Claude Code requires a Pro, Max, Ultra, Team, Enterprise, or Console account. The free claude.ai plan does not include Claude Code access." On claude.com/pricing today, Pro is $20 a month ($17 a month billed annually), Max is $100 and Ultra is $200. A Console account is pay-as-you-go API access with prepaid credits. If you are not sure which to get, I break it down in Claude Code pricing. Short answer: start on Pro.

On Windows, optionally Git for Windows. Anthropic recommends Git for Windows so Claude Code can use its Bash tool. It is optional. Without it, Claude Code uses PowerShell to run commands instead. If you install it, click Next through the installer and keep the defaults, including the recommended option on the "Adjusting your PATH environment" screen. If you aren't sure whether you already have it, Anthropic's advice is to install it anyway.

A folder to work in. Claude Code works inside whatever folder you start it from. A project you already have is fine. An empty new folder is also fine, and I'll show you how to make one.

You do not need Node.js, Python, or any developer tools for the recommended install. Older guides tell you to install Node.js first and use npm. That is no longer the recommended route (more on that below).

Step 1: Open a terminal

Find the terminal app on your computer and open it. You'll get a window with a blinking cursor, and that cursor is where you paste commands.

On a Mac

Press Cmd + Space to open Spotlight, type Terminal, and press Enter.

On Windows

Press Win + X and choose Windows PowerShell or Terminal from the menu. You can also search for "PowerShell" in the Start menu.

Now check which one you are in. Look at the start of the line:

  • PowerShell shows PS C:\Users\YourName>
  • CMD shows C:\Users\YourName> with no PS

If you see PS, use the PowerShell command in Step 2. If you don't, use the CMD command. One more trap from the docs: if your Start menu shows both "Windows PowerShell" and "Windows PowerShell (x86)", pick the one without x86. The x86 version is 32-bit and Claude Code will refuse to install from it.

On Linux

Press Ctrl + Alt + T on most distributions, or search for "Terminal" in your application menu.

Step 2: Paste the install command

Copy the one line for your system, paste it into the terminal, and press Enter. These are the native installers, which Anthropic labels as recommended. They put Claude Code in your user folder, so you don't need to be an administrator.

Mac, Linux or WSL

Paste with Cmd + V on a Mac or Ctrl + Shift + V on Linux:

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

In plain English: curl downloads the installer script from claude.ai, and | bash runs it.

Windows PowerShell

Paste with Ctrl + V or a right-click:

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

irm fetches the installer and iex runs it. This is the irm https://claude.ai/install.ps1 | iex line people search for, and it only works in PowerShell.

Windows CMD

If your prompt has no PS in front, you are in CMD. Use this instead:

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

That downloads the installer to a file, runs it, and deletes the file afterwards.

Then wait. When it finishes you should see "Claude Code successfully installed!" If you see an error, jump to the troubleshooting table further down.

Step 3: Check that it installed

Close the terminal window, open a new one, and run:

claude --version

A working install prints a version number followed by (Claude Code). Opening a new window matters, because the old window may not know where the new program lives yet.

If you see command not found: claude (Mac or Linux) or 'claude' is not recognized (Windows), the install worked but your terminal can't find it. That is a PATH problem, and the fix is in the troubleshooting table. It is the single most common issue.

For a deeper check, Anthropic includes a diagnostic command that reports install health, settings errors and warnings without starting a session:

claude doctor

Step 4: Go to your project folder

Claude Code works on the folder your terminal is currently in, so move into the folder you want it to work on first. The command for that is cd, short for "change directory."

If you have a project already, type cd, a space, then the path to the folder. On a Mac, a handy shortcut is to type cd (with the space) and then drag the folder from Finder onto the Terminal window. It fills in the path for you. Press Enter.

If you want to start fresh, make a new folder and move into it. These two commands work on Mac, Linux, PowerShell and CMD:

mkdir my-first-project
cd my-first-project

Step 5: Start Claude Code and log in

Type claude and press Enter:

claude

The first time, Claude Code asks you to log in. A browser window opens. Sign in with your Claude account (or your Console account) and approve access, then come back to the terminal. Claude Code stores your login, so you only do this once per computer.

If the browser doesn't open on its own, press c to copy the login URL and paste it into your browser yourself. That also works when the link wraps across lines and can't be clicked.

Once you're in, you'll see the Claude Code prompt with the version, current model and folder shown above it.

Step 6: Give it a first task

Type what you want in plain English and press Enter. Good first tasks from Anthropic's quickstart and terminal guide:

what does this project do?
make me a simple webpage that says hello world
explain the folder structure

When Claude wants to create or change a file, it asks first. Press Enter to choose Yes and approve it. If you made a webpage, double-click the HTML file in your folder to open it in your browser.

A few keys you'll use constantly, all from the official docs:

Key or command What it does
Esc Interrupt Claude while it's working
Shift + Tab Switch permission mode (how much Claude can do without asking)
/help List available commands
/login Switch accounts or log in again
/clear Start a new conversation
exit, or Ctrl + D twice Leave Claude Code

How to know it worked

You're set up when claude --version prints a version in a new window, claude opens without asking you to log in again, and Claude can answer questions about your folder and create a file after you approve it. If any of those fail, the troubleshooting table below covers the usual causes.

No terminal? Use the desktop app or VS Code

If you'd rather never touch a terminal, you don't have to. Both of these are official Anthropic routes and both need the same paid plan.

The Claude desktop app (Code tab)

The desktop app is the easiest way in for non-developers. Per Anthropic's desktop quickstart, "the desktop app includes Claude Code, so you don't need to install Node.js or the CLI to use the Code tab."

  1. Download the app from the desktop quickstart page. There's a universal build for Mac (Intel and Apple Silicon), Windows x64 and Windows ARM64 installers, and a beta for Ubuntu and Debian installed with apt.
  2. Open Claude and sign in with your Anthropic account.
  3. Click the Code tab at the top of the sidebar. If the tabs only show icons, hover to see the names. If it asks you to upgrade, you're on the free plan.
  4. Under the prompt box, click the environment selector and choose the top entry in the Local group. Then click the folder control next to it, choose Open folder…, and pick your project.
  5. Type what you want, the same way you would in the terminal.

The app shows changes as a diff you can review, and the permission mode under the prompt box controls whether Claude waits for your approval. Manual asks before editing files or running commands, which is where I'd start. You can switch to Accept edits, Plan or Auto later.

The VS Code extension

If you already use VS Code (or Cursor), the extension gives you Claude Code in a panel next to your files.

  1. Make sure VS Code is version 1.94.0 or later (Help > About).
  2. Open the Extensions view with Cmd + Shift + X on a Mac or Ctrl + Shift + X on Windows and Linux.
  3. Search for "Claude Code" and click Install.
  4. Click the Spark icon in the top right of the editor (it shows when a file is open), or click ✻ Claude Code in the bottom-right status bar.
  5. Click Sign in and finish in your browser.

One thing that confuses people: the extension bundles its own private copy of Claude Code for its chat panel, but it does not add the claude command to your terminal. If you want to type claude in VS Code's built-in terminal too, do the normal install from Step 2. If you use Cursor and are weighing the two, I compare them in Claude Code vs Cursor.

Other ways to install Claude Code

The native installer in Step 2 is the one Anthropic recommends, and it's the one I'd use. These alternatives exist if you already manage software another way.

Homebrew (Mac). If you use Homebrew:

brew install --cask claude-code

The claude-code cask follows the stable channel, which Anthropic says is "typically about a week behind and skips releases with major regressions." For every release as it ships, install claude-code@latest instead.

WinGet (Windows).

winget install Anthropic.ClaudeCode

Linux package managers. Anthropic publishes signed apt, dnf and apk repositories for Debian, Ubuntu, Fedora, RHEL and Alpine. The setup takes several commands, including verifying a signing key, so follow the Linux package manager section of the docs rather than copying from a third-party guide.

WSL on Windows. If you work inside WSL, open your WSL distribution and run the Mac/Linux command there. You install and launch claude inside WSL, not from PowerShell or CMD. WSL setups don't need Git for Windows.

npm (the old method). Many older tutorials say to run npm install -g @anthropic-ai/claude-code. It still works, but it's no longer the recommended path. It needs Node.js 22 or later, and the docs warn: "Do NOT use sudo npm install -g," because it causes permission problems. The current npm package installs the same native program as the installer. If you have no reason to use npm, don't.

How to update Claude Code

How you update depends on how you installed it.

Native installer (Step 2). You don't need to do anything. Claude Code checks for updates when it starts and while it runs, downloads them in the background, and switches over the next time you start it. To update right now:

claude update

Homebrew. These don't auto-update by default. Run the one that matches the cask you installed:

brew upgrade claude-code
brew upgrade claude-code@latest

WinGet.

winget upgrade Anthropic.ClaudeCode

npm.

npm install -g @anthropic-ai/claude-code@latest

Anthropic specifically says to avoid npm update -g, which may not move you to the newest release.

If you'd like Homebrew or WinGet installs to update themselves too, the docs describe setting CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE to 1. And if the session footer ever shows a red "Auto-update failed" line, you can keep working. Run claude update in your terminal when convenient to see the actual error.

What to do next

Once it's running, the useful next steps are:

  • Write a CLAUDE.md file. It's a markdown file in your project that Claude Code reads at the start of every session, for your standards and preferences. You can ask Claude to create one: "Create a CLAUDE.md with instructions for this codebase."
  • Build a skill for work you repeat. I wrote up what makes them work in How to build Claude Code skills that actually work.
  • Connect your tools. Claude Code can use MCP servers to reach things like Google Drive, Jira or Slack. See how to connect apps to Claude with MCP.
  • Run more than one agent. When you're comfortable, Claude Code agent teams is how you split bigger jobs across several agents.

Common problems and fixes

Every fix here comes from Anthropic's installation troubleshooting page.

What you see What it means and how to fix it
command not found: claude (Mac/Linux) Installed, but not on your PATH. The installer prints the fix under "Setup notes." On a Mac with the default Zsh, run echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc then source ~/.zshrc. On Linux with Bash, use the same lines with ~/.bashrc. Open a new window and try again.
'claude' is not recognized (Windows) Same problem on Windows. In PowerShell run $currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User') then [Environment]::SetEnvironmentVariable('PATH', "$currentPath;$env:USERPROFILE\.local\bin", 'User'). Close PowerShell, open a new window, run claude.
'irm' is not recognized You're in CMD, not PowerShell. Open PowerShell, or use the CMD command from Step 2.
The token '&&' is not a valid statement separator The opposite: you pasted the CMD command into PowerShell. Use the PowerShell command.
syntax error near unexpected token '<' or HTML in the terminal The download returned a web page instead of the installer. If it says "App unavailable in region," Claude Code isn't offered in your country. Otherwise run it again, or on a Mac use brew install --cask claude-code.
Could not create SSL/TLS secure channel (older Windows 10) Run [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 in PowerShell, then the install command again.
Claude Code does not support 32-bit Windows On a 64-bit PC you opened "Windows PowerShell (x86)." Close it and open the one without x86.
dyld: cannot load or "built for Mac OS X 13.0" Your macOS is older than 13.0. Update it through Software Update.
Permission errors from an old npm install Switch to the native installer from Step 2. Don't fix it with sudo.
Browser doesn't open for login Press c to copy the login URL and paste it into a browser.
API Error: 403 after logging in Check your subscription is active at claude.ai/settings. The free plan doesn't include Claude Code.
"This organization has been disabled" despite paying An old ANTHROPIC_API_KEY in your environment is overriding your subscription. Remove it from your shell profile and restart. /status shows which login is active.
Code tab asks you to upgrade (desktop app) You're on the free plan. Claude Code needs Pro or higher.

If none of these match, run claude doctor in your terminal, or /doctor inside Claude Code, which checks your install and proposes fixes.

Fine print

  • Plans and prices change. Everything here was checked against Anthropic's pages on November 25, 2026. Check claude.com/pricing before you buy.
  • Usage is shared. Anthropic's help center says plan limits "are shared across Claude and Claude Code." Pro and Max have a five-hour limit and a weekly limit. Agent work uses more than chat, so heavy days on Pro hit the limit sooner. The pricing guide covers this.
  • Claude Code acts on your computer. It can edit and delete files and run commands. It asks first by default. Read what it's asking before you press Enter, and start in a folder that doesn't hold anything you can't lose. Using Git, or at least a backup, is a good habit.
  • Uninstalling is documented for each install method on the setup page.

Frequently asked questions

Is Claude Code free to install?

The program is free to download, but using it needs a paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Console account with prepaid API credits. Anthropic's docs say the free claude.ai plan does not include Claude Code. Pro is $20 a month on claude.com/pricing today.

Can I use Claude Code if I'm not a developer?

Yes. You give it instructions in plain English, and it can build simple sites, organize files, write documents and explain code. The desktop app's Code tab removes the terminal entirely, and a lot of the people I train on Claude Code are not developers.

How do I install Claude Code on Windows?

Open PowerShell (Win + X, then Windows PowerShell or Terminal) and run irm https://claude.ai/install.ps1 | iex. If your prompt doesn't start with PS, you're in CMD and need the CMD command instead. Git for Windows is optional but recommended so Claude Code can use Bash.

What does irm https://claude.ai/install.ps1 | iex do?

It's the official Windows PowerShell install command. irm (Invoke-RestMethod) downloads Anthropic's installer script from claude.ai, and iex (Invoke-Expression) runs it. It only works in PowerShell, not CMD.

How do I update Claude Code?

If you used the native installer, it updates itself in the background. Run claude update to update immediately. Homebrew and WinGet installs need brew upgrade claude-code or winget upgrade Anthropic.ClaudeCode, and npm installs need npm install -g @anthropic-ai/claude-code@latest.

Do I need Node.js to install Claude Code?

No. The recommended native installer doesn't need Node.js, and neither does the desktop app. Node.js 22 or later is only needed if you choose the npm method.

Why does it say claude: command not found after I installed it?

The install worked, but your terminal doesn't know where to find it yet. Open a new terminal window first. If that doesn't fix it, add ~/.local/bin (Mac and Linux) or %USERPROFILE%\.local\bin (Windows) to your PATH using the commands in the troubleshooting table.

Want your team set up properly?

Getting Claude Code installed is the easy part. Getting a team to hand it real work, with the right instructions, skills and review habits, is where the value is. I run hands-on Claude Code training for teams, technical and non-technical. Book a Claude Code training session and I'll get your people from first install to running real work.

SharePost on X

Dispatches

A note when something ships or when there is something worth reading.