· Rahman Ahmad  · 9 min read

Ollama Tutorial: Run LLMs Locally on Windows — Free, Private, and Fully Offline

Run LLMs locally on Windows with Ollama — install the verified build, pick a model that fits your hardware, chat fully offline, call the local API from code.

A dark terminal window on a Windows desktop chatting with a local AI model, with a glowing padlock symbolizing private offline AI

Ollama Tutorial: Run LLMs Locally on Windows — Free, Private, and Fully Offline

Ollama local LLM runner icon — run LLMs locally on Windows PC with Ollama, free and open source

Every time I paste something sensitive into a cloud chatbot — a student’s record, a client’s half-finished idea, a password I am trying to understand — a small voice asks where that text actually goes. The answer is always the same: someone else’s server, someone else’s logs, someone else’s terms. That is why I decided to run LLMs locally on my own Windows PC, and why the tool that made it practical was Ollama.

Ollama is a free, open-source runtime that downloads and runs large language models on your own machine. Install it, type one command, and within minutes you are chatting with a capable model that lives entirely on your desk — no account, no API key, no per-token bill, and no prompt ever leaving your house. This is the hands-on guide I wish I had on day one: install it the verified way, pick a model your hardware can actually run, talk to it from the terminal and from your own code, and know exactly where its limits are. Grab the verified Windows build — version 0.40.9, 1.55 GB, MIT license, published SHA-256 checksum — from Ollama for Windows PC.

What It Means to Run LLMs Locally

Running a model locally means the weights, the inference, and your prompts all stay on hardware you control. The model file downloads once from Ollama’s library, Ollama serves it through a small server on your own machine, and every word you type is processed right there. Turn off your Wi-Fi after the download and everything still works.

That changes three things that matter in real work. First, privacy stops being a promise and becomes a fact: there is no server in the loop to leak, log, or train on your text. Second, cost becomes zero at the margin: you can ask a thousand questions a day and the bill stays exactly nothing. Third, you are never rate-limited, never queued, and never cut off by an outage on someone else’s infrastructure.

Pick a Model That Fits Your Hardware

This is the one decision beginners get wrong, and the simplest to get right. A model has to fit in your memory — RAM on a CPU-only machine, VRAM with a graphics card — with room left for the conversation itself. The rule of thumb I use is roughly 1 GB of memory per billion parameters for a standard 4-bit quantized model, plus a little extra for context.

Here is how I would choose, based on what the Ollama library offers in late 2026:

Your hardwareStart withWhat to expect
8 GB RAM laptop, no GPUllama3.2:3b or qwen3:4bEveryday chat, summaries, explanations — usable, unhurried
16 GB RAM or an 8 GB GPUqwen3:8b or llama3.1:8bA solid daily driver: drafting, coding help, longer answers
16 GB+ VRAM desktopgemma3:12b or gpt-oss:20bStrong reasoning and tool use, close to last year’s mid-tier cloud models
Modest machine, best valuephi4-miniSmall, fast, surprisingly capable for its size

A few notes from the current landscape. Qwen3 is the best all-round open family right now — strong reasoning, good coding, permissive Apache 2.0 license. Llama 3.1 8B remains the single most-pulled model in the registry, a 4.9 GB download that wants roughly 6.5 GB of VRAM at the default 4,096-token context; it is a mid-2024 model, so it is fine for chat and summarization but weaker than the 2026 families on tool use. Gemma 3 brings vision and a 128K context window. Browse the Ollama model library before you commit to a download, because the lineup changes weekly — and always pull with an explicit tag, since :latest can move under you.

One trap worth knowing: tags ending in :cloud, like gemma3:cloud, do not run on your machine at all — they run on Ollama’s servers. If you want everything local, avoid cloud tags, or set OLLAMA_NO_CLOUD=1.

How to Run LLMs Locally on Windows, Step by Step

Step 1: Install Ollama

Download the installer from the FileCobra page linked above and run OllamaSetup.exe. It installs a background service, puts the ollama command on your path, and drops an icon in the system tray. You do not need administrator rights, and the app updates itself — the tray menu tells you when a new version is ready.

Step 2: Pull your first model

Open a terminal — Command Prompt, PowerShell, or Windows Terminal — and run:

ollama pull qwen3:8b

The first download is the slow part: an 8-billion-parameter model is roughly 5 GB. Models land in C:\Users\<you>\.ollama by default; if your C: drive is tight, set the OLLAMA_MODELS environment variable to another drive first, then restart Ollama from the Start menu.

Step 3: Start chatting

ollama run qwen3:8b

That single command downloads the model if you skipped the pull, then drops you into an interactive chat in your terminal. Type normally, press Enter, and the model answers in a stream. Type /bye to leave, /? to see the built-in commands, and /show info to see the model’s details.

Step 4: Check what is running

ollama ps

This shows which models are currently loaded in memory, how much space they take, and whether they are running on your GPU or CPU. An empty table means the server is up and nothing is loaded. ollama list shows everything you have downloaded, and ollama rm <model> frees the disk when a model stops earning its gigabytes.

Step 5: Call the local API from your own code

This is where Ollama stops being a chat toy and becomes infrastructure. Every install exposes a REST API on http://localhost:11434, with an OpenAI-compatible surface under /v1 — so most OpenAI SDK code works by changing the base URL and dropping the API key:

curl http://localhost:11434/api/chat -d '{
  "model": "qwen3:8b",
  "messages": [{ "role": "user", "content": "Explain photosynthesis in two sentences." }],
  "stream": false
}'

That endpoint is the reason Ollama has become a quiet standard: chat UIs like Open WebUI, coding assistants, and frameworks like LangChain all speak to it out of the box. Install Ollama once, and every AI tool on your machine gets a free, private backend.

Make Ollama Yours: Custom Models and Chat UIs

Two features turn a basic install into a personal setup. The first is the Modelfile — a short text file that bakes a system prompt, temperature, and parameters into a named model of your own:

FROM qwen3:8b
SYSTEM "You are a patient primary-school teacher. Explain everything in simple English, with one everyday example."
PARAMETER temperature 0.7

Build it with ollama create my-teacher -f Modelfile, then ollama run my-teacher gives you that personality on demand. I keep one tuned for lesson planning and one tuned for code review; switching between them is one command.

The second is a proper chat interface. The terminal is fine, but a web UI like Open WebUI turns Ollama into something the whole family can use from a browser tab — conversations saved, models switchable from a dropdown. It talks to the same localhost:11434 endpoint, so nothing about your data flow changes.

If you run AI agents in your own workflow, the same endpoint lets a coding agent use a local model as its brain — the approach I use when I want a second pair of eyes on code without sending it anywhere. I wrote about that agent setup on my blog, where I document how I ship software solo.

The Honest Limits of Local Models

A guide that only praises its subject is an advert, so here is the other side. Your hardware is the ceiling: a laptop with 8 GB of RAM will run small models at polite speeds and will not run a 70-billion-parameter model well, no matter what any marketing implies. Generation quality trails the biggest hosted frontier models on hard reasoning and long, intricate tasks — the privacy and cost trade is real, even if it is usually worth it.

Ollama is also inference-only: it runs models, it does not train or fine-tune them. And context windows are smaller than the cloud giants advertise — the default is 4,096 tokens, so a coding agent that needs to read a whole codebase before answering will feel cramped unless you raise it. These are honest limits, not deal-breakers.

Your First-Day Checklist

  • Install Ollama from the verified Windows build and confirm ollama --version works in a terminal
  • Pull one model that fits your hardware — qwen3:8b on a mid-range machine, llama3.2:3b on a light laptop
  • Run ollama run <model> and hold your first fully offline conversation
  • Try ollama ps and ollama list so you can see what is loaded and what it costs in disk
  • Call the API once from curl or Python, so you know the endpoint is real
  • Create one custom model with a Modelfile tuned to work you actually do
  • Set OLLAMA_MODELS to a roomy drive if your C: drive is nearly full

Frequently Asked Questions

Is Ollama free?

Yes — free and open source under the MIT license. Models download from the Ollama library at no cost, each under its own license, and there are no API fees because everything runs on your PC.

Does Ollama work offline?

Yes. After a model is downloaded, chats and the API work with no internet connection at all — one of its main advantages over cloud AI, and the reason it works on a train, in a village school, or anywhere the Wi-Fi is unreliable.

What PC do I need to run models?

Any Windows 10 or 11 PC can run small models (1–8B parameters) on CPU with 8–16 GB of RAM. A discrete NVIDIA or AMD GPU with 8 GB or more of VRAM makes mid-size models genuinely fast. Bigger models need proportionally more memory.

Which model should I start with?

On a typical mid-range machine, qwen3:8b — the best balance of quality and size in the current library. On a light laptop, llama3.2:3b.

Is the download on FileCobra the official installer?

Yes — the page serves the official Windows installer from ollama.com’s own download host, with the version and SHA-256 checksum published so you can verify the file before you run it.


I write about shipping solo tools and AI workflows on rehmanahmad.com/blog — and I collect the free Windows software I actually use on FileCobra. If you set Ollama up today, tell me which model you picked first.

Rehman Ahmad

Rehman Ahmad

Software Developer & Educator

Rehman Ahmad is a software developer and primary school educator from Bahawalpur, Pakistan. He builds free desktop productivity tools, programming tutorials, and educational worksheets.

Back to Blog

Related Posts

View All Posts »