A step-by-step guide to running AI models on your own computer with Ollama: why local matters for privacy, how to filter the model library, what tags like e2b-mlx and q4_K_M mean, the settings that matter, the command line, the local API, and when Ollama Cloud makes sense.
Reading map
- Part I: Why local, and getting started — what you gain by running models yourself, installing Ollama, and how it is built.
- Part II: Finding the right model — where models come from, how the model library’s sort and filters work, the five capabilities, and a full walkthrough with Gemma 4.
- Part III: Reading model tags — engines (llama.cpp and MLX), quantization suffixes, digests and aliases, and what “latest” really means.
- Part IV: Using Ollama — the desktop app, the settings worth checking, context length, and the command line.
- Part V: Connecting other apps — the local API on port 11434, an Obsidian example, OpenAI-style apps, other machines, and agents.
- Part VI: Ollama Cloud — bigger models, the privacy promise, and the two paid plans.
- At the end: a comparison of the main local AI tools, a final perspective, a quick reference of commands and defaults, and an FAQ.
A note on perspective before we start: the walkthrough this guide is based on was made by a former member of Ollama’s founding team, who left the project almost three years ago and still calls it the best tool for the job. The facts below were checked against the screens shown; where something is his opinion, it says so.
Part I — Why Local, and Getting Started
1. What running AI locally gives you
The main reason to run a model on your own computer is privacy. Large hosted models can use your prompts and uploads to help train their next version. Most providers let you opt out, but there have been repeated cases of private data finding its way back into a model’s answers anyway.
That matters most when you work with sensitive material:
- financial documents,
- medical records,
- anything else you would not want to become public.
With Ollama, the model runs on hardware you own, so nothing you type or upload leaves the machine. The second point is quality: for many everyday tasks, a local model can perform as well as a large frontier model, and sometimes better. That will not be true for every task, but it is true often enough that local should be your default for private work.
2. Install Ollama
Installation takes a few seconds:
- Go to ollama.com and click Download at the top.
- On Mac and Windows, download the installer (or copy the install command for your platform).
- On Linux, there is no installer: use the one-line install script shown on the page.

Whether you install from the command line or with the installer, the result is exactly the same.

3. How Ollama is built
Installing Ollama sets up a background service. That service does all the heavy lifting: loading models, running them, and serving requests. What you interact with are two lightweight clients that talk to it:
- the desktop app on Mac and Windows,
- the command line (
ollama) on every platform.
This split explains a lot of what follows. The app and the CLI are just two windows onto the same service, and any other program on your computer can talk to that service too (Part V).
Install takes seconds. The service runs in the background; the app and the terminal are just ways to talk to it.
Part II — Finding the Right Model
4. Where models come from
There are two main sources:
| Source | Strengths | Weaknesses |
|---|---|---|
| ollama.com model library | Easiest; one command to download and run | Smaller selection |
| Hugging Face | Huge selection | Steeper learning curve, more risk with some uploads, often slower downloads |
Download speed from Ollama’s library is rarely the problem. On a fast internet connection, the bottleneck is usually how fast your drive can write.

5. The model library: sort and filter
On ollama.com, click Models at the top right (on a narrow window it is under the menu icon). The page changes often, but at the time of writing it offers:
- Sort: Popular (the default), Newest, Name, Price and Context. Price only matters for cloud models.
- Where the model runs: Any, Local or Cloud.
- Capabilities: Tools, Thinking, Vision, Embedding and Decision.
- Download size: Any size, or up to 8, 16, 32 or 64 GB, or over 64 GB.

The size filter is the one beginners skip and should not: pick a limit that leaves room on your machine, and everything in the list will at least download and load.
6. The five capabilities, in plain words
Tools. A tool-capable model can decide it needs more information and ask your application to run a tool you configured, such as a web search or a calculator. Your app runs it and hands back the result, and the model continues. This built-in tool support is easier to use than older prompt-based methods, at a small cost in effectiveness, but the older way was brittle.
Thinking. The model works through its own draft before giving a final answer. It is not always better, but it often helps, and it is getting more capable.
Vision. The model can take an image and describe it. A popular use is OCR, turning pictures of text into text. Free vision models long ago overtook open-source OCR tools such as Tesseract, and in the view of one member of Ollama’s founding team they now beat the expensive commercial ones too.
Embedding. An embedding model turns text into vectors (lists of numbers that capture meaning). These power RAG, retrieval augmented generation: the system finds the passages of your documents that match a question and gives them to a chat model, so it can answer from your data without being retrained. Despite regular predictions that RAG is dead, nothing has replaced it.
Decision. The newest category. A decision model answers yes or no, picks from a list, or gives a score, and it does so very fast: a local one can handle hundreds of requests per second. Decision models are also only minimally affected by prompt injection, the attack where hidden instructions in text hijack a model. That makes them a good gate in front of bigger, slower models: let the small model decide whether a request needs the expensive one at all.
| Capability | What it does | Typical use |
|---|---|---|
| Tools | Asks your app to run a tool, then continues | Search, calculators, agents |
| Thinking | Reasons through a draft first | Harder questions |
| Vision | Reads images | OCR, describing screenshots |
| Embedding | Turns text into vectors | RAG, “similar notes”, search |
| Decision | Yes/no, choice or score, very fast | Routing and guarding requests |
7. Walkthrough: filter and download Gemma 4
Here is the exact sequence from the walkthrough:
- Sort by Newest.
- Choose Local.
- Tick Tools, Thinking and Vision.
- Set the download size to Up to 8 GB.
At one point that left seven models; a short while later, there were eight. Lists like this change weekly.

Click gemma4. At the top of the model page is the run command, with a copy button on the right. Below it is a list of apps you can launch with this model (Claude Code, OpenCode and Hermes Agent at the time), then the most common variants.

Paste the command into a terminal:
ollama run gemma4
You will see “pulling manifest” and a progress bar; this download is about 9.5 GB. Alternatively, open the desktop app, choose the model in the model menu, and say hello: the app downloads it the same way.

Part III — Reading Model Tags
8. Model name, colon, tag
On a model page you can open View all to see every variant. Gemma 4 has a long list. Each entry is written as model:tag, for example gemma4:e2b-mlx. The part before the colon is the model; the tag after it packs in the size, the engine and the quantization. People complain about the tags, but encoding all of that in one short string is hard. Once you know the pieces, they are readable.

9. Two engines: llama.cpp and MLX
Ollama can run models on two engines:
- llama.cpp, which uses GGUF files. Whenever you see GGUF, think llama.cpp.
- MLX, Apple’s own framework.
On a Mac, MLX is the default, because it is much faster on Apple Silicon. Ollama has been working with Apple to bring MLX to Windows and Linux; Linux users report some success, Windows is not there yet. Check the release notes for your version.
10. Quantization suffixes
The end of the tag tells you which engine and how the model was compressed (quantized):
| Tag ends with | Engine | Meaning |
|---|---|---|
| mlx, bf16, mxfp8, nvfp4 | MLX | MLX formats and precisions |
| q4, q8 … sometimes with K and S, M or L (e.g. q4_K_M) | llama.cpp (GGUF) | GGUF quantization level |

Lower numbers mean a smaller, more compressed file and usually a small loss in quality. For a first model, take the default and only experiment once you know what your machine can handle.
11. Digests and aliases
Under each variant name is a digest, a long hexadecimal code that identifies the actual file. Two names with the same digest are aliases of the same file. In the Gemma 4 list:
gemma4:e2b-mlx 7.5GB f4a8449d1781
gemma4:e2b-mlx-bf16 10GB 8781e4366f28
gemma4:e2b-mxfp8 8.2GB 035e18b64c9f
gemma4:e2b-nvfp4 7.5GB f4a8449d1781
e2b-mlx and e2b-nvfp4 share the digest starting f4a8, so they are the same file. If you pull both, Ollama stores it once; nothing is duplicated. The same digests appear in the blob files Ollama keeps on your disk.

12. What “latest” really means
latest is an unfortunate name. It does not mean the newest version. It means the most commonly used variant, the default you get when you type just the model name. For Gemma 4, latest had the same digest as e4b. And e4b itself exists as both an MLX and a llama.cpp (GGUF) build, each with its own digest, so the page for that variant shows two sets of details.

Variants are not hyperlinked to each other, so matching digests means scrolling back and forth by hand.
Rule of thumb: on a Mac, look for MLX tags; on Windows and Linux, GGUF tags with a q number; and read “latest” as “default”, not “newest”.
Part IV — Using Ollama
13. The desktop app
The app opens to a prompt box, like most AI chat tools. Type a message and the reply appears; with a thinking model such as Gemma 4 there is a collapsible “Thought for … seconds” section above the answer, and a copy button for the response.

Around the prompt box:
- + adds files, or drag them onto the window.
- The globe turns on web search, which runs through Ollama’s cloud servers.
- The model menu picks which model answers.
- At the top: a new-chat button and a sidebar toggle. The sidebar holds your chats, Apps (integrations with agents) and Settings.

14. Settings worth checking
In Settings:
- Account and Cloud: sign in to an Ollama account and choose whether cloud models are enabled.
- Show apps in menu (Mac): show integrations in the menu bar.
- Auto-download updates: turn this on. Ollama changes fast.
- Expose Ollama to the network: lets other devices use your Ollama. There is no authentication: anyone who can reach your machine can run models on it. Enable it only on a network you trust, such as at home, and keep a firewall in place elsewhere.
- Model location: leave the default unless you have a reason, such as sharing GGUF files with another app or using a larger external drive.
- Context length: see the next section.
- Below that are model choices for the Claude and ChatGPT integrations, if you use them.

15. Context length and GPU memory
Context length is how much of the conversation the model can keep in view. Ollama sets the default from your GPU memory:
| GPU memory | Default context |
|---|---|
| Less than 24 GB | 4K tokens |
| 24 to 48 GB | 32K tokens |
| More than 48 GB | 256K tokens |
In every case the setting never goes beyond what the model supports: a model limited to 32K stays at 32K even on a big machine. The slider in Settings runs from 4K to 256K if you want to change it.

16. The command line
The CLI can do almost everything the app can. The basics:
ollama run gemma4 # chat with a model (downloads it first if needed)
ollama run gemma4 "Summarize: ..." # one prompt, prints the answer, ideal for scripts
ollama pull gemma4 # download without running
ollama pull hf.co/<org>/<repo> # download from Hugging Face
ollama ls # list downloaded models
ollama rm gemma4 # remove a model
ollama # menu (current versions) or help
Typing ollama on its own has changed several times: an interactive menu, then plain help, and now (version 0.40.16 in the walkthrough) a menu again. The menu offers Chat with a model and launchers for agents such as Claude Code, Hermes Agent and ChatGPT. Press the right arrow on an entry to configure it, for example to choose another model. Inside a chat, /bye or Ctrl+D returns to the menu.


Part V — Connecting Other Apps
17. The local API on port 11434
Chatting is only the start. Because Ollama runs as a service, any program can send it requests. The default address of the Ollama API is:
http://localhost:11434
Two variations cover most cases:
- OpenAI-style apps. Some tools only support the OpenAI API, which is more limited than Ollama’s own. For those, add
/v1:. - Another machine. If the app runs on one computer and Ollama on another, enable Expose Ollama to the network on the Ollama machine (trusted networks only) and use its IP address instead of localhost.
18. Example: similar notes in Obsidian
Whatever app you use, the pattern is the same. The walkthrough uses Obsidian, a notes app, and a community plugin that lists notes similar to the one you are reading. It works by comparing embeddings, so it needs an embedding model.

- Install the plugin and set its Ollama URL to
. - On ollama.com, filter by Embedding. EmbeddingGemma 2 was the best of the bunch at the time.
- Open it, take the variant tagged
latest, and copy its pull command into a terminal. It is tiny, so it downloads in moments. - Back in the plugin, click Refresh. Models that cannot embed are greyed out; choose EmbeddingGemma 2.
- Click Test, then apply.


Within a few minutes, depending on how many notes you have, each note lists its closest neighbours at the bottom.

19. Agents with ollama launch
To run a coding agent locally, the quickest start is:
ollama launch
Then pick the agent from the list. The model page’s “Applications” box shows the matching command for each agent, for example ollama launch claude --model gemma4.
Part VI — Ollama Cloud
20. Bigger models, the privacy promise, and the price
Sometimes a model needs more hardware than you have. Ollama Cloud runs much larger models, fast. On the model library, filter by Cloud to see them.

Privacy. Ollama does not make its own models, and the company states that nothing you send to Ollama Cloud is tracked, stored or logged, so nothing can be passed on to a third party. One member of Ollama’s founding team concludes that cloud gives the same privacy as local. That is a fair reading of the policy, but it is still a promise you cannot verify from your own machine, unlike a model that physically runs on it. For truly sensitive data, local remains the safe default.
Price. Cloud models are paid: there is a $20 a month plan and a $100 a month plan. One member of Ollama’s founding team reports using Ollama Cloud heavily, interactively and from tools such as Hermes, Pi and n8n, and says that used sensibly it is hard to hit the limits even on the $20 plan.
How to use it.
- In the CLI, pull or run a model whose tag includes
cloud. - In the app, pick it from the model menu.
- From your own code, you can call
with an API key instead of localhost. The simpler route is usually to keep pointing atand just name a cloud model.
The service had growing pains early on, with access and billing problems, which are reported to be mostly resolved now.
How the Main Local AI Tools Compare
The opinions in this table come from someone who helped build Ollama; try the others before you decide.
| Tool | What it is | Strengths | Drawbacks |
|---|---|---|---|
| Ollama | Background service + app + CLI, runs llama.cpp and MLX | Easiest start, good performance by default, local API, cloud option | Fewer knobs than llama.cpp; tag names take learning |
| LM Studio | Desktop app | Still developed; lots of options for people who like control | Interface feels bloated (his view); not open source |
| llama.cpp | The original open-weight engine, CLI and now a GUI | Engine under every GGUF tool; most options and best performance when tuned | Steepest learning curve; needs tuning to get there |
| Oobabooga | Early web UI | Was the most popular at the start | Very complicated; appears less active, main developer now on Unsloth Desktop |
There has also been a public dispute about how Ollama credits llama.cpp; a member of Ollama’s founding team says the claims made against Ollama were false. Both projects are MIT licensed.
Final Perspective
Local AI has gone from a hobby for people willing to compile things to a few-second install. Ollama’s real contribution is not a new engine but a sensible shape: one background service, simple clients, a model library you can filter, and a local API every other app can use. That shape is why the same model can answer in a chat window, a shell script and your notes app at once.
The parts that still trip people up are the ones covered here: picking a size that fits, reading tags, and knowing which defaults to change. Get those right and the rest is experimenting. Start small, keep private data local, and treat the cloud as an upgrade for specific jobs, not a replacement.
Quick Reference
| Task | How |
|---|---|
| Install | ollama.com → Download (Mac/Windows installer, Linux script) |
| Find a model | Models → filter by Local, capability and download size |
| Download and chat | ollama run <model> |
| Download only | ollama pull <model> or ollama pull hf.co/<org>/<repo> |
| List / remove | ollama ls / ollama rm <model> |
| One-shot answer | ollama run <model> "prompt" |
| Start an agent | ollama launch |
| API address | (/v1 for OpenAI-style apps) |
| Default context | <24 GB GPU: 4K · 24–48 GB: 32K · >48 GB: 256K |
| Mac tags | mlx, bf16, mxfp8, nvfp4 |
| GGUF tags | q + number, e.g. q4_K_M |
| latest | most common variant, not newest |
| Cloud | models tagged cloud; $20 or $100 a month |
FAQ
Is Ollama free?
Yes. Running local models costs nothing beyond your hardware and electricity. Only Ollama Cloud models are paid, with plans at $20 and $100 a month.
Which model should I start with?
Filter the library by Local, the capabilities you need and a download size that fits your machine (the walkthrough used “Up to 8 GB”), then take the default (latest) variant of a popular model such as Gemma 4.
Should I choose an MLX or a GGUF variant?
On an Apple Silicon Mac, MLX is the default and is faster. On Windows and Linux, use GGUF variants (tags ending in q and a number), since MLX support there is still maturing.
Is it safe to expose Ollama to my network?
Only on a network you trust. Ollama’s network access has no login, so anyone who can reach your machine can use your models.
Does Ollama Cloud keep my prompts?
Ollama states that it does not track, store or log what you send to cloud models. That is a policy you have to trust; for sensitive data, a local model is the only option you can fully control.
How do I connect an app that only supports the OpenAI API?
Use as the base URL and the Ollama model name as the model.
Further Reading and Notes
- The Ollama model library, download page and API documentation at ollama.com (filters, tags, sizes and defaults here are as shown in November 2026), and the Obsidian community plugin directory for embedding-based “similar notes” plugins.
Screens, model lists, prices and defaults are as of November 2026; Ollama’s website, app and command line change often, so check the current version before you rely on a detail. Some views here come from a member of Ollama’s founding team; opinions about other tools are marked as opinions.
