macOS 27 Built-In LLM: Call Apple's AI from Terminal

Apple quietly shipped one of the most developer-friendly AI features in macOS 27: a built-in, offline large language model accessible directly from Terminal. The Foundation Models framework now exposes a simple command-line interface that requires zero configuration, no API keys, and works entirely on-device for machines with M1 chips and 8GB of RAM or more.
Zero-Setup Command Line Access
The core interface is remarkably simple. Developers can invoke Apple's Foundation Models with a single command: fm respond "Your Question". The model processes queries locally and returns responses without external network calls, making it ideal for privacy-sensitive workflows or environments with limited connectivity. Text can also be piped directly into the command, enabling seamless integration with existing shell scripts and Unix workflows.
Apple has included structured output capabilities through the --schema flag, allowing developers to request JSON responses that conform to predefined schemas. This feature addresses a common pain point in LLM-based automation, where parsing unstructured text outputs often requires brittle regular expressions or additional processing steps.
On-Device Performance and Limitations
According to early testing, the Foundation Models run efficiently on M1 Macs with 8GB of unified memory. The system maintains a 4K token context window, which balances memory constraints with practical usability for most command-line tasks. Response times vary based on query complexity and available system resources, but initial reports suggest latency suitable for interactive terminal sessions.
For queries that exceed on-device capabilities, Apple offers a Private Cloud Compute fallback. This hybrid approach routes larger or more complex requests to Apple's secure cloud infrastructure while maintaining the company's privacy-first architecture. The system automatically determines when to use cloud resources based on query size and available local compute.
Local Server Mode for Development
The fm serve command exposes a local HTTP endpoint, transforming the built-in model into a development server. This functionality enables rapid prototyping of AI-powered applications without deploying external API infrastructure or managing authentication tokens. Developers can test integrations locally before committing to production-ready solutions or third-party LLM providers.
The local server mode particularly benefits workflows that require repeated queries during development cycles, such as content generation pipelines, data transformation scripts, or interactive debugging tools. By eliminating network latency and API rate limits, the on-device endpoint significantly accelerates iteration speed.
Release Date and Availability
The Foundation Models Terminal interface officially launched on October 21, 2026, as part of the macOS 27 release. The feature is available immediately to all users running compatible Apple Silicon hardware, with no additional software installation or enrollment required. Apple has not announced plans to backport the functionality to earlier macOS versions.
What This Means for Developers
Apple's decision to expose Foundation Models through a command-line interface represents a significant shift toward developer-centric AI tooling. By prioritizing simplicity and local execution, the company addresses growing concerns about API dependencies, vendor lock-in, and privacy in AI-powered workflows. The Terminal integration positions macOS as a compelling platform for developers building automation tools, content pipelines, and AI-assisted development environments without relying on external cloud services. This approach may pressure other platform vendors to provide similar zero-configuration AI capabilities for their developer communities.
on Emergent today






