Module 3

Get Your Laptop Ready

This is the module that pays off most. Live sessions give a full room about an hour to get set up. Arrive with it done and you spend that hour learning instead of fighting an installer.

About 45 minPreps you for: Environment setup labs
âš ī¸
Attending a specific session? Check its prerequisites too
These steps follow Anthropic's standard install instructions. If the session you are attending sends its own prerequisites list, follow that where it differs.
â„šī¸
Use a personal laptop if you can
Work laptops often block installers, terminals or outside network calls. If a step below is refused by your company's security software, do not fight it. Bring a personal machine instead.

Before you start: open a terminal

Most steps below are one line typed into a terminal.

  • Mac: press Cmd + Space, type Terminal, press Enter.
  • Windows: press the Windows key, type PowerShell, press Enter.

Paste a command, press Enter, read what it prints. That is all a terminal is.

The eight steps

1. A Claude account, on Pro

Sign up at claude.ai. Pro is the plan to have for Claude Code. You can subscribe for one month and cancel after.

2. Claude Desktop

Download it from claude.com/download and sign in. It also gives you Claude Code in a window, for the times you would rather not use a terminal.

3. Python 3.11 or newer

Check (Mac)
python3 --version
Check (Windows)
python --version

If you see a version of 3.11 or higher, move on. If not, install from python.org/downloads. On Windows, tick "Add python.exe to PATH" on the first installer screen, then close and reopen PowerShell.

4. Git

Check
git --version

Mac will offer to install it the first time you run that. On Windows, install Git for Windows. Claude Code works better with it on Windows.

5. Claude Code

Install (Mac, Linux, WSL)
curl -fsSL https://claude.ai/install.sh | bash
Install (Windows PowerShell)
irm https://claude.ai/install.ps1 | iex

The installer prints nothing while it downloads. When it finishes, open a new terminal window and run:

Verify
claude --version

Then type claude and press Enter. The first launch opens your browser to sign in. Use the same account you put on Pro. Type /exit to leave.

6. An API key, with a spend limit

  1. Go to the Claude Console and sign up. This is a separate area from the chat app.
  2. Under Billing, add about $5 of credits. The primer uses a few cents.
  3. Under Limits, set a monthly spend limit you are comfortable with, for example $10.
  4. Under API keys, create a key named primer. Copy it now. It is shown once.

Menu names in the Console move around from time to time. If you cannot find one, look under Settings.

7. Put the key in an environment variable

This keeps the key out of your code. Replace the placeholder with your real key.

Mac (saved for every new terminal)
echo 'export ANTHROPIC_API_KEY="paste-your-key-here"' >> ~/.zshrc
source ~/.zshrc
Windows PowerShell (saved for every new window)
setx ANTHROPIC_API_KEY "paste-your-key-here"

On Windows, close and reopen PowerShell after setx.

8. A practice folder with the Python library

Mac
mkdir ~/bootcamp-primer
cd ~/bootcamp-primer
python3 -m venv .venv
source .venv/bin/activate
pip install anthropic
Windows PowerShell
mkdir $HOME\bootcamp-primer
cd $HOME\bootcamp-primer
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install anthropic

The .venv lines create a private sandbox for this project's Python packages. You will use this same folder for every task in the primer. Each time you open a new terminal, cd into the folder and run the activate line again.

🚨
Four rules for your API key
Treat it like a card number. (1) Never paste it into a Python file, a chat, CLAUDE.md or a screenshot. (2) Never commit it to git. (3) Keep the spend limit on. (4) If it leaks, delete it in the Console and make a new one. That takes ten seconds and costs nothing.
đŸ–Ĩī¸ Hands-on task 1Everyone⏱ 10 min

Four green checks

In your practice folder, with the virtual environment active, run these four lines one at a time.

Mac
python3 --version
git --version
claude --version
python3 -c "import anthropic; print('anthropic', anthropic.__version__)"
Windows PowerShell
python --version
git --version
claude --version
python -c "import anthropic; print('anthropic', anthropic.__version__)"
✓ Done when: all four commands print a version number and none prints an error. Take a screenshot of the terminal and keep it. If a check fails later, you will know it is new.

If something goes wrong

You seeDo this
claude: command not found or "not recognized"Open a brand new terminal window. If it still fails, the install folder is not on your PATH: see the troubleshooting link below.
python: command not found on MacUse python3. After you activate the virtual environment, plain python works too.
"running scripts is disabled" when activating on WindowsRun Set-ExecutionPolicy -Scope CurrentUser RemoteSigned once, then activate again.
No module named anthropicThe virtual environment is not active. Run the activate line, then pip install anthropic.
Claude Code asks whether to use an API key it foundChoose No, so it uses your Pro subscription. If you say Yes, Claude Code bills your API credits instead. Type /status inside Claude Code to see which one is active.

Anthropic's own guide covers the rest: Troubleshoot installation and login. Stuck for more than 15 minutes? Stop, note the exact error text, and ask in the group. Someone has hit it already.

Next: make your first API call.