Run AI on Your Own PC: The Complete Beginner's Ollama Tutorial
What Ollama actually is
Here is the confusing part about running AI at home: the model and the thing that runs the model are two different products.
The model is the brain: a big file of numbers, a few gigabytes, that knows how to continue text. Llama, Qwen, Gemma, the models from Days 3 and 4, those are brains. A brain on its own does nothing; it just sits on your disk, waiting.
Ollama is the machine you plug the brain into. Think of a game console: the console is not a game, it is the standard box that loads any cartridge and puts the picture on your TV. Ollama does that job for AI models: it downloads the brain, loads it into your GPU or CPU, runs it, and serves answers to whatever asks, your terminal, your editor, your apps.
That split is why this week suddenly fits together. Day 3 argued about which brain to pick, Day 4 listed brains in six sizes, and Day 2 reviewed free coding tools that normally rent a brain from the cloud. Ollama is the missing middle piece that turns all three into things you can do on your own PC tonight.
The one rule before you install anything
A model can only think as fast as the memory it lives in. So the whole game is one rule:
The download must fit in your GPU memory (or your RAM, if there is no GPU), with room left over for the conversation.
A 2 GB model on a laptop with 8 GB of RAM: fine. A 19 GB model on an 8 GB graphics card: it spills into system RAM and answers at the speed of a sleepy typist, or refuses to load at all. Every recommendation in this post is just this rule applied. Check your own numbers first: Task Manager on Windows (under Performance), About This Mac, or nvidia-smi on Linux.
Install Ollama, step by step
You need a 64-bit machine: Windows 10 (22H2) or newer, macOS Sonoma (14) or newer, or a mainstream Linux. No account, no licence key. The current stable release was version 0.40.16 when checked in mid November 2026, and Ollama ships new versions often, so tiny screen differences are normal.
Windows
- Download OllamaSetup.exe from ollama.com/download and run it. No admin rights needed.
- Ollama now runs in the background, with an icon in the system tray.
- Open a NEW PowerShell window (this matters, see troubleshooting) and type
ollama --version. A version number means you are in.
Mac
- Download the app from ollama.com/download, drag Ollama into Applications, launch it once.
- If it asks permission to link the
ollamacommand for your terminal, accept. ollama --versionin Terminal confirms it. (Homebrew:brew install ollama.)
Apple Silicon Macs (M1 and later) are quietly excellent at this, because their unified memory doubles as GPU memory. Intel Macs work too, CPU only, so stay with small models.
Linux
- Run the official one liner:
curl -fsSL https://ollama.com/install.sh | sh(cautious readers: download the script and read it first). - On systemd systems the installer sets up a background service, controlled with
sudo systemctl enable ollamaandsudo systemctl start ollama. ollama --versionconfirms the install.
The 10-second health check, all systems: open http://localhost:11434 in your browser. If it says "Ollama is running", the engine is alive. That address is your PC's private AI doorway; the CLI section below lives there.
Your first model: pick by machine, not by hype
Time for the fun command. ollama run <model> does everything: it downloads the model if you do not have it yet, loads it, and opens a chat. Type /bye to leave; /? inside the chat lists its built-in commands.
The only decision is which name to type first. Apply the rule from the section above:
| Your machine | Type this first | Download | Why this one |
|---|---|---|---|
| Any laptop, 8 GB RAM or more, no GPU | ollama run llama3.2 | About 2 GB | Small Llama: fast on anything, the correct first pull |
| 16 GB GPU, or 32 GB RAM desktop | ollama run gpt-oss:20b | About 14 GB | OpenAI's open model: a serious reasoner |
| 24 GB GPU (RTX 3090 / 4090 tier) | ollama run qwen3:32b | About 19 GB | The Day 3 tier: big, dense, capable |
Where do this week's models fit? Day 3's Gemma 4 has a small laptop variant,
gemma4:e4b, and Ollama's own quickstart uses its smaller sibling, ollama run gemma4:e2b. Day 3's headline models, the 27B class, belong on the 24 GB GPU row, and Day 4's K2-Horizon laptop sizes list Ollama support too. Check the exact tag in the library at ollama.com/library on the day you install. Start small on purpose: a 2 GB model that answers instantly teaches the whole workflow in five minutes.
The six commands that cover almost everything
Forget the full manual. These six are the daily drivers (plus ollama serve, which starts the engine by hand if the app or service is not running):
| Command | What it does |
|---|---|
ollama pull <model> | Download a model, without starting a chat |
ollama run <model> | Chat with a model (pulls it first if needed) |
ollama list | Show what is on your disk, with sizes |
ollama ps | Show what is loaded in memory right now, and whether it sits on GPU or CPU |
ollama stop <model> | Unload a model from memory, keep the files |
ollama rm <model> | Delete a model from disk and free the space |
Two honest warnings. First, ollama rm deletes instantly, with no "are you sure?" prompt, so read the name twice before pressing Enter. Second, ollama ps is your lie detector: if a chat feels slow, ps shows whether the model is really on your GPU or quietly crawling on the CPU.
Now plug in the free coding CLIs from Day 2
Remember Day 2's problem: OpenCode, Goose and Qwen Code are free as tools, but they normally think using a cloud model, and cloud free tiers keep ending. Ollama ends that dependency: all three can think using your local model instead, through the doorway from the install section, http://localhost:11434.
OpenCode. Add Ollama as a custom provider in your opencode.json config file:
{
"provider": {
"ollama": {
"npm": "@ai-sdk/openai-compatible",
"options": { "baseURL": "http://localhost:11434/v1" },
"models": { "qwen3:8b": { "name": "Qwen3 8B local" } }
}
}
}
The /v1 address works because Ollama also speaks the OpenAI API shape. The model name must match what ollama list shows, exactly.
Goose. Run its configure flow, choose Ollama as the provider (it defaults to your local host), then pick any downloaded model.
Qwen Code. It reads OpenAI style settings: point its base URL at http://localhost:11434/v1, set the model to a downloaded one (for example qwen3:8b), and use any non-empty value as the API key. There is no real key; the door is inside your own house.
One honest expectation: a local 8B model inside a coding agent is a decent junior helper, not a cloud flagship. Pick a model with tool calling support, and give coding agents a bigger context window (the Modelfile section below), or they will fumble multi-file work. For private code and experiments, though, the combination is unbeatable: capable enough, free, and your code never leaves the building.
Privacy: the part that is actually true
With a local model, the loop is tiny: you type, your PC thinks, you read. After the one-time download you can literally switch off Wi-Fi and keep chatting. Nothing is logged on someone else's server, because there is no someone else's server. For a diary, a contract draft, or company code, that is the whole point.
Two honest edges. First, the local API has no password by default, which is fine while it listens only on your own machine (127.0.0.1), its factory setting. Do not change OLLAMA_HOST to 0.0.0.0 unless you understand that it opens that password-free door to your whole network. Second, Ollama recently added optional cloud models, marked as cloud in the library. Those run on Ollama's servers, so they are neither offline nor private. The privacy promise covers local models only, the ones with a download size next to their name.
Make it yours: a first Modelfile
Once the basics feel boring, save your own variant of a model with a tiny recipe called a Modelfile. Create a text file named Modelfile:
FROM llama3.2 PARAMETER temperature 0.3 PARAMETER num_ctx 8192 SYSTEM "You are a concise writing assistant. Short paragraphs, no fluff."
Then run ollama create myassistant -f Modelfile once, and ollama run myassistant forever after. Temperature is the creativity dial (lower is straighter, higher is looser). num_ctx is the context window, how much conversation the model can hold in mind at once; Ollama's default is modest, a few thousand tokens, and coding agents want far more. Raising it costs memory, which is the one rule again: everything in local AI is memory, all the way down.
Troubleshooting: the six problems everyone hits
"ollama is not recognized" or "command not found". Your terminal predates the install. Close it, open a fresh one, try ollama --version again. On a Mac, launch the app once and accept the prompt that links the command.
The browser check fails, or commands say connection refused. The engine is not running. Open the Ollama app (Windows tray, Mac menu bar), check the Linux service, or run ollama serve and leave that terminal open.
It answers, but painfully slowly. Run ollama ps. If the processor column says CPU, the model is too big for your graphics memory, or your GPU driver is too old (Windows wants NVIDIA driver 551.61 or newer). Update the driver first, then pick a smaller model.
The model will not load, or fails with a memory error. The one rule, violated. Close heavy apps and step down one size.
Your disk is mysteriously full. Models are gigabytes each. ollama list shows the herd; ollama rm <name> removes the ones you stopped using.
It forgets the start of a long chat. That is the small default context window, not a broken model. Raise num_ctx with a Modelfile (see above).
The verdict, in one line: Ollama turns every free model from this whole week into something sitting on your desk, working offline, for $0, and the install is the easiest part of it.
FAQ
Is Ollama really free? Yes. The tool is open source under the MIT licence, local models are free to download, and there is no account or usage meter for local use. Your costs are electricity and disk space.
Do I need a graphics card? No. Any modern laptop can run the small models on CPU and RAM; llama3.2 is the safe start. A GPU decides how big a model feels fast, not whether local AI works at all.
Which model should a beginner pull first? ollama run llama3.2. About 2 GB, quick everywhere, and it teaches the full workflow.
Is my data sent anywhere? No, not with local models. Your prompts stay on your machine. Only Ollama's optional cloud models, clearly marked in the library, run on their servers.
How do I delete a model I no longer want? ollama rm <model name>, using the exact name from ollama list. It deletes immediately, with no confirmation, so check the name first.
Sources
- Ollama official documentation, download page and model library (ollama.com, docs.ollama.com), checked Nov 2026: installers per OS, commands, the API on port 11434, Modelfile format.
- Tech Insider, "Run LLMs Locally With Ollama", Nov 2026: stable version 0.40.16 (9 Nov 2026), the quickstart model gemma4:e2b and its memory guidance.
- MicroAI One, "Install Ollama on Windows, Mac and Linux (2026)", Oct 2026: system requirements (Windows 10 22H2, macOS Sonoma 14, NVIDIA driver 551.61), model sizes (qwen3:8b about 5.2 GB, gpt-oss:20b about 14 GB).
- Warp documentation, "Set up Ollama", and DEV Community Ollama guides, 2026: install commands, /bye and chat basics, the Linux service.
- Towards Data Science, "Build Your Own Local AI Coding Agent with Gemma 4 and OpenCode", 2026, and the VDF.AI OpenCode local setup guide, Oct 2026: gemma4:e4b in Ollama, the opencode.json provider block and baseURL.
- All diagrams in this post are original to RiseMe. Facts checked 23 Nov 2026.



