Skip to content

Setup (do this before Day 1)

Time: about 15 minutes, plus downloads. When: before Day 1, on good Wi-Fi.

By the end of this page, npm run lab0 prints a green tick for every check.

Warning

On a corporate laptop, the first run downloads about 1 GB of models from huggingface.co, and the labs call your AI provider's website. If your office network blocks these, do the setup at home or on a phone hotspot.

Step 1: Check Node.js

Do: open a terminal (on Windows, use PowerShell) and run:

node --version

You should see: v20 or higher (v22 is ideal).

If the command isn't found, or the version is lower, install the LTS version from nodejs.org. Close and reopen the terminal afterwards.

You also need a code editor. VS Code is a good choice: it understands TypeScript out of the box.

Step 2: Get the lab files

Do: either clone the repository your trainer shared, or unzip multimodal-ai-labs-node.zip into a folder you can find easily (for example Documents/multimodal-ai-labs). Then move into it:

cd multimodal-ai-labs

You should see folders called labs, data, common and capstone, and a file called package.json, when you list the folder (ls on Mac/Linux, dir on Windows).

Step 3: Install the packages

Do:

npm install

You should see an install that ends with added ... packages. It takes 1–3 minutes.

Info

There is no Python and nothing else to install. The PDF reader, image tools, local models and text reader (OCR) are all npm packages.

Step 4: Add your API key

You need a key for one AI provider. Your trainer may give you one; otherwise create your own:

Provider Where to get a key Variable name
Anthropic (Claude) console.anthropic.com ANTHROPIC_API_KEY
Google (Gemini) aistudio.google.com GEMINI_API_KEY
OpenAI platform.openai.com OPENAI_API_KEY

Do: copy the example settings file and open it in your editor:

cp .env.example .env
copy .env.example .env

Then set two lines, for example for Claude:

LLM_PROVIDER=anthropic
ANTHROPIC_API_KEY=sk-ant-...your key...

For Gemini use LLM_PROVIDER=gemini and GEMINI_API_KEY=...; for OpenAI use LLM_PROVIDER=openai and OPENAI_API_KEY=....

Danger

Treat your key like a password. Never paste it into a lab file, a chat or a screenshot. It stays in .env only.

Step 5: Create the meeting recording (for Lab 3)

The invoices, chart, whiteboard photo, PDF handbook and other sample files are already in data/. All of them are fictitious. Only the meeting audio needs to be made on your laptop.

npm run make-audio
You should see: Saved .../data/meeting.wav. Your computer's built-in voice reads the script.

Record yourself reading data/meeting_script.txt on your phone (about 1 minute). Save it as data/meeting.m4a or data/meeting.wav.

Step 6: Run the setup check

Do:

npm run lab0

New to running labs from the terminal? Read Running the labs first: it takes 3 minutes.

You should see:

Step Correct result
Banner Provider: anthropic \| model: claude-sonnet-5-5 (or your provider)
1 · API key ✅ key found
2 · A plain text call multimodal ready, then ✅ text call works
3 · An image call A one-sentence description of the revenue chart, then ✅ vision call works
4 · Sample files Missing: none and Audio: ✅ data/meeting.wav
5 · Local models ✅ embedding models cached and ✅ local Whisper cached (this takes a few minutes the first time)

Success

Checkpoint: every step shows ✅. You're ready for Day 1.

Stuck?

Problem Fix
No API key found .env is missing or the key line is empty. Check the file name is exactly .env (not .env.txt) and it's in the main folder.
model not found or a 404 error The default model name may have changed. Add the current name to .env, for example ANTHROPIC_MODEL=.... Ask your trainer.
npm install fails on onnxruntime-node Check the .npmrc file is in the folder (it skips an optional GPU download), then run npm install again.
Model download hangs Your network blocks Hugging Face. Use a hotspot for Step 5 of lab0 only.
'tsx' is not recognized npm install didn't finish. Run it again from the main folder.

More fixes are in Troubleshooting.