Skip to content

Ollama (local, the default)

Runs open models on your own machine. Free, private, works offline. Every lab's expected output was recorded on it. Official docs: ollama.com ยท model library.

Setup

  1. Install: brew install ollama (macOS), or the installer from ollama.com/download (Windows), or curl -fsSL https://ollama.com/install.sh | sh (Linux). The app starts the server; otherwise run ollama serve.
  2. Pull the two models the labs use:
    ollama pull qwen3:8b            # chat and tool calling, about 5 GB
    ollama pull nomic-embed-text    # embeddings, about 270 MB
    ollama pull qwen3-vl:8b-instruct         # only for photos (whatsapp-agent lab 09), about 6 GB
    
  3. Nothing to set: with no .env, or with these lines, everything runs locally.
    LLM_MODEL=ollama/qwen3:8b
    EMBED_MODEL=ollama/nomic-embed-text
    
  4. Check: ollama run qwen3:8b "Say hello in five words", then python -c "import door; print(door.describe())".

No API key, no LiteLLM needed.

Hardware

8 GB RAM runs qwen3:8b slowly; 16 GB is comfortable. One laptop serves one request at a time, so parallel runs queue. On a GPU server, point the labs at it with OLLAMA_HOST=http://<server>:11434 in .env.

Other local models

Any model whose ollama show <name> lists the tools capability works: ollama pull qwen3:14b, then LLM_MODEL=ollama/qwen3:14b. Bigger is better and slower; 14b wants about 16 GB free.

What's different

  • think=True turns on qwen3's reasoning (many more output tokens, slower); labs default to off.
  • Token counts are Ollama's own, so RnR's cost meter prices local runs exactly.
  • The first call after a restart takes 20 to 30 seconds while the model loads.

Troubleshooting

Symptom Fix
ConnectionError / connection refused Ollama isn't running: open the app or ollama serve
model "qwen3:8b" not found ollama pull qwen3:8b
Very slow replies The model doesn't fit in memory: close other apps or try a smaller model
Model never calls tools Use a model with the tools capability (ollama show <name>)