Your workstation is your instrument.
A concert pianist tunes their piano before the concert. A chef sharpens their knives before service. An AI builder configures their workstation before the first prompt. This chapter is the tuning session for the rest of the book — twenty quiet minutes now will save you hundreds of frustrating hours later.
We will install five foundational tools (VS Code, Claude Code, Git, Node.js, Python), configure two API providers (Anthropic and OpenRouter), and end by shipping your first real Claude Code project. Every step includes a screenshot placeholder so you can compare what you see to what the book expects.
Learning Objectives
- Install and configure VS Code, Claude Code, Git, Node.js and Python correctly on Mac, Windows or Linux.
- Understand the terminal well enough to move around, create files, and run commands without fear.
- Create Anthropic and OpenRouter API keys and store them safely with environment variables.
- Design a clean, professional folder layout for every future project.
- Ship your first working Claude Code project end-to-end.
1. Installing VS Code
Visual Studio Code (VS Code) is a free, fast, extensible code editor from Microsoft. It is the industry-standard editor for AI development, and Claude Code plugs into it beautifully.
Step-by-step install
- Open code.visualstudio.com in your browser.
- Click the big download button — the site auto-detects your operating system.
- Open the installer, accept the defaults, and launch VS Code once it finishes.
- On Mac, also run Shell Command: Install 'code' command in PATH from the Command Palette (Cmd+Shift+P).
2. Installing Claude Code
Claude Code ships as a command-line tool you run from your terminal. It reads and edits files in whatever folder you launch it from — that folder becomes your workspace for the session.
# macOS or Linux
curl -fsSL https://claude.ai/install.sh | sh
# Windows (PowerShell)
irm https://claude.ai/install.ps1 | iex
# Verify
claude --versionThe first time you run claude, you will be asked to log in with your Anthropic account or an API key. Either works; we will set up an API key in section 8 for automation.
3. Git
Git is the time-machine of software. It records every change you make so you can undo, branch, and collaborate safely. When you let an AI edit your code, Git is your seatbelt.
# Install (macOS)
brew install git
# Install (Windows) — use git-scm.com installer
# Install (Ubuntu)
sudo apt install git
# Configure once
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
# Basic loop
git init # start tracking a folder
git add . # stage changes
git commit -m "message" # save a snapshot
git log --oneline # see history4. GitHub
GitHub is a cloud home for your Git repositories. It gives you backup, collaboration, portfolio, and — in later chapters — deployment triggers. Create a free account at github.com.
- Sign up with a professional-looking username.
- Create a new empty repository called claude-code-playground.
- Follow the "push an existing repository" snippet GitHub shows you.
git remote add origin https://github.com/<you>/claude-code-playground.git
git branch -M main
git push -u origin main5. Node.js
Node.js runs JavaScript outside the browser. You will use it for the web-app chapters and for many AI SDKs. Install the LTS version.
# macOS
brew install node
# Windows — nodejs.org installer, "LTS" option
# Ubuntu
sudo apt install nodejs npm
node --version
npm --version6. Python
Python is the lingua franca of AI. Most agent frameworks, notebooks, and research libraries live here. Install Python 3.11 or newer.
# macOS
brew install python@3.12
# Windows — python.org installer, TICK "Add Python to PATH"
# Ubuntu
sudo apt install python3 python3-venv python3-pip
python3 --version
pip3 --version7. Terminal Basics
The terminal is where Claude Code lives. You do not need to memorize hundreds of commands — ten will take you 80% of the way.
pwd # where am I?
ls # what's in this folder?
cd projects # move into a folder
cd .. # up one folder
mkdir demo # make a new folder
touch app.py # create an empty file
cat app.py # print file contents
rm app.py # delete the file
clear # clear the screen
history # what did I just run?8. Anthropic API Key
For anything programmatic, you need an Anthropic API key. This is what gives your code the right to talk to Claude.
- Go to console.anthropic.com and sign up.
- Add billing (a few dollars is enough to build every project in this book).
- Open API Keys → Create Key, name it handbook-dev, and copy the value.
- Paste it into your .env file as ANTHROPIC_API_KEY.
9. OpenRouter (Backup Provider)
OpenRouter is a single API that fronts dozens of AI models — Claude, GPT, Gemini, Llama, and more. It is invaluable when you want to compare models or fall back automatically.
- Sign up at openrouter.ai.
- Top up $5 of credits.
- Generate a key and store it as OPENROUTER_API_KEY.
10. Environment Variables
An .env file is a plain text file where you keep secrets, one per line. Your app reads them at runtime, so the secrets stay out of Git.
ANTHROPIC_API_KEY=sk-ant-xxxxxxxxxxxx
OPENROUTER_API_KEY=sk-or-xxxxxxxxxxxx
NODE_ENV=development# .gitignore <-- add this line so secrets never reach GitHub
.env11. Folder Structure
A predictable folder layout lets Claude Code find things quickly and lets future-you understand past-you. Use this template for every new project:
my-project/
├─ .env # secrets (ignored by git)
├─ .gitignore
├─ README.md # what & why
├─ CLAUDE.md # notes to the AI (repo conventions)
├─ src/ # your code
│ ├─ index.ts
│ └─ lib/
├─ prompts/ # reusable prompt templates
├─ scripts/ # one-off automation
├─ tests/
└─ docs/12. Essential VS Code Extensions
- Prettier — automatic formatting.
- ESLint — catches JavaScript mistakes.
- Python (Microsoft) — Python language support.
- GitLens — supercharged Git in VS Code.
- Error Lens — surfaces errors inline while you type.
- Docker — for the deployment chapter.
- Even Better TOML — for config files.
13. Project Organization Rules
- One folder per project — never mix two apps in one repo unless it is a monorepo.
- Write a one-paragraph README.md before you write any code.
- Keep secrets in .env, config in config/, and content in content/.
- Commit little and often — small commits are easy to review and easy to undo.
14. Your First Prompt
Open a new terminal, cd into your empty project folder, and run:
claude "Create a Python script that prints the first 20 Fibonacci numbers,
save it as fib.py, then run it and show me the output."Notice how Claude Code broke the request into steps: create → run → report. That is the loop from Chapter 1 in the wild.
15. Your First Real Project
Let us build a tiny Markdown-to-HTML converter, entirely through Claude Code.
mkdir md2html && cd md2html
git init
claude "Set up a Node.js project called md2html using TypeScript.
Add a single command 'convert' that takes a .md file and writes a styled .html file
in the same folder. Include a nice CSS theme, a README, and one test file.
Then run the test to prove it works."