Hidden LLM Inside macOS 27 Terminal
This article shows how macOS 27 includes a built-in LLM accessible via /usr/bin/fm that runs entirely offline and needs no account. The author tests it on an M1 MacBook Air, noting its limited memory, occasional inaccuracies, and a range of Terminal-based tricks.
- macOS 27 includes an offline, account-free LLM ("Apple Foundation Models") accessible via /usr/bin/fm in Terminal
- Runs smoothly on a base M1 MacBook Air with 8GB RAM, though it has limited memory and no awareness of current dates
- Useful for practical tasks like drafting emails, translation, summarizing Markdown, generating regex/SQL, and shell scripting help
- Prone to hallucinating dates or inventing functions when pushed beyond simple tasks
Apple snuck a small LLM into macOS 27, accessible right from your Terminal as the command /usr/bin/fm. No Apple ID, no internet needed—just type fm and start chatting with the local “Apple Foundation Models” assistant. It’s not on par with GPT-5.5, but it runs smoothly on a stock M1 MacBook Air with 8 GB of RAM. Expect limited memory, occasional gibberish, and no awareness of current dates.
Vemu spent a day running through ten practical use cases. He had fm draft emails, translate text between English and Japanese, summarize long Markdown files, and even generate regular expressions on demand. He used it to pull headlines from an RSS feed, format JSON responses, and turn CSV data into SQL insert statements. He also tested shell-command assistance—asking fm to build a find-and-replace script—plus simple math, like mortgage calculations.
Beyond basic text work, Vemu pushed it further: journaling prompts, hex-color conversion for web design, and generating workout plans. He notes the model will hallucinate dates or invent functions if you push it too hard. Still, for quick drafts, format conversions, and lightweight coding help—especially when you’re offline—fm can save time without rattling your privacy.