Lion Cipher Lab

Install Ollama and run your first local model — safely

Why it matters

Almost fifty labs on this site — phishing triage with a local model, log summarization, building a small offline security agent — start with the words "with Ollama installed and a model pulled." This is the lab that makes those words true. It also teaches, on the first day, the single most common way people hurt themselves with local AI: they hear "it runs on my machine, so it's private and safe," and stop thinking. A local model is private by default only because it listens on localhost; it has no password, it obeys injected instructions exactly like a cloud model, and a model file from a…

What you'll learn

Steps in this lab

  1. What a "local model" is, and what Ollama actually does
  2. Hardware honesty: what your machine can actually run
  3. Install on Windows
  4. Install on macOS and Linux — and how to read a script before you pipe it to sh
  5. The server, the port, and where your models live on disk
  6. Pull one small model that fits 8 GB
  7. Run it: your first prompt, and how to leave
  8. Talk to it over the API: one curl call, and what "stream": false does
  9. The security section: what "local" does and does not protect you from
  10. Troubleshooting the four things that go wrong
  11. Prove it: the three-line check every later lab assumes
  12. What you just built — and the instinct to keep

Open the full interactive lab →