Afm Studio — AI skill for Claude Code
Apple's on-device foundation model as a Mac app, a CLI, an MCP server for Claude, and a local OpenAI-compatible API.
How to install Afm Studio
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ry-ops/afm-studio and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Afm Studio does
Apple's on-device foundation model as a Mac app, a CLI, an MCP server for Claude, and a local OpenAI-compatible API. Pure Swift.
Alternatives in AI
- Vllm Mlx — High-performance OpenAI and Anthropic compatible LLM inference server for Apple Silicon 1.5k ★
- Swift Agent Skills — A curated directory of open-source AI agent skills for Swift and Apple platform development 1.5k ★
- Wax — Shared Single-file memory layer for all your agents, sub mili-second RAG over text, photo and video on Apple S 791 ★
README
AFM Studio

**Apple's on-device foundation model, everywhere you work on a Mac.** A native SwiftUI app, a command-line tool (`afm`), an MCP server for Claude, and a local OpenAI-compatible API. All of it is one Swift package. Its one third-party dependency is [SwiftTerm](https://github.com/migueldeicaza/SwiftTerm) (MIT, pinned to an exact version), which powers the built-in terminal.

The model is the roughly 3-billion-parameter model behind Apple Intelligence. It runs on the Mac itself. It's free and works offline, and what you send the model stays on your Mac. A few features use the network on purpose, and each one is off until you turn it on. [Security and privacy](#security-and-privacy) lists them.
What's inside
| Surface | What it gives you |
|---|---|
| AFM Studio app | Chat with tools, 24 recipes, a structured-output builder, batch runs over folders, side-by-side comparisons, a token inspector, benchmarks, history, an integrated terminal, and a menu-bar quick-ask panel. |
afm CLI |
Pipe-friendly prompts, recipes, JSON extraction, resumable chats, token counts and benchmarks. |
MCP server (afm mcp) |
15 tools that let Claude hand text work to the on-device model, plus tools from any integration you turn on. Files are processed locally with path, so their contents never enter Claude's context. |
OpenAI-compatible API (afm serve) |
/v1/chat/completions on 127.0.0.1, with streaming and response_format: json_schema. |
| Claude section | Your Anthropic API key in the macOS Keychain, on-device vs. Claude comparisons with cost, and automatic MCP registration in Claude Code and Claude Desktop. |
| Integrations | Optional connections to outside services, each off until you turn it on: GitHub, and Jev, a decision model tha |
Related Skills
Basalt
Turn your Mac into a local LLM server: MLX on Metal, OpenAI + Anthropic API + MCP, pure Swift. Point Claude Co
Voxcpm2 Voice Server
Private, studio-quality local text-to-speech (VoxCPM2): web app, OpenAI-compatible API, one-click installers f
Ovo Local LLM
A private Claude-Code-style coding agent for Apple Silicon — run chat, code, and local model workflows on-devi
Appstore Connect MCP
Apple Store Connect MCP Server for Claude AI - iOS-compatible OAuth with comprehensive App Store Connect API i
Jarhead
Voice-first Mac assistant that uses the computer for you. GPT-Live-1 full-duplex voice behind an on-device wak
Fenn Focus
Free, local-first AI assistant for your Mac's notch: tasks, calendar, Pomodoro focus timer, app blocker, routi
Related Agents
Fable5 Apfel Engineer
Heavy-lifting Fable-5 engineer for the apfel project (Apple on-device FoundationModels CLI + OpenAI-compatible
Lmstudio Local
A locally-hosted model served through LM Studio's OpenAI-compatible API,
Foundation Models
Specialist for Apple's Foundation Models framework and Apple Intelligence — on-device and Private Cloud Comput