Your Mac already has an AI model on it.

If it’s an Apple silicon Mac with Apple Intelligence turned on, there’s a roughly 3-billion-parameter language model sitting on the disk right now: the on-device model behind Apple Intelligence. It runs entirely on your machine. It’s free, it works on a plane, and nothing you type into it goes anywhere.

Apple just doesn’t give you an app to talk to it.

So I built one. AFM Studio is a native Mac app, a command-line tool, a plug-in for Claude and a local API for that model. AFM stands for Apple Foundation Models. It’s MIT-licensed and open source. No account, no API key, no subscription, no per-prompt bill. Here’s the tour.

An animated tour of the AFM Studio app: chat with tools, recipes, structured output, the terminal and the menu bar. It needs JavaScript.

24 built-in recipes, 15 MCP tools for Claude, 8 GitHub tools, 4 ways in, a 4,096-token context, and $0 per prompt.

What it is, in one breath

AFM Studio gives you the on-device model in four places, all built from one Swift package:

Where What you get
The app Chat, 24 one-click recipes, structured output, batch runs over folders, a terminal, a menu bar helper, benchmarks and history.
The afm command The same model in Terminal: pipe anything in, get text or JSON out.
Claude’s toolbox An MCP server with 15 tools, so Claude Code and Claude Desktop can hand easy work to your Mac.
A local API An OpenAI-compatible endpoint on 127.0.0.1, so other apps and scripts can use the model too.

If you’ve used ChatGPT’s or Claude’s desktop apps, the shape will feel familiar: a sidebar of chats, a set of tools, connectors to other services. The difference is where the thinking happens. Every prompt runs on your Mac’s own chip.

A day with AFM Studio

Fancy demos are easy. What I actually wanted to know was whether I’d use it. So I ran a normal day’s worth of small chores through it. These are the real answers, the model’s first try, unedited. Click through the day.

Ten everyday tasks run through AFM Studio with the model's real, unedited output: an email summary, standup action items, proofreading, an email reply, a translation, receipt extraction, ticket triage, a commit message, a terminal error and a quick calculation.

A pattern shows up fast. The model is quick and genuinely useful at small text chores: squeeze this, tidy that, pull the fields out of this, sort this ticket. It’s also a 3B model, so it slips. A repeated bullet, a missed “they’re”, a malformed commit header. I left every slip in, with a note, because that’s the honest deal: it does the boring 90%, and you glance at it before it ships.

That’s also why the most-used part of the app turned out to be the smallest one.

The menu bar helper

Click the sparkles icon in the menu bar and you get a little panel from anywhere on your Mac. Type a quick question, or run one of six one-click actions on whatever’s on your clipboard: Summarize, Proofread, Friendlier, Translate, Action items or Explain. Copy a rambling email, click Summarize, done. Copy a sloppy Slack message, click Proofread, then one click copies the fixed version back. It works with any app you can copy from.

Everything in the box

A filterable list of every AFM Studio feature: the app, Claude, developer, integration and privacy features.

A few deserve a closer look.

Recipes: one click, done

Recipes are ready-made jobs with their own instructions and settings, so you don’t have to write prompts. There are 24 built in:

The 24 recipes. Understand: Summarize, Key points, Explain simply, Ask the document, Outline. Write: Rewrite, Proofread, Translate, Headlines, Email reply, Draft from notes, Redact. Extract (JSON): Sentiment, Classify, Entities, Action items, Meeting notes, Tags, Keywords, Quiz. Code: Explain code, Explain an error, Commit message, Regex helper.

The model’s context is only 4,096 tokens, about three pages. Recipes work around that for you. A 40-page document gets split on paragraph boundaries, each piece is processed, and the results are combined. Summaries keep the length you ask for, even on that 40-page document: short means at most five bullets or three sentences.

Three recipes are newer than the rest. Redact hides names, addresses, emails, phone numbers and ID numbers behind placeholders like [Person 1]. The model only finds them, and the app makes the swaps, so nothing else in your text can change. Explain an error reads a log from the end, where the error usually is. Draft from notes turns bullet notes into an email, a short report or a chat message.

You can write your own recipes in the app or drop a JSON file in a folder, and they show up everywhere: app, Terminal and Claude.

Structured output: JSON that’s always valid

This is the framework’s best trick. Give it a list of fields, or paste a JSON Schema, and Apple’s constrained decoding guarantees the output matches. The model can only produce tokens that keep the JSON valid. It doesn’t “try” to follow the format. It can’t break it.

AFM Studio’s structured-output builder: a ProductReview schema on the left, valid JSON streaming in on the right

That turns a small model into a reliable data tool. Receipts into rows, transcripts into action items, support emails into labeled tickets. It also exports the schema as Swift @Generable code if you’re building your own app.

A real terminal, with an explain button

New since the first version of this post: AFM Studio has a VS Code-style terminal. Press ⌃` and a panel slides up under whatever you’re doing, with tabs running your real login shell. Colors, vim, ssh and your prompt all work.

The fun part is Explain (⇧⌘E). When something blows up, it sends the error, or whatever you’ve selected, to the on-device model and shows what happened in a side panel. You can ask follow-up questions about the same output.

In the day above you can see it get the diagnosis right (“port 5173 is already in use”) and then suggest two commands that wouldn’t work. That’s exactly why Explain only explains. It never types or runs anything for you.

The afm command

Everything in the app is also one command away in Terminal:

afm "Explain DNS like I'm new to networking"
pbpaste | afm run summarize -p style="a one-line TL;DR"
git diff | afm run commit-message
afm extract --fields "vendor:string, total:number, items:[string]" < receipt.txt
afm chat --session ideas        # resumable chats
afm bench                       # how fast is it on this Mac?

It streams in a terminal, pipes cleanly, and --json gives you machine-readable output for scripts.

Integrations, like plug-ins

Desktop AI apps have connectors and plug-ins. AFM Studio has integrations, and the first one is GitHub. The rule I set for all of them: every integration starts off. Turning one on shows you exactly what it signs in with, which servers it talks to, and whether it can ever write anything. Then you get three switches. Try them:

The integrations hub: GitHub's manifest and its three switches (On, Tools in chat, Tools for Claude), and how the tools Claude and the on-device chat can see change as you flip them.

“Off” really means off. While GitHub is off, AFM Studio never reads your token, and Claude can’t call its tools even if it asks for one by name.

With it on, GitHub becomes a daily helper, and it’s drafts only. It never posts, labels or merges anything. When it writes something for GitHub, you get a link that opens GitHub with the form pre-filled, and you press the button.

GitHub feature What it does for you
Inbox digest What needs you today: reviews, assignments, mentions, your open PRs.
Summaries Any issue or PR boiled down, including the diff.
Triage Type, priority, missing info and possible duplicates. It suggests labels only from the repo’s real label list.
PR descriptions Written from your local branch, file by file, so big diffs still fit.
Release notes Everything since the last tag, grouped by type.
Repo briefs and next steps Where a project stands, plus up to five issue drafts.
Blog drafts A first draft in your blog’s exact format and frontmatter.

GitHub is the first. Each integration is its own module with the same manifest and switches, so adding the next one doesn’t touch the rest of the app.

Better together with Claude

This is the part I’m most excited about. Claude is far smarter than a 3B model, but a lot of text work doesn’t need smart. “Summarize this log.” “Pull the totals out of these receipts.” “Tag these 40 notes.” When Claude does that itself, every word of the file passes through its context, and you pay for every token.

AFM Studio plugs into Claude as an MCP server with 15 tools. Most of them take a file path instead of the text. Claude says “summarize ~/logs/upgrade.log,” your Mac reads and summarizes it, and Claude only ever sees the summary:

Claude calls afm_summarize with a file path. The Mac reads the file in chunks with the on-device model and returns a short summary, so Claude never reads the whole file.

You don’t configure anything. When AFM Studio opens from your Applications folder, it registers itself with Claude Code and Claude Desktop, after backing up your Claude Desktop config. It re-checks every launch, so moving the app doesn’t break it, and you can switch it off in the Claude section. After an update, reconnect afm in Claude Code with /mcp, or restart Claude Desktop, so Claude talks to the new version.

The Claude section: API key, model and effort, MCP auto-hook switches for Claude Code and Claude Desktop, and a side-by-side comparison

The Claude section also does side-by-side comparisons: the on-device answer next to Claude’s, with what the Claude answer cost. That needs an Anthropic API key, and since this repo is public, I was strict about it. The key lives in your macOS login Keychain and nowhere else. It’s never written to the repo, the settings file or any other file. Other apps have to ask your permission before they can read it.

Private by design

“On-device” is the headline, but I wanted the rest of the app to live up to it. A few features need the internet. Each one is labeled, and each one is off until you turn it on:

A map of what can leave your Mac: prompts, files and chats stay local. A web page fetch, GitHub and Claude features only connect when you turn them on.

The rest is locked down too:

  • Off-limits files. Neither the model nor Claude can read your SSH keys, cloud credentials, .env files, keychains, Safari cookies, Mail or Messages through AFM Studio, even inside allowed folders.
  • No sneaking onto your network. The web-fetch tool refuses local and private addresses, including after redirects, so a web page can’t steer the model toward your router or home lab.
  • The local API answers only your Mac. It listens on 127.0.0.1, rejects requests from other websites, and can require a token.

The honest part

I’d be underselling the project if I made it sound like magic. The model is small, and you’ll feel it:

  • It’s not a know-it-all. It’s weak at world knowledge, math (hence the calculator tool) and long reasoning. Give it your text and it shines. Ask it trivia and it guesses.
  • Three pages of memory. The 4,096-token context is the constraint everything works around. Chats summarize their older turns automatically when they fill up. Paste something longer than the whole window, like a meeting transcript, and it reads it in parts, shows you its progress, and answers from its notes.
  • The safety filter is jumpy. Apple’s guardrails once refused to write me a haiku about a homelab. “Permissive” mode, for transforming your own text, fixes most of that.
  • Long-form writing is a stretch. Its first try at a blog post about itself declared that AFM stood for “Atomic Force Microscopy.” That’s why Claude helped me with this one.

It’s also not fast, at anywhere from a few to about 50 tokens a second on my Mac mini. But it’s free, it’s private, and it never has an outage.

Get it

You need an Apple silicon Mac on macOS 27.1 or later, with Apple Intelligence turned on.

The quickest way in is the download. Grab the zip from the latest release, unzip it and drag AFM Studio into Applications. It isn’t notarized by Apple, so the first time you open it, choose Open Anyway in System Settings › Privacy & Security.

Or build it yourself. That needs Apple’s free Command Line Tools for Xcode 27.0, which include the macOS 27 SDK. Then one command builds it and installs it in Applications:

git clone https://github.com/ry-ops/afm-studio.git ~/Projects/afm-studio
bash ~/Projects/afm-studio/scripts/build-app.sh --install

To update later, choose AFM Studio › Check for Updates… or run afm update check, and it shows you the steps.

Open AFM Studio, and the green dot at the bottom of the sidebar tells you the model is ready. Run afm status in Terminal if it isn’t.

I’m using it every day now: Summarize from the menu bar, Explain in the terminal, and Claude handing it logs I don’t want to pay to read. More integrations are coming, behind the same three switches. If you try it, build a recipe or catch it calling itself a microscope, open an issue. I’d love to see what you do with it.

Updated October 25, 2026, for AFM Studio 0.2.4: macOS 27.1 is now required, there are three new recipes, summaries keep their length, and there’s a download if you’d rather not build it.