ry-ops

Afm Studio — AI skill for Claude Code

AI community

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

![AFM Studio: Apple's on-device model, reached from the app, the afm CLI, Claude over MCP and an OpenAI-compatible API, all on your Mac](docs/images/hero.svg)

**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.

![Recipes](docs/images/recipes.png)

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