apfel - Free AI on Your Mac

Source: Hacker News | Type: AI/Tools | Rating: ★★★★½

Key insight: Every Apple Silicon Mac with macOS 26 (Tahoe) ships with a built-in LLM. apfel unlocks it as a CLI tool, OpenAI-compatible server, and chat interface.

Why this matters

Technical Details

What apfel adds

apfel wraps LanguageModelSession and exposes it three ways:

Installation

# Via Homebrew (recommended)
$ brew install Arthur-Ficial/tap/apfel
$ apfel "Hello, Mac!"

# Or build from source
$ git clone https://github.com/Arthur-Ficial/apfel.git
$ cd apfel && make install

Features

OpenAI API Compatibility

from openai import OpenAI

client = OpenAI(
    base_url="http://localhost:11434/v1",
    api_key="unused"  # no auth needed
)

resp = client.chat.completions.create(
    model="apple-foundationmodel",
    messages=[{"role": "user", "content": "What is 1+1?"}],
)
print(resp.choices[0].message.content)

URL: https://apfel.franzai.com | GitHub: 292 stars