AFM (macOS Local API)

2026-05-14 · source · source ↗ · raw capture · wiki page

AFM is a Swift-based command-line tool that exposes Apple's Foundation Models and open-source MLX models through an OpenAI-compatible API endpoint. Runs entirely locally on Apple Silicon Macs without cloud services or API keys.

Key Features

Advanced Technical Features

System Requirements

Installation

Three deployment options: Homebrew (brew install scouzi1966/afm/afm), pip (pip install macafm), or build from source.

API Endpoints

Architecture

Written primarily in Swift (65.7%) with Shell (22.9%) and Python (10.6%). Uses Vapor web framework. Compatible with agentic coding assistants including OpenCode, OpenClaw, Cline, Continue.dev, Aider, Cursor, and Hermes.

License: MIT