How-to8 min readBy the Mac Ninja team

How to Run a Local AI Model on Mac: Ollama and LM Studio

Run a local AI model on your Mac with Ollama or LM Studio: the memory you need, which model to pick, the exact steps, and how to put it to work in Ninja Bots.

Laptop with a glowing chip above it connected to folders, showing an AI model running locally on a Mac

To run a local AI model on a Mac, install a free model runner such as Ollama or LM Studio, download a model small enough for your Mac's memory, and chat with it in the app or connect other apps to it through its local server. On an Apple silicon Mac with 16 GB of memory, the whole setup takes about 15 minutes, most of it spent downloading the model.

A local AI model is a language model whose files sit on your Mac and that runs on your Mac's own chip and memory, so your prompts and its answers do not go to a cloud service. This guide covers what you need, how to run local AI models on Mac with Ollama and with LM Studio, how to pick a model size, how to check it is running well, and how to give that local model real tasks on your Mac with Ninja Bots.

What do you need to run a local AI model on a Mac?

You need a Mac with enough free memory for the model, a few GB of free disk per model, and a model runner app. Memory is the limit that matters most: the model has to fit in RAM alongside your other apps.

  • A Mac, ideally Apple silicon. M-series chips share memory between the CPU and GPU, which suits local models well. Intel Macs can run small models, but slowly, mostly on the CPU.
  • Memory. A rough rule: a model at 4-bit quantization (the usual download) needs about 0.6 GB of memory per billion parameters, plus some headroom for the conversation.
  • Disk space. Each model is a file of roughly 2 GB to 40 GB or more.
  • A runner. Ollama (a menu bar app with a command line tool) or LM Studio (a desktop app with a model browser). Check each download page for the current macOS requirement.
Mac memoryComfortable model size (4-bit)What to expect
8 GB1B to 4B parametersQuick answers, simple drafting and summaries; 7B to 8B fits only with little else open
16 GB7B to 14B parametersGood everyday writing, summaries and simple coding help
32 GBUp to about 30B parametersNoticeably better reasoning and longer documents
64 GB or moreUp to about 70B parametersThe largest common open models, slower per word

These are estimates, not guarantees. If memory pressure turns red while the model runs, step down a size.

How to run a local AI model on Mac with Ollama

Ollama is the quickest route if you are comfortable typing one command. One command downloads a model and starts a chat, and Ollama keeps a local server running for other apps.

  1. Download Ollama for macOS from its website, open the disk image and drag Ollama to Applications.
  2. Open Ollama. A llama icon appears in the menu bar; that means its local server is running.
  3. Open Terminal and run ollama run llama3.2. The first time, it downloads the model (a couple of GB), then shows a >>> prompt.
  4. Type a question and press Return. Type /bye to leave the chat.
  5. See what you have with ollama list, see what is loaded in memory with ollama ps, and free disk space with ollama rm followed by the model name.

What to expect

The first answer can take a few seconds while the model loads into memory; after that, replies stream word by word. Ollama serves other apps at http://localhost:11434, and its OpenAI-compatible address is http://localhost:11434/v1. Other model names are listed in Ollama's model library; swap llama3.2 for the one you want.

How to run a local AI model with LM Studio

LM Studio suits people who prefer clicking to typing. You browse, download and chat with models in one window, and it can also run a local server.

  1. Download LM Studio for Mac from its website and move it to Applications.
  2. Open it and go to the Discover (search) tab. Search for a model family such as Llama, Gemma, Qwen or Mistral.
  3. Pick a size from the table above. On Apple silicon, LM Studio offers MLX versions built for M-series chips as well as GGUF versions; either works.
  4. Click Download, then go to the Chat tab and choose the model from the model picker at the top to load it.
  5. Type a message. LM Studio shows how fast the reply was generated under each answer.
  6. To let other apps use it, open the Developer tab and start the server. It listens on http://localhost:1234 by default, with an OpenAI-compatible address at http://localhost:1234/v1.

What to expect

LM Studio warns you when a model looks too large for your memory. Trust that warning; a model that spills into swap becomes very slow.

Which local model should you pick?

Pick the largest model that fits comfortably in your memory, from a well-known family, and test it on your own tasks. A smaller model that runs smoothly beats a larger one that makes your Mac swap.

  • For writing and summaries: a general instruction-tuned model (names often end in "instruct" or "it") from the Llama, Gemma, Qwen or Mistral families.
  • For code: a model tuned for coding from one of those families.
  • For agents that use tools: choose a model whose page says it supports tool or function calling. Small models are often unreliable at multi-step tasks, so try 7B or larger when you can.
  • For older or 8 GB Macs: a 1B to 4B model, and expect shorter, simpler answers.

Check each model's license on its page before using it for work. Open models differ in what they allow.

How do you check the model is running well?

Watch memory pressure and reply speed for a few minutes of normal use. Green memory pressure and steady streaming text mean the model fits.

  1. Open Activity Monitor and choose the Memory tab. Keep an eye on the Memory Pressure graph while the model answers (our guide on how to check memory pressure on Mac explains the colors).
  2. If it turns yellow or red, close heavy apps or switch to a smaller model. High swap is a sign the model is too big; see Mac swap memory high.
  3. Expect the fans or warmth to rise during long answers. That is normal for sustained GPU work.
  4. Run ollama ps or look at LM Studio's loaded model to confirm only one model is in memory. Unload models you are not using.

How to use a local model with Ninja Bots on your Mac

Ninja Bots, the AI assistant that comes with Mac Ninja, can run on a model on your Mac through Ollama, LM Studio or any OpenAI-compatible server. With a model on the Mac, the model's work stays on the Mac, and instead of only chatting, your bots can work with your files and browse the web in a built-in browser of their own.

What you need first

  • A Mac on macOS 12 Monterey or later, Apple silicon or Intel, with about 1 GB of disk for Ninja Bots (Ninja's email offers need macOS 13).
  • Mac Ninja with a license or its free 7-day trial (no card needed). Ninja Bots is included; it has no AI subscription of its own and adds no fee per request.
  • Your local runner (Ollama or LM Studio) open, with a model downloaded and its server running.

Ninja Bots is not for Windows, iPhone or web-only users, and without a plan, key or local model the bots have nothing to think with.

Steps

  1. Download Mac Ninja from the download page and start the trial. From Mac Ninja 2.0, Ninja Bots is inside the app; nothing more to download.
  2. Option-click the ninja in the menu bar to open the Ninja Bots window.
  3. Choose New Bot… from Mac Ninja's menu and give the bot its instructions.
  4. In the bot's settings, set its AI to the model on your Mac (Ollama, LM Studio or another OpenAI-compatible server). The exact setup is in Ninja Bots support; see bring your own AI for the options.
  5. Open the bot's Permissions and lower its access if it does not need everything (see below).
  6. Give it a task: press the ask bar's keyboard shortcut from any app, or choose Give a Bot a Task. From Mac Ninja 2.0.13 you can paste a screenshot or files with ⌘V or drag them onto the bar; nothing leaves the Mac until you press Return.
  7. Read the result and check it before you rely on it. AI models make mistakes, and small local models more often.

Access: what a bot may do

A new bot starts with Full access: it can run commands, read and change files and use the internet with your rights without asking each step, and use the screen once Ninja Bots is allowed under Accessibility and Screen Recording in System Settings. It still asks before it uses a saved login, sets up a routine, adds a skill or talks to another bot. Lower access for any bot that only needs to read and write text; details are on what a bot may do. Note that a local model keeps the thinking on your Mac, but a bot that browses the web still visits those sites.

Mixing local and cloud

Each bot has its own model, schedule and conversations. You can keep a private notes bot on a local model and give a bot that needs stronger reasoning your Claude or ChatGPT plan; our guides on using your Claude plan and using your own API key cover those. Ninja in the menu bar can also draft a reply to an email open in Apple's Mail or Gmail in English; the draft is shown for editing and is sent only when you click Send, never by itself.

Local model or cloud plan: which should you use?

Use a local model when privacy, offline use or no per-request cost matters most; use a cloud plan when you need the strongest reasoning. Many people use both, one per task.

CriterionLocal modelCloud plan or API key
Where prompts goStay on your MacTo the provider, on your account
Works offlineYes, for chatNo
Quality on hard tasksDepends on model size and your memoryUsually stronger
LimitsYour Mac's memory and speedThe plan's or key's own limits and prices
Load on the MacHigh while answeringLight

For a broader look at keeping an assistant under your own control, read self hosted AI personal assistant.

What to do next

Install Ollama or LM Studio today, download one model from the size table, and test it on three tasks you do every week. If it handles them and you want it to work with your files and apps rather than in a chat window, try Mac Ninja free for 7 days and point a Ninja Bot at your local model. Plans are on pricing ($19.99 a month or $200 a year for up to 3 Macs, 14-day money-back guarantee; your AI stays your own), and honest limits lists what it does not do yet.

Frequently asked questions

Can I run a local AI model on a Mac with 8 GB of RAM?

Yes, with small models. A 1B to 4B parameter model at 4-bit quantization runs comfortably on 8 GB and handles short drafting, summaries and simple questions. A 7B or 8B model can load but leaves little memory for other apps, so close heavy browsers first and watch memory pressure in Activity Monitor. If it turns red, switch to a smaller model.

Is Ollama or LM Studio better on a Mac?

Both run local models well on Apple silicon. Ollama is quickest if you are comfortable with Terminal: one command downloads and starts a model, and its server runs from the menu bar. LM Studio suits people who prefer a window with a model browser, download buttons and speed shown per reply, and it offers MLX versions of models for M-series chips.

Do local AI models work on Intel Macs?

They can, but slowly. Intel Macs mostly run models on the CPU, so stick to small models of 1B to 4B parameters and expect replies to take noticeably longer than on Apple silicon. Check each runner's download page for current Intel and macOS support, since requirements change between versions.

Does a local model send my data anywhere?

The model itself runs on your Mac, so prompts and answers stay there. The runner app still downloads models and may check for updates. In Ninja Bots, a task set to a model on the Mac keeps the model's work on the Mac, though a bot that browses the web still visits sites. Bots, conversations and settings stay on the Mac.

Do I need Mac Ninja to run a local AI model?

No. Ollama and LM Studio run local models on their own. Mac Ninja's Ninja Bots is useful when you want that model to do tasks on your Mac: bots with their own instructions and schedules, the ask bar from any app, and Ninja's offers in the menu bar. It needs macOS 12 or later and a license or the free 7-day trial.

Published November 27, 2026. Spotted a mistake? Email support@macninjaa.com.