Ollama is the easiest tool to get started with local LLMs. It packages the model weights, configuration, and a runtime engine into one install. On Windows and macOS it comes with a desktop app that has a chat window, so you do not need a terminal at all. On Linux it is a command-line tool and a background service.
Option 1: the Ollama app (no terminal)
For Windows 10 (22H2 or newer) and macOS 14 Sonoma or newer, on an Apple M-series Mac or an Intel Mac.
- Download Ollama from ollama.com/download and install it. On Windows, run the
.exe(no admin rights needed). On macOS, unzip the file, move Ollama to Applications and open it; approve any prompt in System Settings → Privacy & Security. - The app opens a chat window. Setup offers to sign in to use cloud models, or choose a local model: choose a local model. Local use needs no account and no API key.
- Pick a model from the model selector in the message box. The first time you send a message, Ollama downloads that model, then answers. Everything after the download runs on your computer.
Not sure which model to pick? gemma4:e4b is a good first model for a 16 GB laptop or Mac. The table below lists a pick per kind of computer, and the Model Finder picks one for your exact machine.
Option 2: the terminal
Install
- Windows / macOS: install the app as in Option 1. It also installs the
ollamacommand, which works in PowerShell or Terminal. - Linux: run:
curl -fsSL https://ollama.com/install.sh | shRun your first model
ollama run gemma4:e4bOllama will:
- Pull the model manifest.
- Download the model layers (the size is listed in the table below).
- Verify the hash.
- Drop you into a chat prompt
>>>.
You can now chat! Type 'Why is the sky blue?' and hit Enter.
Which model for your computer
| Your computer | Model (Ollama) | Download size | Reads images | Fit | In LM Studio, search |
|---|---|---|---|---|---|
| 8 GB of RAM, no graphics card (an older laptop, a basic office PC) | phi4-mini | 2.5 GB | No | Comfortable | phi-4-mini |
qwen3.5:4b | 3.3–4 GB | Yes | Comfortable | Qwen3.5 4B | |
| 16 GB laptop without a graphics card, or a 16 GB Mac (MacBook Air 16 GB, a 16 GB Windows laptop) | gemma4:e4b | 6.6–9.5 GB | Yes | Tight. On a 16 GB Mac, close other apps first. | gemma-4-e4b |
| 8 GB graphics card (RTX 4060, RTX 3060 Ti) | qwen3.5:4b | 3.3–4 GB | Yes | Comfortable | Qwen3.5 4B |
| 16 GB graphics card, or a Mac with 24–32 GB (RTX 4070 Ti Super, Mac mini 24 GB, MacBook Pro 32 GB) | gemma4:12b | 7.7–8 GB | Yes | Comfortable | gemma-4-12b |
| 24 GB graphics card, or a Mac with 36 GB (RTX 3090, RTX 4090, MacBook Pro 36 GB) | gemma4:26b | 16–19 GB | Yes | Comfortable | gemma-4-26b-a4b |
Download sizes are from the Ollama library, checked 17 October 2026. The fit column is this site’s memory check, passed by every example machine in the row at the largest download size. For your exact computer, use the GPU & VRAM checker.
Useful commands
| Command | Description |
|---|---|
ollama list | Show all models installed on your machine. |
ollama pull [model] | Download a model but don't run it immediately. |
ollama rm [model] | Remove a model to free up disk space. |
ollama serve | Start the Ollama background service manually. |
Keeping Ollama up to date
Ollama updates itself on Mac and Windows: when an update is ready, the app offers Restart to update. On Linux, re-run the install script, which upgrades in place:
curl -fsSL https://ollama.com/install.sh | sh
ollama --versionCloud models
Some models in the app's list run on Ollama's servers, not on your computer, and need an Ollama account. Your messages to those models leave your machine. Local models never do. If you only want local AI, turn cloud off: set the environment variable OLLAMA_NO_CLOUD=1, or add "disable_ollama_cloud": true to ~/.ollama/server.json.
Recent features: agent mode, tool calling and MLX
Built-in agent mode
Ollama has an interactive agent mode: a tool-calling model can plan, call tools, and chain steps in a loop directly from the CLI, with no external agent framework. Run a model that supports tool calling and hand it a task:
ollama run qwen3-coder:30bWith agent mode the model can invoke registered tools (shell commands, file read/write, web fetch) and keep iterating until the task is done. Everything runs on your machine, so source code and documents never leave it, which is the whole reason to run an agent locally instead of in the cloud. To wire up your own tools, see Building Autonomous Agents with Local LLMs.
More reliable tool calling
Tool (function) calling is far more consistent in recent releases, and Ollama speaks the OpenAI-compatible tools format on its /v1/chat/completions endpoint, so existing OpenAI-SDK code works by pointing the base URL at http://localhost:11434/v1. Structured JSON output (JSON-schema format) is steadier too: details in Reliable JSON From Local LLMs and Setting Up a Local API Server.
MLX acceleration on Apple Silicon
On M-series Macs, Ollama can run supported models through an MLX backend (Apple's array framework) alongside the default llama.cpp engine. MLX uses the unified-memory architecture more directly and gives noticeably faster prompt processing and token generation on M3/M4 hardware. It engages automatically for supported models and falls back to the standard engine when a model isn't MLX-ready yet, so there is nothing to configure. Large models still need the unified memory to hold the weights.
Advanced: large tool-calling models and decision models
Models with strong tool support include Qwen3-Coder, Devstral Small 2, GLM-5, Kimi K2.x and Llama 4. Most of them need far more memory than a laptop has: check yours with the GPU & VRAM checker first.
Ollama 0.35 and newer also has a /v1/systemone endpoint for decision models, which answer typed questions with a probability per option instead of text. Pull Nimble or Tev1 to try one, or build a request first. A 400, 404 or 413 from that endpoint is explained in Ollama /v1/systemone errors.
Troubleshooting
- Error: could not connect to ollama app: Ensure the Ollama app is running in your system tray (Windows/Mac) or the service is active (Linux:
sudo systemctl start ollama). - Slow performance: Check if your model fits in your VRAM. If it's spilling into system RAM, it will be very slow.
- Exposing Ollama on a network? Lock it down first. Ollama's API has no login, so keep it on
127.0.0.1and put a VPN or an authenticating proxy in front: lock down a shared Ollama server.
Next steps
Now that Ollama is running, browse the Model Library for more models, or let the Model Finder pick one for your computer.