Skip to content

Setup

Time: 15 minutes (do it before the event if you can)

You need two things: a model to talk to, and the workshop code. The default path runs a free, open model on your laptop with Ollama. If you would rather use a cloud provider, see Use any model provider.

  1. Install Ollama.

    Download the app from ollama.com/download, or use Homebrew:

    Terminal window
    brew install ollama
  2. Download the workshop model. It is small, fast and good at calling tools.

    Terminal window
    ollama pull qwen3:4b-instruct

    If your laptop has 8 GB of RAM or less, pick a smaller model instead: ollama pull qwen2.5:1.5b. It is less accurate, which actually makes the evaluation and attack modules more interesting.

  3. Say hello.

    Terminal window
    ollama run qwen3:4b-instruct "Say hello in five words"

    If you get a reply, Ollama is working. It runs in the background and listens on http://localhost:11434.

  1. Clone the repository and go to the code folder.

    Terminal window
    git clone https://github.com/codewithsimon/ai-agent-workshop.git
    cd ai-agent-workshop/code

    No git? Download the ZIP from the repository page (green Code button, then Download ZIP).

  2. Create a virtual environment and install the workshop package.

    Terminal window
    python3 -m venv .venv
    source .venv/bin/activate
    pip install -e .

    The only dependencies are httpx (for HTTP requests) and python-dotenv (for settings). No AI vendor SDK.

  3. Create your settings file.

    Terminal window
    cp .env.example .env

    The defaults point at Ollama on your laptop:

    code/.env
    LLM_BASE_URL=http://localhost:11434/v1
    LLM_API_KEY=ollama
    LLM_MODEL=qwen3:4b-instruct

From the code folder, run:

Terminal window
python -m agentlab.check

You should see something like:

Endpoint: http://localhost:11434/v1
Model: qwen3:4b-instruct
1/2 Basic chat ... ok (2.1s): 'ready'
2/2 Tool calling ... ok (1.8s): model called get_session
You're ready for the workshop!

The first call can take longer while the model loads into memory. If something fails, see Troubleshooting.

The repository includes a dev container. On GitHub, click Code, then Codespaces, then Create codespace. Python and the workshop package are installed for you. Codespaces has no GPU, so point .env at a cloud provider instead of Ollama. See Use any model provider.