Installing Claude Code Takes One Command. Here's the Whole Story.
When I first went to install Claude Code, I braced myself for a long setup. Developer tools usually mean a page of prerequisites, a package manager argument, and at least one error message that sends you to a forum. Claude Code was different. One command, about a minute, and I was typing my first prompt.
That is the short answer: a Claude Code install is one command. Run the native installer for your system, open a terminal in your project folder, type claude, and sign in in your browser. The rest of this guide is the detail that makes that one command work the first time — which method to pick, what you need before you start, how to check it worked, and what to do when it doesn't.
One warning up front, because it saves the most time. Installing Claude Code is free, but using it is not. The free Claude plan does not include Claude Code at all. You need a paid plan — Pro at $20 a month is the cheapest way in — or a Claude Console account billed per token. If you run the installer without a paid plan, everything will look fine until you try to sign in, and then it will stop you. Sort the plan out first.
Before Your Claude Code Install: What You Actually Need
Claude Code is a terminal tool, and its requirements are modest. Almost any machine bought in the last few years clears them without trying. Here is the checklist, straight from Anthropic's own setup docs as I checked them in November 2026.
- macOS 13.0 (Ventura) or later. Both Apple Silicon and Intel Macs work through the same installer.
- Windows 10 build 1809 or later, Windows 11, or Windows Server 2019 or later. 64-bit only, x64 or ARM64. You do not need administrator rights.
- Linux: Ubuntu 20.04 or later, Debian 10 or later, or Alpine Linux 3.19 or later. Fedora and RHEL work through the dnf package repository. WSL on Windows uses the same Linux command.
- 4 GB of RAM minimum. 8 GB is more comfortable if you run Claude Code alongside an editor and a browser, which you will.
- A paid Claude plan or a Console account. Pro, Max, Ultra, Team, Enterprise, or API billing through the Console. The free plan does not include Claude Code.
- An internet connection for the download and the browser sign-in. Claude Code also needs to reach Anthropic's servers while it works, so a connection that blocks those domains will fail at sign-in, not at install.
Notice what is not on the list. Node.js. The old guides all start with "install Node.js first", and that advice is out of date. The native installer ships a self-contained binary with its own runtime, so it needs nothing else. Node.js only matters if you choose the npm install method, and even then only to run the install, not to run Claude Code. If a guide tells you Node is a hard requirement, it was written before January 2026, when Anthropic moved to the native installer. Skip it and read on.
One more check before you start: make sure you are in a supported region. Claude Code is available in most countries, but a few are not on Anthropic's supported list, and the installer will fail with an "App unavailable in region" message if yours is one of them. That is an account and region problem, not a broken download, and no reinstall fixes it.
Claude Code Install on Mac: One Command
On a Mac, the recommended Claude Code install method is the native installer. Open Terminal — you will find it in Applications, then Utilities, or just search for it with Spotlight — and paste this one line:
curl -fsSL https://claude.ai/install.sh | bash
Press Enter. The script downloads the right binary for your Mac, Intel or Apple Silicon, puts it on your PATH, and finishes in under a minute on a normal connection. There is nothing to click and nothing to configure. When it finishes, close Terminal and open a fresh one, then check the install worked:
claude --version
You should see a version number like 2.1.302. If you see "command not found" instead, the installer added itself to your PATH but your current Terminal window opened before that change. Close it and open a new one. That fixes it in almost every case.
There is one alternative worth knowing about, and it is the one Mac users ask me about most. If you manage your software through Homebrew, you can install Claude Code that way instead:
brew install --cask claude-code
It installs the same tool. The trade-off is updates. The native installer updates itself in the background, quietly, so you are always on the current version. The Homebrew cask does not auto-update unless you opt in by setting CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE=1. If you like Homebrew and you remember to run brew upgrade, it is a fine choice. If you just want the tool to stay current on its own, use the native installer. My advice is simple: unless you already live in Homebrew, take the one-line installer and move on to the interesting part.
Claude Code Install on Windows: Three Ways
Windows gives you three official routes, and the right one depends on which terminal you use. All three install the same tool. Pick the one that matches your setup and ignore the rest.
PowerShell (the route most people should take). Open PowerShell — not Command Prompt — and run:
irm https://claude.ai/install.ps1 | iex
That is the whole install. It needs no administrator rights and no extra software. Git for Windows is optional, not a prerequisite, though you will want it if you plan to use Claude Code with git repositories, which is most real projects.
Command Prompt. If you use CMD instead of PowerShell, the command is:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
It downloads a small installer, runs it, and deletes it again. Same result, same tool.
WinGet. If you manage software with Microsoft's package manager, this works too:
winget install Anthropic.ClaudeCode
Like Homebrew on the Mac, WinGet does not auto-update Claude Code unless you opt in with the same CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE=1 setting. The native PowerShell installer updates itself, so it stays my recommendation.
One Windows-specific point that trips people up: after the install, open a new terminal window before you run claude --version. The installer updates your PATH for new shells, not the one you ran it in. If the old window says "command not found", it is almost never a failed install. It is a stale window.
Claude Code Install on Linux: Same Command as the Mac
Linux uses the same native installer as the Mac. Open your terminal and run:
curl -fsSL https://claude.ai/install.sh | bash
That covers Ubuntu, Debian, Alpine, and any other distribution that can run the script. On Ubuntu and Debian, the same command works inside WSL on Windows too, which is how a lot of Windows developers run Claude Code — natively on Windows for some projects, inside WSL for the Linux ones. Both work, and you can install it in both places if you use both.
If your team standardises on system packages, Anthropic also publishes repositories for apt, dnf, and apk. They work, but they do not auto-update, because package installs need elevated rights and Claude Code cannot update itself through them. For a personal machine, the native installer is the better default. For a managed fleet, the package route is the honest choice, and someone on the team will be responsible for updates.
Claude Code Install with npm (When the Native Installer Isn't Right)
The npm route is the one every older guide leads with, and a Claude Code install through npm still works, but it is no longer the recommended path. Use it when you have a specific reason: you want to pin a version, you are inside a container without curl, or your workflow already runs through Node. For everyone else, the native installer is shorter and stays updated on its own.
If you do go the npm route, you need Node.js 22 or later installed first. Check with node --version. On an older Node, npm prints an EBADENGINE warning and usually still installs, but you are on borrowed time. Then run:
npm install -g @anthropic-ai/claude-code
Two warnings here, and both matter. First, never run that command with sudo. A sudo install creates permission problems and a security risk, and it breaks Claude Code's own self-update later, because the updater runs without sudo and cannot write over files root owns. If npm complains about permissions, the fix is a Node version manager like nvm, which installs Node in your home directory, not a sudo in front of the command.
Second, know what npm actually installs. Since version 2.1.113, the npm package is just a wrapper. It downloads the same native binary the installer fetches, through a per-platform package, and links it as claude. Node is needed to run the install, not to run Claude Code afterwards. That is why the native installer could drop the Node requirement entirely: the tool never really needed it.
To update an npm install later, run npm install -g @anthropic-ai/claude-code@latest. Avoid npm update -g, which can stay pinned to the original version range and leave you thinking you updated when you didn't.
How to Update Claude Code
Updating Claude Code depends on which Claude Code install method you used, and this is where the native installer's auto-update earns its keep. If you used the native installer on Mac, Linux, WSL, or Windows, Claude Code updates itself in the background. You do not have to do anything, and most days you will never notice it happening.
When you want the newest version right now instead of waiting for the background update, just run:
claude update
That pulls the latest release and restarts on it. Run claude --version afterwards to confirm the number moved. As of mid-October 2026 the latest release was 2.1.302, with the stable channel serving 2.1.292, so the exact number on your machine will be higher by the time you read this. The number matters less than the habit: check it after an update, and check it again whenever something behaves oddly, because a surprising number of "bugs" are just an old version.
Homebrew and WinGet installs update through their own package managers — brew upgrade or winget upgrade — or automatically if you set the auto-update variable I mentioned earlier. Package-repository installs on Linux update when you run your system update. The npm install updates with the @latest command above. Pick the update path that matches your install path, and do not mix them. An npm install updated by the native updater, or the other way round, is how people end up with two copies of Claude Code on one machine and a very confusing afternoon.
Is Claude Code Free?
This is the question that brings most people to a guide like this one, and it deserves a straight answer. No, Claude Code is not free. The free Claude plan does not include it at all. Installing Claude Code costs nothing, but the moment you sign in and start a session, it draws on a paid plan.
The cheapest way in is Claude Pro at $20 a month, or $17 a month if you pay yearly. Pro includes Claude Code with usage limits measured in rolling five-hour windows and a weekly cap. Max is $100 a month for five times Pro's usage, and Ultra is $200 a month for ten times Pro's weekly usage with no five-hour limit once your account is verified. Team is $25 per seat a month. Or you can skip subscriptions entirely and pay per token through a Claude Console API account.
What does that mean in practice? If you are learning or building side projects, Pro is where almost everyone should start. A few focused sessions a week fit inside it comfortably. The plan only starts to bite when you are building every day, running long sessions, or leaving agents working overnight. I have a full breakdown of every plan, what the limits feel like in real use, and which one pays for itself in my Claude Code pricing guide, if you want the numbers before you pay.
One thing to watch: do not confuse "install Claude Code" with "try Claude Code free". There is no free trial of Claude Code itself. The free Claude plan lets you chat with Claude in the browser, which is a useful way to learn how it thinks, but the coding agent only starts when a paid plan or API billing is attached. Anyone offering you a free Claude Code login is offering you something that does not exist.
How to Use Claude Code in VS Code
A lot of people who search for how to install Claude Code actually want it inside VS Code, not in a bare terminal. Good news: Anthropic publishes an official Claude Code extension for VS Code, and it is the fastest setup of all, because the extension bundles its own copy of the CLI. No Node, no terminal install, no API key.
Here is the whole process. You need VS Code 1.94.0 or later — check under Help, then About, though any VS Code updated in the last year clears that bar easily. Open the Extensions view with Cmd+Shift+X on a Mac or Ctrl+Shift+X on Windows and Linux, search for "Claude Code", and check the publisher line reads Anthropic before you click Install. There are unofficial forks in the marketplace, and the publisher field is how you tell them apart. You can also skip the search entirely with the direct link vscode:extension/anthropic.claude-code, or install it from the command line with code --install-extension anthropic.claude-code.
Once it is installed, click the Spark icon in the top-right of the editor to open the panel, then sign in through your browser with the same paid Claude account. That is it. The panel is ready, and you can ask Claude Code to edit the file you have open, with the changes arriving as inline diffs you accept or reject one piece at a time.
Two things people get wrong here. First, the extension works in VS Code forks like Cursor too, through the Open VSX registry instead of Microsoft's marketplace. Second, and this one catches almost everyone: installing the extension does not put claude on your PATH. The copy of the CLI bundled with the extension is private to the panel. If you want to type claude in the integrated terminal, you still need the standalone install from earlier in this guide. They are two doors into the same tool, not one install that covers both.
Running claude inside a VS Code terminal, once the CLI is installed, auto-installs the IDE extension for you, which is a handy shortcut if you already have the terminal version and just want the panel. If you would rather it didn't, you can turn that off in /config under autoInstallIdeExtension, or set the CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL environment variable to 1.
Your First Commands After You Install Claude Code
The install is the easy part. The first five minutes after it are what decide whether Claude Code becomes a tool you use every day or a curiosity you open once. Here is the sequence I recommend, in order.
First, move into a project folder. Claude Code works on the directory you start it in, so cd into something real — a folder with actual files in it, not your home directory and not an empty folder. Then type claude and press Enter. The first run opens your browser for sign-in. Pick your paid Claude plan, approve the connection, and the terminal comes alive.
Once you are in, run /init. This is the command most beginners skip and most experienced users run first. It walks your project, reads the important files, and writes a CLAUDE.md file that tells Claude Code how your project works — what it is, how to run it, what to test. That file stays in your project, and every future session reads it. It is the difference between an assistant that guesses and one that knows.
Then try /help. It lists every built-in command, and it is worth reading once, slowly, because the command list is where you discover things like /config for settings, /login if you ever need to switch accounts, and /clear to start a fresh conversation without leaving the session. Finally, give it a small, real job. Not "build me an app". Something with a visible result: "add a footer with my contact links to every page", or "write a test for this function and run it". Small jobs teach you how it works. Big jobs teach you how it fails, and you do not want that lesson on day one.
Fixing the Install Errors Everyone Hits
Most Claude Code installs work the first time. When they don't, the failure is almost always one of a short list, and each one has a boring, fixable cause.
"command not found" after installing. Close the terminal and open a new one. The installer updates PATH for new shells, not the one you ran it in. If a fresh terminal still can't find it, check whether the installer actually finished — a network interruption halfway through leaves nothing behind, and re-running the command is the fix.
The npm install complains about permissions. Do not reach for sudo. Install Node through nvm instead, so Node lives in your home directory and npm can write where it needs to. A sudo install is the gift that keeps on giving: broken updates, root-owned files, and a Claude Code that cannot update itself.
EBADENGINE warning on an old Node. Your Node is older than 22. The install usually still completes, but upgrade Node and reinstall. Running on a warned-about Node version is how you get strange failures three weeks later that nobody can reproduce.
Sign-in fails or the browser loop never completes. Check that your plan actually includes Claude Code — the free plan does not — and that you signed in with the right account. People with two Google accounts or two Anthropic accounts hit this constantly. Sign out in the browser, sign in with the account that holds the paid plan, and run /login again.
"App unavailable in region". Your country or region is not on Anthropic's supported list. No reinstall, VPN trick, or different install method changes this. Check the supported-regions list in the official docs before you spend more time on it.
Everything installs, but Claude Code is slow or unresponsive. Check your RAM. The minimum is 4 GB, but a machine running Claude Code, VS Code, a browser with twenty tabs, and a build tool on 4 GB will crawl. Close tabs, or move to a machine with 8 GB. The tool is not broken. The machine is full.
Questions People Ask About Installing Claude Code
Do I need Node.js for a Claude Code install? Not with the native installer, which is the recommended method and needs nothing else. You only need Node.js 22 or later if you choose the npm install route.
How long does a Claude Code install take? About a minute on a normal connection, plus the browser sign-in. The download is small and there is nothing to configure. The whole process, install to first prompt, is under five minutes.
Can I install Claude Code on Windows without WSL? Yes. The native PowerShell installer runs directly on Windows 10 or 11, no WSL needed. WSL is an option, not a requirement, and many Windows developers install it both ways for different projects.
Does Claude Code work on a Chromebook? Only through the Linux container on ChromeOS, which is effectively a Linux install. There is no ChromeOS-native version.
Can I do a Claude Code install on two machines? Yes. Install it on every machine you use and sign in with the same account. Your plan's usage limits are per account, not per machine, so two machines share the same allowance.
What if I installed it with npm and want the native installer instead? Uninstall the npm version first with npm uninstall -g @anthropic-ai/claude-code, then run the native installer. Running both at once is how you end up with two copies and a confusing claude --version.
The Short Version
For a Claude Code install, run the native installer for your system: curl -fsSL https://claude.ai/install.sh | bash on Mac, Linux, or WSL, and irm https://claude.ai/install.ps1 | iex in Windows PowerShell. Open a fresh terminal, confirm it with claude --version, move into a project folder, type claude, and sign in with a paid Claude plan. Run /init on your first project, give it a small real job, and keep it updated with claude update. That is the whole install. The rest is learning to give it good jobs, which is where the real skill lives.
If you want that next step — the workflows that turn a fresh install into something that earns its keep — the AI Agent Starter Kit has the plug-and-play agent setups I use for first builds, and the free AI Creator Prompt Pack gives you 64 copy-ready prompts to practise with before you spend anything. Install it, run /init, and build one small thing today. That is how every Claude Code user I know actually started.
Keep Reading
Two guides that go with this one:
- How to Use Claude Code: A Practical Step-by-Step Guide in 2026 — what to do after the install: your first session, real commands, and the mistakes to avoid.
- Claude Code for Beginners: Build Your First AI Agent in a Weekend — build your first working agent once Claude Code is installed and signed in.