Ollama is free software that downloads AI models and runs them on your own computer, with no account and no subscription. Here is how it works, how to use it, and what I think of it.
Ollama at a glance
Ollama is an open source tool (MIT license) available on macOS, Windows and Linux. It acts as a model manager: one command to download a model, another to chat with it, and a local server that other software can call. Nothing leaves your machine, which matters if you work on confidential documents or offline.
How it works
A language model is a very large file of parameters. To make it fit on a desktop computer, it is quantized: the precision of the numbers is reduced (often to 4 bits), which divides the size by three or four for a limited loss of quality. Ollama downloads these ready-made quantized versions from its library, then runs them with an inference engine historically built on llama.cpp.
It uses your graphics card when it finds a compatible one (NVIDIA, AMD, or the chip of an Apple Silicon Mac). If the model is too big for the card's memory, it splits the work between the card and the processor: it works, but it is much slower. The deciding factor is therefore the available memory: the graphics card's, or the unified memory of a Mac.
Ollama also starts a server at http://localhost:11434. It exposes Ollama's own API and an endpoint compatible with the OpenAI API, so most code editors, chat interfaces and agent tools can be plugged into it just by changing the address.
Install Ollama and run a first model
On macOS and Windows, download the installer from ollama.com. On Linux, one line is enough:
curl -fsSL https://ollama.com/install.sh | shThen run a model. Take gpt-oss 20B, an open model that fits on a 16 GB card (KernelFox's calculation gives about 13 GB of memory with 32,000 tokens of context):
ollama run gpt-oss:20bOn the first run, the model is downloaded, then a chat prompt opens in the terminal. The other useful commands:
ollama list # downloaded models
ollama ps # models loaded in memory
ollama pull name # download without running
ollama rm name # delete a modelTo know which model to pick for your hardware, the AI model ranking shows the memory needed for each one.
Use it as a server for your tools
As long as Ollama is running, you can query it from a script or an application:
curl http://localhost:11434/api/chat -d '{
"model": "gpt-oss:20b",
"messages": [{"role": "user", "content": "Hello"}],
"stream": false
}'For a tool that expects the OpenAI API, just point its base address to http://localhost:11434/v1 (the API key can be any value). It is the most common way to use a local model with a code editor or an agent.
Keep Ollama up to date
Ollama evolves continuously: new versions come out regularly, with support for new models and improvements to the engine that runs them. On macOS and Windows, the app offers the update itself. On Linux, you rerun the install command, which replaces the existing version and keeps the models already downloaded:
curl -fsSL https://ollama.com/install.sh | shIt is worth it, speed included. To check, I measured the same models before and after an update, on an old laptop: a 4-thread processor, no dedicated graphics card, 30 GB of DDR4 RAM. Same settings both times (thinking disabled, 120 tokens generated, temperature 0), three runs per model, from version 0.16.1 to version 0.35.1:
- Qwen3 30B-A3B (18 GB): 6.6 tokens per second with 0.16.1, 7.9 with 0.35.1, about 20% more.
- Llama 3.2 1B (1.3 GB): about 12 tokens per second with 0.16.1, 14.2 with 0.35.1, about 18% more.
The model is the same, and so is the hardware: only the software changed, and each model gains about a fifth in speed. It is a single machine and a single test, so the order of magnitude matters more than the exact figures.
One last point on speed: some models, like Qwen3, think first and write out their reasoning before answering, even to a simple "Hello". The figures above are without that thinking. On a computer without a graphics card, it easily adds a minute of waiting. In ollama run, the /set nothink command turns it off for the session.
Customize a model
A Modelfile lets you start from an existing model, set a system instruction and adjust parameters, for example the context size:
FROM gpt-oss:20b
SYSTEM "You answer concisely."
PARAMETER num_ctx 16384ollama create my-assistant -f Modelfile
ollama run my-assistantWatch the context: the larger it is, the more memory the model uses. It is the first thing to reduce when a model does not fit.
My take
What is very good. Ollama made local AI accessible: installed in a few minutes, one model name to type, and it works. The OpenAI-compatible API makes it an easy building block to integrate, and the model library is vast. To try things out, develop or work offline, it is the starting point I recommend.
What is less good. The simplicity hides settings: the default context is modest, the quantization is chosen for you, and you do not always see what fits in memory. For fine control or heavy production use, lower-level tools like llama.cpp or vLLM leave more room. Finally, a local model, even a good one, stays below the best models offered through an API: it all depends on the level you need.
Who it is for. Anyone who wants to keep their data at home, avoid a subscription or experiment, with at least an 8 GB card or a recent Mac. If you are unsure what your machine can run, start by seeing which AI model fits on your graphics card.