In this categoryLocal AI ยท 24
Local AIBeginner

How to Install Ollama on macOS

Get Ollama running on a Mac in under 10 minutes: install via Homebrew or the native app, pull your first model, and confirm the local server is responding.

8 minBeginner

Ollama is the fastest way to run large language models on your own hardware. It manages model downloads, GPU acceleration, and a local HTTP server that speaks the OpenAI API format. On macOS, there are two install paths: a Homebrew formula for people who live in the terminal, and a native app for everyone else. This guide covers both.

What you need

  • A Mac with Apple Silicon (M1/M2/M3/M4) or an Intel Mac with at least 8 GB RAM
  • macOS 12 Monterey or newer
  • Homebrew installed (optional but recommended)
  • About 5 GB of free disk space for a small model
Apple Silicon runs models much faster
On M-series Macs, Ollama uses the Neural Engine and unified memory, so even a 13B model feels snappy. Intel Macs work but fall back to CPU-only inference, which is noticeably slower for larger models.

Option A: Install with Homebrew

Homebrew is the cleanest path because it handles updates with a single command. Open Terminal and run the two commands below. The first installs the Ollama formula from the core tap; the second starts the background service.

zsh - install
$brew install ollama
==> Downloading https://formulae.brew.sh/formula/ollama
==> Installing ollama
๐Ÿบ /opt/homebrew/Cellar/ollama/0.9.x: 4 files, 82 MB
$brew services start ollama
==> Successfully started `ollama` (label: homebrew.mxcl.ollama)
$

The service starts automatically on login. To stop it, run brew services stop ollama. To update later, run brew upgrade ollama.

Option B: Install the native app

If you prefer a menu-bar app over a background service, download the macOS installer directly from ollama.com. The .dmg contains a standard macOS application. Drag it to /Applications and open it. A small llama icon appears in your menu bar when the server is running.

zsh - verify native install
$which ollama
/usr/local/bin/ollama
$ollama --version
ollama version 0.9.x
$

Step 2: Pull and run your first model

The ollama run command pulls a model on the first invocation and then opens an interactive chat prompt. Llama 3.3 is Meta's flagship open model and a solid first choice. The 8B variant fits in 8 GB of RAM.

zsh - first run
$ollama run llama3.3
pulling manifest...
pulling 8b model weights... โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 100% 4.7 GB
>>> Send a message (/? for help)
$Hello! What can you do?
Hi! I'm a large language model running locally on your machine...
Type /bye to exit the chat
$

The model weights are cached in ~/.ollama/models after the first pull, so subsequent runs start in seconds. You can run ollama pull llama3.3 separately to download in the background without opening a chat.

Step 3: Verify the local server responds

Ollama starts an HTTP server on localhost:11434. You can check it is running and list downloaded models with a simple curl request. This is also the endpoint used by any client library or app that integrates with Ollama.

zsh - verify server
$curl http://localhost:11434
Ollama is running
$curl http://localhost:11434/api/tags | python3 -m json.tool
{
"models": [
{ "name": "llama3.3:latest", "size": 4661211648, ... }
]
}
$

Managing models

Use the ollama CLI to manage what is stored on disk. Models live under ~/.ollama/models and can be several gigabytes each, so cleaning up unused ones matters.

  • ollama list โ€” show all downloaded models with size and modification date
  • ollama pull mistral โ€” download a model without running it
  • ollama rm llama3.3 โ€” delete a model from disk
  • ollama show llama3.3 โ€” print the model card (context length, architecture, license)
Update Homebrew Ollama in one command
Running brew upgrade ollama downloads the latest binary and restarts the service automatically. Pin a specific version with brew pin ollama if you need stability across a project.

At this point Ollama is installed, a model is cached locally, and the API server is responding on port 11434. The next step is using the OpenAI-compatible endpoint from your own code, which is covered in the guide on using Ollama as a drop-in OpenAI API.

Local models run better with more VRAM. CompareRTX GPUs on Amazonbefore you upgrade.(affiliate link. We may earn a commission at no extra cost. Disclosure)

Watch related tutorials

Free weekly email

Weekly local AI drops

New models, what runs on your hardware, and the guides to set them up. One email a week, unsubscribe any time.

Tags
#ollama#ollama tutorial#run ai locally mac#local ai mac#ollama macos