AI agents · OpenClaw · self-hosting · automation

Quick Answer

How to Run Local LLMs on a Mac in 2026: Step-by-Step Guide

Published:

The short answer

On an Apple Silicon Mac, install Ollama, LM Studio or MLX, pick a model that fits in your unified memory, and run it. All three are free. As of November 25, 2026:

OllamaLM StudioMLX (mlx-lm)
Best forAPI service other apps and agents callDesktop app with model browserPython scripting, quantizing, LoRA fine-tuning
RequirementsmacOS 14 Sonoma+, Apple M-series (Intel = CPU only)Apple Silicon, macOS 14+, 16 GB+ RAM recommended; no IntelApple Silicon, Python
InstallDrag Ollama.app to ApplicationsDownload the apppip install mlx-lm
InterfaceCLI + API on localhost:11434GUI, local server, MCP servers, chat with documentsmlx_lm.generate, mlx_lm.chat, Python API
Model sourceOllama libraryHugging Face (GGUF and MLX)Hugging Face mlx-community

On Windows instead? See how to run local LLMs on Windows. Still choosing hardware? See best Mac for running local LLMs.

Step 1: Check your memory

Open Apple menu → About This Mac and note the chip and memory. On Apple Silicon the GPU uses the same unified memory as the CPU, so that number is your model budget. Rule of thumb at 4-bit: about 0.6 GB per billion parameters, plus 2–4 GB for context and some headroom for macOS (by default macOS lets the GPU wire only part of total memory).

Unified memoryWhat runs well (4-bit)
8–16 GB3B–8B models: drafting, summaries, autocomplete
24–32 GB14B–32B dense models; small MoE models such as Inkling 2 Mini (~20 GB checkpoint, Mac 32 GB+)
64 GB70B dense at 4-bit; ~120B MoE only tightly
96–128 GB~120B MoE models comfortably, long contexts
256–512 GB200B–500B-class open-weight models

Memory bandwidth decides speed: a Max or Ultra chip generates tokens several times faster than a base chip with the same model.

Step 2a: Ollama (fastest start)

  1. Download Ollama, open the .dmg, drag it to Applications and launch it; it offers to link the ollama CLI into /usr/local/bin.
  2. In Terminal: ollama run inkling-2-mini (or any model from the library). The first run downloads the weights to ~/.ollama.
  3. Point apps at http://localhost:11434 — coding agents, Open WebUI and most local-AI tools speak Ollama’s API.
  4. Logs live in ~/.ollama/logs (server.log) if something fails.

Step 2b: LM Studio (no Terminal)

  1. Install LM Studio, open the Discover tab and search for a model; it marks which files fit your memory.
  2. On a Mac, prefer the MLX build of a model where offered; otherwise use GGUF.
  3. Chat in the app, attach documents, or start the local server for other apps. LM Studio also connects to MCP servers.

Step 2c: MLX (for developers)

pip install mlx-lm
mlx_lm.chat --model mlx-community/<model-name>-4bit

mlx_lm.generate --prompt "..." runs one-off generations, and the Python API (from mlx_lm import load, generate) drops into scripts. mlx-lm can also quantize models, upload them to Hugging Face, and run LoRA or full fine-tuning — something Ollama and LM Studio do not do.

Step 3: Keep it fast

  • Close memory-heavy apps before loading a large model; swapping kills speed.
  • Use 4-bit for chat; go to 6- or 8-bit only if you have spare memory and notice quality issues.
  • Keep context windows as small as the task allows — long contexts consume memory quickly.
  • For which models to run, see best local LLMs for Mac.

Last verified: November 25, 2026.

Sources