Setup: editor, Node/Python, API key
12 minInstall a code editor and a language runtime, get your Anthropic API key, and store it safely.
Let's get your workshop set up. This is the only "boring" lesson in the course, and it's 10 minutes of work you only do once.
You'll install three things: an editor to write code, a runtime to run it, and an API key so your code can talk to Claude.
1. Install a code editor
Download Visual Studio Code. It's free, works everywhere, and has a built-in terminal. Open it once installed.
To open the terminal inside VS Code: View → Terminal. You'll type commands there throughout the course.
2. Pick your language
The course uses TypeScript (JavaScript with types) as the main language, because it's what most AI web apps are built with. Every core example also has a Python version. Pick one and stick with it for now.
TypeScript: install Node.js
Download the LTS version from nodejs.org and install it. Then check it worked:
node --version
npm --versionYou should see two version numbers. Now create a project folder and install what you need:
mkdir nofluff-ai && cd nofluff-ai
npm init -y
npm pkg set type=module
npm install @anthropic-ai/sdk
npm install -D tsx typescript@anthropic-ai/sdkis Anthropic's official library for calling Claude.tsxlets you run a.tsfile directly withnpx tsx file.ts.
Python: install Python 3.10+
Download it from python.org (on Windows, tick "Add Python to PATH" during install). Then:
python3 --version
mkdir nofluff-ai && cd nofluff-ai
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install anthropicThe venv step creates an isolated environment for this project, so installs don't clash with anything else on your machine. Activate it each time you open a new terminal.
3. Get your API key
An API key is a password that lets your code use Claude and bills usage to your account.
- Go to the Claude Console and create an account.
- Add a small amount of credit under Billing ($5 is plenty for this entire course).
- Open API Keys and click Create Key. Give it a name like
nofluff-ai. - Copy the key. It starts with
sk-ant-. You only see it once.
4. Store the key safely
Your code reads the key from an environment variable called ANTHROPIC_API_KEY. The SDK picks it up automatically, so the key never appears in your code.
macOS / Linux: add this line to ~/.zshrc (or ~/.bashrc), then open a new terminal:
export ANTHROPIC_API_KEY="sk-ant-...your key..."Windows (PowerShell):
setx ANTHROPIC_API_KEY "sk-ant-...your key..."Close and reopen your terminal afterwards. Check it's set:
echo $ANTHROPIC_API_KEY # Windows PowerShell: echo $env:ANTHROPIC_API_KEYTry it
- Run
node --version(orpython3 --version) and confirm you see a version number. - Run the
echocommand above and confirm your key prints (starting withsk-ant-). - In the Console, set a monthly spend limit.
All three done? You're ready for your first AI call.