Run a local AI model to control an iPhone: which Mac you need

By Dean Hajjar ·

Memory decides it. A 16 GB Mac runs 7–8B vision models, 24–32 GB runs 12–24B models (the sweet spot), 48–64 GB runs 30B-class models, and 96 GB or more runs the largest open vision models. Run the model in Ollama or LM Studio, pick it in iFarm under AI brain → Custom / OpenAI-compatible, and screenshots never leave your Mac.

Why run the model on your own Mac

iFarm's auto mode lets an AI drive a real iPhone: it looks at a screenshot, decides, and taps, swipes or types through iFarm. The AI is the brain and iFarm is the hands, so the brain is your choice. A cloud model (Claude, OpenAI, Gemini) is the most capable. A local model has three different strengths:

The cost is that the model runs on the Mac's own chip and memory, right next to the phones.

What the model has to be able to do

Not every model can drive a phone. It needs two abilities:

  1. See images. Every step starts with a screenshot of the phone. A text-only model can't tell where the search button is.
  2. Call tools (function calling). The model doesn't tap anything itself. It asks iFarm to tap, swipe or type by calling a tool. A model that can only write text back can't do that.

In Ollama's library, look for models with both the vision and tools tags. If a model page shows only one of them, it won't work as a brain.

Which Mac for which model

Mac memoryModel size that fitsExample MacsWhat to expect
16 GB7–8B vision modelsA base Mac mini M4Short, clear tasks: open an app, tap by name, read a value. A few seconds per step. Keep to about 4 phones.
24–32 GB (recommended)12–24B modelsA Mac mini M4 with more memory, or an M4 ProThe sweet spot for a small farm, with room left for the phones.
48–64 GB30B-class modelsA Mac mini M4 Pro or a Mac StudioThe best local results for longer tasks. Pro chips also answer faster: more memory speed.
96 GB and upThe largest open vision modelsA Mac Studio with a Max or Ultra chipA dedicated AI and farm machine.

Remember the phones need memory too. Each phone costs the Mac about 140 MB (about 100 MB for its helper process and 40 MB for its live view). iFarm's Health page shows how much is free and "Room for about N more phones" for your Mac, so you can see what's left after the model loads.

Example models

New open models come out often, so treat these as starting points and check the library for newer ones. As of November 2026:

ModelSizes on OllamaVisionToolsNotes
Qwen3-VL2b, 4b, 8b, 30b, 32b, 235bYesYesqwen3-vl:8b for 16 GB; qwen3-vl:30b for 48–64 GB
Mistral Small 3.224bYesYesFits the 24–32 GB tier
Gemma 34b, 12b, 27b with visionYesCheckGemma 3 12B fits the 24–32 GB tier, but Ollama's official page lists only the vision tag. Use a build that's tagged for tools, or pick another model.

Note: The tags on the model's own library page are what count. If iFarm's run stops at the first step, the model most likely can't call tools.

Set it up in iFarm (Ollama)

  1. Install Ollama from ollama.com.
  2. Download a model with vision and tools. In Terminal:

`` ollama pull qwen3-vl:8b ``

  1. In iFarm, open AI brain in the toolbar and choose Custom / OpenAI-compatible.
  2. Pick Ollama, press Check, and pick the model from the list.
  3. Open a phone's page, type a short task in its Claude box ("open Settings and read the iOS version") and press send (⌘↩). The box uses whichever brain you chose.

Set it up in iFarm (LM Studio)

  1. Install LM Studio and download a model that can see images and use tools.
  2. Start its local server in the Developer tab.
  3. In iFarm's AI brain, choose Custom / OpenAI-compatible, pick LM Studio, press Check and pick the model.

Anything else that speaks the OpenAI-style chat API works under Other.

Be realistic about what a local model can do

Local models are much weaker than Claude or GPT at driving a phone, and that's true even of the large ones on long, multi-step tasks.

Works wellStruggles
Open an appLong tasks with many screens
Tap something by its textTasks that need judgment on every screen
Read a value off the screenRecovering after a wrong turn
Short, clearly worded goalsVague goals ("do something useful")

They're also slower: on a 16 GB Mac, expect a few seconds per step. Bigger models do better, which is why memory matters.

The trick: let the AI run once, then replay for free

For jobs you repeat every day, you don't need an AI at all. A recorded automation is faster and free. So use the local model to build the automation:

  1. On a phone's page, type the task in its Claude box.
  2. Turn on Save as automation (save what the AI does as a new automation).
  3. Let the model do it once while you watch.
  4. iFarm saves every step it took as a normal automation. From then on it replays without any AI: fast, free, on any phone, on schedules and in flows.

If the model took a detour (tapped the wrong thing and went back), the saved steps include it; delete those steps in the editor. Each saved tap gets the same text matching as a recording, so it also works on other iPhone sizes (how that works).

The rules still apply

A local brain doesn't change what iFarm allows. By default iFarm asks before posting, sending or following, and you approve each post. iFarm never buys anything, never types passwords, and doesn't hide automation from apps. Stop, ⌘. and the phone's emergency stop (hold volume up + volume down) work the same. Each app's own rules still apply whichever brain you use.

Frequently asked questions

Can a 16 GB Mac mini run a local model and phones at the same time?

Yes, for small models and a small farm. A 16 GB Mac fits 7–8B vision models such as qwen3-vl:8b; keep to about 4 phones and short, clear tasks.

Is a local model as good as Claude for phone automation?

No. Local models are fine for short tasks but often get lost on long or judgment-heavy ones. For daily routines, record an automation, or let the model build one once and replay it without AI.

Do screenshots leave my Mac with a local model?

No. With Ollama or LM Studio on the same Mac, screenshots and instructions stay on the Mac.

Why does my model start and then do nothing?

It most likely can't call tools, or can't see images. Pick a model with both the vision and tools tags in Ollama's library.

Does iFarm cost anything with a local model?

No. iFarm is free with every feature, and a local model has no per-use bill.