AI agents on the Mac
Run a local LLM on a Mac: Ollama, LM Studio and MLX compared
Ollama, LM Studio or MLX for local models on Apple silicon: how each installs, what it serves, how much memory a model needs, and keeping the local server private.
Updated 8 October 2026 3 min read
The short answer
For a local model on Apple silicon: Ollama is the quickest command-line route and serves an API on localhost:11434; LM Studio is a desktop app with a model browser and an OpenAI-compatible server on port 1234; MLX is Apple’s own framework for running models in Python. Unified memory sets the limit: a 4-bit model needs roughly 0.6 GB per billion parameters, plus room for context.
Ollama
brew install ollama
ollama serve & # or open the Ollama app
ollama run llama3.2It listens on 127.0.0.1:11434, with an OpenAI-compatible API under /v1. Setting OLLAMA_HOST=0.0.0.0 exposes it to your network; don’t, unless you mean to.
LM Studio
A Mac app: browse and download models (including MLX builds for Apple silicon), chat, and start a local server from the Developer tab. The server speaks the OpenAI API on localhost:1234, so most tools work by changing the base URL. Leave “serve on local network” off unless you need it.
MLX
pip install mlx-lm
mlx_lm.generate --model mlx-community/Llama-3.2-3B-Instruct-4bit --prompt "Summarise this email:"MLX is Apple’s array framework for Apple silicon. It’s the most direct route for developers building their own pipelines in Python.
How big a model fits
- 16 GB Mac: comfortable with 7–8B models at 4-bit.
- 32 GB: 13–14B models, or 7–8B with long contexts.
- 64 GB and up: 30B-class models at 4-bit.
macOS, your apps and the context window share the same memory, so leave headroom.
Local doesn’t mean private by default
A local server is reachable by every program on your Mac, and by browsers on pages that call localhost if the server allows their origin. Keep servers bound to 127.0.0.1, require a key where the tool supports one, and remember the model sees whatever your tools feed it: emails, files, tool results.
The safe way to do this
MoltenMail
Let an AI agent read and draft your email, never send it
MoltenMail lets a local model read and draft your email, with no send path at all.
See MoltenMailQuestions developers ask
Which is faster on Apple silicon, Ollama or LM Studio?
Both use Apple silicon acceleration; with MLX builds in LM Studio, speed is similar. Choose by workflow: CLI and API (Ollama) or a desktop app (LM Studio).
How much RAM do I need to run a local LLM on a Mac?
About 0.6 GB per billion parameters at 4-bit, plus headroom for context and macOS: 16 GB runs 7–8B models well.
Is a local LLM private?
The model runs on your Mac, but its server is reachable by local programs. Bind it to 127.0.0.1 and control what tools send it.