How to Install Claude Code on Windows and Mac and Build a First Project
Claude Code installs with one terminal command and does not need Node.js. You need a paid Claude plan, starting with Pro, or a Claude Console account with prepaid credits. Below are the steps: installing on Mac and Windows, the first sign-in, and a small project that shows how to work with the tool.
What Claude Code is and what you need to install it
Claude Code is an AI agent from Anthropic that works inside your project folder: it reads files, writes and edits code, and runs commands. Unlike a chat, the result lands on your disk as files, so there is nothing to copy out of a conversation window. This way of working, where you describe the task in words and the agent writes the code, is often called vibe coding.
I write production code with it every day and teach others to do the same. If you are still choosing a tool, see my comparison of Claude Code, Cursor and Codex. An ordinary computer is enough to start:
- macOS 13 or later, Windows 10 (version 1809 or later) or Windows 11, or Linux.
- 4 GB of RAM or more and an internet connection.
- A paid Claude account: Pro, Max or a team plan. The free claude.ai plan does not include Claude Code.
- Git is optional, but I recommend it because it makes undoing changes easier. On Windows, Git for Windows also gives you Git Bash, which Claude Code can use.
As of November 21, 2026, Pro costs $20 a month when billed monthly. Prices change, so check the Claude pricing page. Anthropic does not serve every country: check the list of supported countries before you pay.
How to install Claude Code on Mac
- Open the Terminal app: press Cmd + Space, type "Terminal" and press Enter.
- Paste the command
curl -fsSL https://claude.ai/install.sh | bashand press Enter. - When it finishes, close the terminal window and open a new one.
- Check the install:
claude --versionshould print a version number.
If you use Homebrew, you can install Claude Code with brew install --cask claude-code instead. The difference is updates: the standard install updates itself, while with Homebrew you run brew upgrade claude-code from time to time.
How to install Claude Code on Windows
You do not need WSL. Claude Code runs on regular Windows.
- Open PowerShell: press the Windows key, type "PowerShell" and press Enter. You do not need administrator rights.
- Paste the command
irm https://claude.ai/install.ps1 | iexand press Enter. - Close the window and open a new one, otherwise Windows will not see the new command.
- Check the install with
claude --version.
The irm install command only works in PowerShell. In the classic Command Prompt (CMD) you will get "'irm' is not recognized": switch to PowerShell, or install Claude Code with WinGet using winget install Anthropic.ClaudeCode.
First run of Claude Code and sign-in
Claude Code works in the folder you start it from and only sees that folder. Create a separate folder for each project.
mkdir my-first-project
cd my-first-project
claudeOn the first run a browser opens with the sign-in page. Sign in to your Claude account, go back to the terminal, and you can start typing. If sign-in does not start by itself, type /login.
Your first Claude Code project in an hour
For a first project, pick something you can see in a browser that needs no server and no database. A habit tracker works well: a list of habits, a checkbox per day, data stored in the browser itself.
- Turn on plan mode: press Shift + Tab until you see
plan mode onat the bottom. In this mode Claude describes what it is going to do and changes nothing on disk. - Describe the task in plain words: what is on the page, what happens on click, where the data lives. The more specific you are, the less rework you get.
- Read the plan. If something is unclear, ask right there: "why do we need localStorage here?". This is the most useful habit a beginner can build.
- Approve the plan. Claude creates the files and asks permission before changing things and running commands. Read what you are agreeing to.
- Open the resulting
index.htmlin a browser and test it by hand: add a habit, tick a day, reload the page. - Ask for a change: "add a streak counter". This shows you how Claude edits code that already exists.
- Type
/init. Claude studies the project and creates aCLAUDE.mdfile that describes it: what the project is, how to run it, what conventions it follows. Claude reads this file at the start of every session.
All of this takes about an hour, and most of that time goes into reading the plan and checking the result. Do not skip those parts: if you do not understand what Claude did, by the second or third project you will no longer know what to change in the code or where.
Claude Code commands and keys for day one
| What to type | What it does |
|---|---|
Shift + Tab | Switches modes: normal, auto-accept edits, plan mode. |
@file-name | Points Claude at a specific file. |
/init | Creates CLAUDE.md with a description of the project. |
/clear | Starts a new conversation. Use it when you move to a different task. |
Esc twice | Opens the menu for rewinding to an earlier state. /rewind does the same. |
/model | Picks the model. |
/help | Lists all commands. |
Common Claude Code install errors
Almost all of them are covered in the official install troubleshooting guide. The most common one: the terminal says command not found: claude or "'claude' is not recognized". That means the program folder is not on your PATH, the list of places where the system looks for commands.
First, close the terminal and open a new one: windows that were open before the install do not see the new command. If that does not help, on Mac run:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrcOn Windows, in PowerShell:
$currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User')
[Environment]::SetEnvironmentVariable('PATH', "$currentPath;$env:USERPROFILE\.local\bin", 'User')Then open a new terminal window again. Two more tips:
- An error about
&&in PowerShell means you pasted the CMD command. Use the PowerShell command from the Windows install section. - If the cause is unclear, run
claude doctor: it checks the Claude Code install and tells you what is wrong.
Claude Code without a terminal: desktop app, browser and VS Code
The terminal is optional. Claude Code also comes as a desktop app that shows changes visually and needs no separate install, as a browser version at claude.ai/code, and as a VS Code extension. They all need the same subscription.
I still suggest going through the terminal route at least once. Every guide you will read uses terminal commands, and the fear of the black window is gone after one evening.
Sources
Commands and system requirements were checked against the official documentation on November 21, 2026:
- Set up Claude Code, Anthropic documentation.
- Troubleshoot installation, Anthropic documentation.
- Claude pricing.
FAQ
Do I need to know how to code to start with Claude Code?
No, you can build a first project with no experience. But to get something into a working state you will need to learn to read code and understand what Claude does. That is worth your time from day one.
Do I need Node.js to install Claude Code?
No. The official installer sets up a ready-to-run program. Node.js 22 or later is only needed if you install through npm.
How is Claude Code different from the Claude chat?
The chat answers with text and you move the code yourself. Claude Code works in your project folder: it creates and edits files and runs commands and tests, asking permission as it goes.
How is Claude Code different from Cursor?
Claude Code is an agent you hand a whole task to, and its main interface is the terminal. Cursor is a code editor with a built-in agent, where every edit is visible in the file. Claude Code runs only on Claude models, while Cursor lets you pick models.
What is CLAUDE.md?
A file in the project root with instructions for Claude: how to run the project and what rules and conventions it follows. Claude reads it at the start of every session. You create it with /init, and it is best kept short, under 200 lines.
Is it safe to give Claude Code access to my computer?
By default it asks permission before changing files and running commands, and it works only in the folder where you started it. Do not turn on the modes that skip confirmations until you understand what they do, and set up git so any change can be undone.