LocalLM Lab icon

LocalLM Lab

Your Mac already has an AI engine built in

LocalLM Lab gives you access to it — experiment with it directly in Prompt Playground, or build against it like any AI API with API Lab. Free, private, and running entirely on your Apple Silicon Mac.

⬇ Download for macOS (Apple Silicon) Free · No account required

Requires macOS 26+ on Apple Silicon with Apple Intelligence enabled.

Why LocalLM Lab matters

Apple's Foundation Models framework runs a real language model directly on your Mac's silicon — no network calls, no cloud costs, no data leaving your machine. Most developers don't realize it's already sitting there, ready to use. LocalLM Lab exists to make that model easy to reach, whether you're experimenting with it directly, building against it or just learning about AI, so you can find out what it can and can't do before committing to it in a real product.

Prompt Playground

Three simple panes: a system prompt, a user input, and the model's output. Write or paste in a system prompt, type or import a user input, and hit Run to see exactly how Apple's on-device model responds — with a stopwatch showing how long it took.

Every run is independent — there's no conversation memory carried between runs — so you can freely vary the system prompt or the input to see how each change shapes the response. Output renders verbatim, including raw JSON, so you can test structured-output prompts too.

The system prompt and user input aren't simply concatenated into one blob of text — they're sent as distinct roles through Apple's FoundationModels API. The system prompt becomes a session's instructions; the user input is the message passed to respond(to:):

LanguageModelSession(instructions: systemPrompt)
    .respond(to: userInput)

Every run is appended to a plain-text log at ~/Library/Logs/LocalLM Lab/dev.log — one timestamped chunk per run, with the model, system prompt, user input, and output each clearly labeled. Open it in any text editor to review or search past runs; it isn't cleared between launches.

API Lab

API Lab turns the same on-device model into a local, OpenAI-compatible API — point existing tools and scripts built for the OpenAI API at your own Mac instead of a paid cloud endpoint.

It's a way to learn how to build AI-enabled apps against a real API without needing to hand over a credit card or pay per token just to get started. Because everything runs on your machine, it's also naturally private and free to experiment with — but the real point is giving you a zero-cost way to learn how AI app development actually works.

Turning it on is a toggle away in a simple settings screen, where you'll find the local address and access token your code needs to connect. Turn on request logging in that same screen and every incoming call is appended to ~/Library/Logs/LocalLM Lab/api-requests.log — method, path, status, duration, and the full request/response bodies — handy for confirming your code is actually reaching it.

Example code here.

Connectors

Turn on connectors in Local AI Settings to give the model real information from your Mac to answer with — your calendar, reminders, contacts, current location, or the weather — instead of only what it already knows. Every connector is off by default and stays on your Mac except Weather, which is clearly flagged as the one exception that leaves the device. Most connectors are read-only; Calendar and Reminders can also add new events and reminders.

See what each connector does →