Install on Windows
Every command on this page runs in PowerShell. Unlike Mac, there's no single package manager doing the work — each tool gets its own installer. Follow it top to bottom. (On Mac? Skip to the macOS walkthrough instead.)
Installation instructions
Follow the following steps in sequence.
Step 1: Find PowerShell
PowerShell is Windows' built-in command-line tool — a plain text window where you type commands directly to your computer, instead of clicking through menus and icons. It's Windows' equivalent to the Terminal app on a Mac.
Two ways to open it:
- Open the Start menu, type PowerShell, and press Enter.
- Or right-click the Start button and choose Windows PowerShell (or Terminal on Windows 11) from the menu that appears.
You'll see a window with a prompt that looks like this:
PS C:\Users\yourname>
PS just marks this as a PowerShell prompt.
C:\Users\yourname shows where you currently are — your
user folder, by default. The > marks the end of the
prompt — that's where you type.
| To do this | Do this |
|---|---|
| Run a command | Type it, then press Enter |
| Cancel whatever is running | Ctrl + C |
| Recall your last command | Up arrow |
| Paste | Right-click anywhere in the window |
Step 2: Allow scripts to run
Windows blocks unsigned scripts from running by default. Several of the installers below need to run one, so this step loosens that restriction — for your account only, not the whole computer.
- In the PowerShell window you just opened, type (or copy and
paste) the following command exactly as shown:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser - Press Enter to run it.
- If PowerShell asks you to confirm, type
Yand press Enter.
RemoteSigned lets scripts you write or run locally
execute freely, while still requiring anything downloaded from the
internet to carry a digital signature. -Scope CurrentUser
applies the change only to your own account, which is why this doesn't
need administrator rights.
Verify it took effect:
Get-ExecutionPolicy
It should print RemoteSigned.
Step 3: Node.js
Node.js is a JavaScript runtime, and npm is the package manager that ships with it. Claude Code is distributed as an npm package, so installing Node.js is a required step no matter what else ends up on your laptop.
- Download the LTS installer from nodejs.org/en/download.
- Run the installer, accepting the license agreement and the default install location.
- On the "Custom Setup" screen, make sure "Add to PATH" is checked (it usually is, by default).
- Finish the installer.
In a new PowerShell window, verify:
node --version
npm --version
Step 4: Claude Code
This is the agent itself. Install it with:
npm install -g @anthropic-ai/claude-code
Verify:
claude --version
Step 5: VS Code (if you already installed VS Code in a previous session, you can skip this step)
VS Code is a code and text editor. You'll use it to open the folders an agent is working in and read the files it produces.
- Download the installer from code.visualstudio.com.
- Run the installer, accepting the license agreement and the default install location.
- On the "Select Additional Tasks" screen, the defaults are fine — these just add convenient right-click options like "Open with Code."
- Make sure "Add to PATH" is checked.
- Finish the installer.
Verify:
code --version
Step 6: Miniconda
Later in the course, you'll ask an agent to write and run a Python script against real files — for example, updating a financial model from a trial balance. Miniconda installs Python along with conda, a tool for keeping each project's Python setup separate and consistent.
- Download the Windows installer from anaconda.com/miniconda.
- Run the installer, accepting the license agreement and the default install location.
- On the Advanced Options screen, leave "Add Miniconda3 to PATH" unchecked — it's marked "not recommended" because it can conflict with other Python tools.
- Finish the installer.
Instead of adding it to PATH during install, initialize it afterward, from a new PowerShell window:
conda init powershell
Close and reopen PowerShell. Your prompt should now start with
(base) — that means conda is active. Verify:
conda --version
python --version
If conda still isn't recognized, open
"Anaconda Prompt (miniconda3)" from the Start menu
instead of plain PowerShell.
Step 7: Pandoc
Pandoc converts documents between formats.
- Download the
.msiinstaller from pandoc.org/installing.html. - Run the installer and accept the defaults — Pandoc adds itself to PATH automatically, with no extra steps.
In a new PowerShell window, verify:
pandoc --version
Step 8: Confirm everything
In a fresh PowerShell window, run all of these. Each should print a version number — never "command not found":
node --version
npm --version
claude --version
code --version
conda --version
python --version
pandoc --version
Windows: frequently asked questions
A command says "not recognized" right after I installed
it.
Close PowerShell and reopen it. Installers update PATH, but a window
that was already open won't see the change. If it still fails, check
whether that tool's "Add to PATH" option was actually selected during
setup.
I got a script-execution error.
Re-run the Set-ExecutionPolicy command from Step 2 — it may
not have taken effect yet.
Commands don't seem to work no matter how I type them.
PowerShell commands are case-sensitive. Double-check you're typing
exactly what's shown, including capitalization.
npm install -g is taking forever, or times
out.
This is usually just a slow connection to GitHub. Let it run; if it
truly seems stuck, Ctrl+C to cancel and try again in a moment.
Something says it needs administrator rights.
None of the steps on this page should require it — everything here
installs to your own account. If you do hit a permissions error
somewhere, right-click PowerShell in the Start menu and choose
"Run as administrator," then retry that one command.