Free lesson · Module 1, lesson 7 of 7

Setting up: Python, uv, Git, a model and Docker on an 8 GB laptop

Install Python 3.12 with uv, Git and (now or before module 6) Docker, set the model settings for the free tier or the local model, and replay a recorded RepoMate run until every setup line says OK.

Lessons in this module

Lesson notes

For the student

Set up your laptop once: Git, uv, the companion folder, a model setting and, now or before module 6, Docker. Then one check prints a line for each part. The outputs below are from Nisha's laptop on Ubuntu 26.04; your versions of Git and Docker may differ. Nothing in this course needs a payment card.

The setup, in order (Ubuntu)

  • sudo apt install -y git curl unzip make libatomic1 (pyright needs libatomic1; lesson 2.4 shows the error without it. make runs make catch-up M=03 from module 3 on: a minimal Ubuntu has none, and the shell stops with make: command not found, exit code 127)
  • uv 0.13.9: curl -LsSf https://astral.sh/uv/0.13.9/install.sh | sh, then source $HOME/.local/bin/env (or open a new terminal). uv --version prints uv 0.13.9 (x86_64-unknown-linux-gnu)
  • Unzip the companion from the course page into your home folder, so it is at ~/agentic-engineering-foundations; then cd ~/agentic-engineering-foundations
  • uv sync: Using CPython 3.12.16, Creating virtual environment at: .venv, Installed N packages, every package uv.lock pins for Linux (the number depends on the companion's version; uv downloads Python 3.12.16 itself; Ubuntu's own python3 stays as it is)
  • git config --global user.name "Nisha" and git config --global user.email "nisha@example.com", with your own name and address
  • uv run pyright once while online: the first run prints * Install prebuilt node (26.13.1) ..... done. and ends 0 errors, 0 warnings, 0 informations
  • On Windows 11: install Ubuntu under WSL2, then run every command above inside it, with the folder in the Linux home (not under /mnt/c). On macOS: Git comes with Apple's command line tools (xcode-select --install), and make; libatomic1 is not needed

The model, in `.env`

  • cp .env.example .env. The key lives only in .env, which .gitignore lists, and never in code
  • The course's free option, a hosted model's free tier: the companion README's section "The free hosted model" names the provider, shows how to make a free account and create a key (no card), and names a current free model with tool calling. In .env: AIKIT_API_KEY=your-key-here (your key), and AIKIT_BASE_URL and AIKIT_MODEL as the README gives them. Free models change, so no lesson names one
  • At the time of recording, a free account could send 20 requests a minute and 50 a day; failed attempts count too. One step of a run is one request. When the day's limit is used: wait for the next day, replay a recorded run, or use the local model
  • Send only Campus Store and code you own to a hosted model, and never a password or a key
  • The local model, the free offline fallback: install Ollama 0.40.17, pull a small model with tool calling, and set AIKIT_PROVIDER=local and AIKIT_LOCAL_MODEL to its name. No key and no account. It needs about 4 GB of memory, so 16 GB is recommended for this path; on 8 GB, close the browser while it runs

Docker (now, or before module 6)

  • Ubuntu: Docker Engine; macOS and Windows: Docker Desktop, which is free for personal and education use
  • Until it is installed and running, the check prints WARN docker: needed from module 6 (not installed)

The check: `uv run python -m checks.m01`

  • Nisha's run with --offline: OK python 3.12.16, OK uv 0.13.9, OK lock, OK git 2.53.0, SKIP model: no call made (--offline), WARN docker: needed from module 6 (not installed)
  • The model line is the only live call of any check in the course; --offline skips it
  • No key yet: FAIL model: AIKIT_API_KEY is not set. Add it to your .env file. (copy .env.example to .env and set AIKIT_API_KEY, AIKIT_BASE_URL and AIKIT_MODEL (the README shows the free option), or set AIKIT_PROVIDER=local for the local model; or run with --offline)
  • Local model chosen, but its server not running: FAIL model: ConnectError after 4 attempt(s): no answer from the server
  • The seventh line, replay, checks the recorded CS-101 run in recordings/m05/cs101_v1.jsonl and says OK when that run ends with the tests green
  • WARN and SKIP do not fail; the exit code is 1 only when a line says FAIL. The key is never printed
  • Outside uv, python3 -m checks.m01 uses Ubuntu's own Python 3.14.4 and stops with ModuleNotFoundError: No module named 'httpx'

Catching up to a module, with or without make

  • make catch-up M=03 runs uv run python -m tools.catch_up 03, which prints copied repomate/ticket.py, copied tests/test_ticket.py and RepoMate is now at the end of module 03 (2 files)
  • Without make, run uv run python -m tools.catch_up 03 yourself: the same three lines. It replaces your files of the same names

Watch a recorded run

  • uv run python -m repomate replay recordings/m05/cs101_v1.jsonl prints the run of lesson 2: 7 steps, ending stopped: done after check: done: suite 68 passed

Try it

  • Do the setup, then run uv run python -m checks.m01 --offline, fix each FAIL line it prints, and run it again
  • With a key in .env (or the local model running), run uv run python -m checks.m01 once: the model line makes one real call
  • Run the replay command above and find the line that proves the fix
  • Visible result: OK lines for python, uv, lock and git; the model line OK (or SKIP offline); the docker line OK or WARN; and the recorded run ending stopped: done

Lesson quiz

Checked in your browser. Nothing is sent or saved.

5 questions

Question 1 · easy

Where does the key for the course's free hosted option live?

Question 2 · medium

Nisha's check, run with --offline, prints four OK lines, then these two. Has the check failed?

SKIP model: no call made (--offline)
WARN docker: needed from module 6 (not installed)

Question 3 · medium

On Ubuntu, Ravi runs python3 -m checks.m01 in the companion folder and gets ModuleNotFoundError: No module named 'httpx'. What is the fix?

Question 4 · medium

Nisha's laptop has 8 GB of memory and she uses the hosted free model every day. When is the local model the right choice for her?

Question 5 · hard

On Nisha's Ubuntu, after uv sync in the companion folder, which Python does uv run use there, and which does python3 use?

Costs, limits and honest expectationsThat was the free module. Tell me when the course opens