apfel
$ apfel Official Low Riskapfel (apfel) is a native macOS CLI and OpenAI-compatible local server exposing Apple's built-in on-device Foundation Model (Apple Intelligence) on Apple Silicon Macs (macOS 26+). It supports single-shot prompts with -o json / --output json, -f file context, --model-info, interactive --chat, and --serve.
brew install apfel apfel calls the host macOS Foundation Models framework natively on Apple Silicon with zero model downloads.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -o json / --output json, -f file input, and --model-info for headless automation, though --chat and --serve are interactive/blocking.
-o json/--output jsonemits schema-valid JSON responses--model-inforeports hardware context limits
100% on-device execution with zero external API keys, network calls, or multi-GB model downloads.
- Runs strictly on-device using built-in macOS Foundation Models
Single Homebrew binary (brew install apfel), but restricted strictly to Apple Silicon Macs on macOS 26+.
- Requires macOS 26+ (Tahoe) on Apple Silicon with Apple Intelligence
Instant zero-download local inference and OpenAI-compatible --serve using built-in OS weights.
- Zero model download overhead; built-in
-f <file>and--serve
Open-source Arthur-Ficial/apfel community project under MIT license.
- Community
Arthur-Ficial/apfelrepository (MIT)
Clear README and --help flag documentation.
- Clear repository README and
--helpreference
Security, Auth & Guardrails
Zero credentials or API keys needed; runs directly against macOS on-device Apple Intelligence.
Free MIT open-source binary; requires an Apple Silicon Mac running macOS 26 (Tahoe) or newer with Apple Intelligence enabled.
# apfel Agent Rules - Prefer `apfel -o json <prompt>` for non-interactive calls; never invoke `--chat` or `--serve` synchronously. - Keep prompts within Apple's on-device context window (typically 4K–8K tokens via `apfel --model-info`).
Agent-Ready Command Recipes
Safe Read-Only Queries
apfel --model-info
Reports the Mac's available on-device model status and context window limits.
apfel -o json "Summarize this diff in one sentence"
Queries Apple's on-device model once and emits structured JSON.
Strengths for Agents
- + Zero-download on-device inference with
-o jsonoutput and-f <file>attachment support. - + Complete privacy and zero API cost using macOS built-in Apple Intelligence.
Caveats & Pitfalls
- ! Strictly limited to Apple Silicon Macs running macOS 26+ with Apple Intelligence enabled.
- ! On-device Foundation Model has a relatively small context window (check
--model-info).