Your Mac already has a free AI that works offline

macOS 27 ships the Apple Intelligence model ready to use from Terminal. No account, nothing to pay and it works with Wi-Fi off.

Steps

  1. Open Terminal: press Cmd + Space, type "Terminal" and hit Enter.
  2. Type "sudo fm license", enter your Mac password and accept the terms.
  3. Type "fm respond" followed by your question in quotes.
  4. Turn off Wi-Fi and ask it whatever you want.

What you need

A Mac with Apple silicon, M1 or newer, running macOS 27. To check, open the Apple menu (top left) and click "About This Mac". Next to "Chip" it has to say Apple M1 or a later one, and the macOS version is right below.

You don't need an account or to install anything. The command is called fm and it comes with the system, in /usr/bin/fm. It's the command-line tool for Apple Foundation Models, the Apple Intelligence language model, which runs inside the Mac.

Accept the license once

Before the first use you have to accept Apple's terms. They apply to every user on the Mac, which is why the command starts with sudo.

sudo fm license

It asks for your Mac password. Nothing shows up while you type it, not even dots, and that's normal. Press Enter, read the terms and answer "yes" or "y". Any other answer and fm exits without doing anything.

To check whether your Mac has already accepted them:

fm license --status

Ask it something

fm respond "Write me an email asking for Friday off"

The answer appears as it's written. If you want it to answer in a specific way, give it instructions with -i:

fm respond -i "Answer in two sentences" "Why is the sky blue?"

Talk to it like a chat

fm respond answers once and exits. To ask several questions in a row and have it remember the earlier ones, use fm chat.

fm chat

Conversations are saved in the ~/.fm/sessions folder. To pick up the last one:

fm chat --continue

Check that it's available on your Mac

fm available

It tells you whether the model can be used on that Mac. If something doesn't work, this is the first thing to check.

Summarize a text

With --text you pass it a text separate from the question. Copy the text you want summarized (an email, an article, some notes) and paste this into Terminal. "$(pbpaste)" inserts whatever you have copied.

fm respond --text "$(pbpaste)" "Summarize this in three points"

Describe an image

fm respond --image ~/Desktop/photo.jpg "What's in this image?"

Change the path to your image's. If you don't know it, type "fm respond --image ", drag the photo into the Terminal window and the path fills itself in.

Use it from other apps

fm serve starts a server on your Mac that speaks Chat Completions, the format of the OpenAI API. Apps and scripts that use that format can run on Apple's model instead of a paid one.

fm serve --port 8080

It keeps running while the window is open. To stop it, press Ctrl + C.

Every command

CommandWhat it does
fm respondAnswers a question
fm chatOpens a conversation
fm availableTells you whether the model is available
fm count-tokensCounts the tokens in a text
fm schemaCreates a JSON schema so the answer comes back in that shape
fm serveStarts a Chat Completions compatible server
fm licenseShows the terms and accepts them

fm respond options

OptionWhat it's for
-iInstructions it has to follow
--textA text added to the question
--imageAn image added to the question
--save-transcriptSaves the conversation to a file
--resumeContinues a conversation saved with --save-transcript
--no-streamPrints the whole answer at the end instead of as it's written
-gAlways picks the most likely word instead of varying
--guardrailsThe filter level: default or permissive-content-transformations

No internet

The model lives on your Mac, so your question never leaves it. Turn off Wi-Fi before you type and the answer comes back just the same. Everything in this article comes from "man fm", the manual that ships with the Mac: type it in Terminal to see the rest of the options.