Arthur-Ficial

Arthur-Ficial/apfel

Swift MIT Dev Tools Single maintainer risk

The free AI already on your Mac. CLI tool, OpenAI-compatible server, and interactive chat — all on-device via Apple Intelligence. No API keys, no cloud, no downloads.

6.1k stars
232 forks
active
GitHub +177 / week

6.1k

Stars

232

Forks

12

Open issues

13

Contributors

v1.8.3 09 Jul 2026

AI Analysis

apfel is a CLI tool and local OpenAI-compatible server that exposes Apple's built-in FoundationModels LLM on Apple Silicon Macs, enabling on-device AI inference without API keys or cloud dependencies. It serves developers and Mac users who want to integrate or interact with LLMs locally, specifically those running macOS 26 Tahoe+ on M1+ hardware; it is not suitable for non-Apple platforms or older macOS versions.

Dev Tools CLI Tool Discovery value: 4/10
Documentation 8/10
Activity 9/10
Community 8/10
Code quality 5/10

Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.

Overall score 8/10

AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.

on-device-inference apple-intelligence openai-compatible llm-tooling local-ai
Actively maintained Well documented MIT licensed Niche/specialized use case Beginner friendly Production ready
Deep Analysis · Based on README and public signals
2w ago

apfel wraps Apple's on-device LLM as a Unix CLI and OpenAI-compatible server for macOS 26 Tahoe

apfel exposes the Apple FoundationModels API — the on-device LLM shipped with macOS 26 Tahoe — as a Unix pipe-friendly CLI, an interactive REPL, and a local OpenAI-compatible HTTP server. Its core value proposition is zero cost and zero data exfiltration: no API keys, no model downloads, no cloud calls. It targets macOS developers, privacy-conscious power users, and shell scripters who want LLM capabilities in automation workflows. The OpenAI-compatible endpoint (`/v1/chat/completions` on port 11434) allows drop-in use with existing OpenAI SDK code. The audience is currently gated by macOS 26 Tahoe and Apple Silicon, which limits it to a defined but growing hardware base.

Origin

Created in March 2026, shortly after Apple announced macOS 26 Tahoe and the public FoundationModels framework. Version 1.6.0 as of mid-2026 suggests rapid iteration since launch roughly three months ago.

Growth

The project gained ~5,800 stars in roughly three months, likely driven by developer curiosity around Apple Intelligence's public API debut and the novelty of free, fully offline LLM access on Apple Silicon. Growth appears to have stabilized (62 stars in the most recent 7-day window), suggesting the initial viral wave has passed and the audience is settling to genuine macOS 26 early adopters.

In production

Homebrew availability and the presence of a background service mode (`brew services start apfel`) suggest some degree of real-world workflow integration. A companion website (apfel.franzai.com) and a separate apfel-chat GUI repo indicate ecosystem investment beyond a toy project. However, concrete production deployment evidence (download counts, user testimonials, integration reports) is not publicly documented. Adoption not verified at scale.

Code analysis
Architecture

Appears to be a Swift 6.3 command-line binary with three operational modes: a one-shot Unix tool, an interactive REPL, and an HTTP server. The HTTP server likely implements a subset of the OpenAI Chat Completions API, routing requests to the local FoundationModels framework. Tool calling and MCP (Model Context Protocol) server support are mentioned, suggesting a plugin/dispatch layer. Likely uses Swift's async/await concurrency model. No Xcode required for build — Command Line Tools with the macOS 26.4 SDK suffice.

Tests

Not documented in README.

Maintenance

Last push was 2026-06-23, one day before the evaluation date — actively maintained. Version 1.6.0 with a documented changelog cadence, Homebrew formula presence, and a companion GUI project (apfel-chat) suggest sustained developer commitment rather than a one-off release.

Honest verdict

ADOPT IF: you are on macOS 26 Tahoe with Apple Silicon and Apple Intelligence enabled, want zero-config LLM access in shell scripts or local automation, or need a free drop-in OpenAI-compatible endpoint for prototyping without API costs. AVOID IF: you need a capable frontier model, more than 4096-token context, cross-platform deployment, or are not yet on macOS 26 Tahoe — the hardware and OS gate is strict. MONITOR IF: you are building macOS tooling and want to track how Apple expands FoundationModels capabilities in future OS releases, which would directly increase apfel's practical value.

Independent dimensions

Mainstream potential

4/10

Technical importance

6/10

Adoption evidence

3/10

Risks
  • Strictly gated to macOS 26 Tahoe+ and Apple Silicon with Apple Intelligence enabled — the eligible user base, while growing, remains limited until Tahoe adoption widens.
  • Apple FoundationModels capability is controlled entirely by Apple; model quality, context window (currently 4096 tokens), and API surface can change or be restricted without notice.
  • The 4096-token context limit is a hard practical ceiling that rules out many document-processing and long-conversation use cases.
  • If Apple ships an official CLI or expands the SDK to cover these use cases natively, demand for a third-party wrapper may decline.
  • Dependency on Apple's guardrails (the `--permissive` flag hints at false-positive refusals) may frustrate users needing reliable outputs for creative or technical prompts.
Prediction

apfel is likely to remain a useful convenience layer for macOS 26+ power users as Tahoe adoption grows, but its ceiling is tied directly to whatever Apple ships in FoundationModels. Slow, steady growth is the most probable trajectory.

0 found this helpful

Newsletter

Get analyses like this every Monday

Free weekly digest of the most interesting open-source discoveries.

Languages

Swift
65.9%
Python
27.2%
Shell
5.9%
Makefile
0.8%
C
0.3%

Information

Language
Swift
License
MIT
Last updated
20h ago
Created
4mo ago
Analyzed with
anthropic/claude-haiku-4-5

Stars over time

Loading…

Contributors over time

Top 100 contributors only — repos with more will plateau at 100.

Loading…

Similar repos

AtomicBot-ai

AtomicBot-ai/Atomic-Chat

Atomic Chat is a local-first desktop and mobile application that runs...

1.1k TypeScript AI & ML
signerlabs

signerlabs/Klee

Klee is a native macOS AI chat application that runs large language models...

1.7k Swift AI & ML
raullenchai

raullenchai/Rapid-MLX

Rapid-MLX is a local AI inference engine optimized for Apple Silicon Macs,...

3.2k Python AI & ML
apple

apple/python-apple-fm-sdk

Python bindings for Apple's Foundation Models framework, enabling on-device...

1.2k Python AI & ML
osaurus-ai

osaurus-ai/osaurus

Osaurus is a native macOS AI agent harness written in Swift that enables local...

6.9k Swift AI & ML
vs. alternatives
Ollama

Ollama also exposes a local OpenAI-compatible server (same default port 11434), but requires model downloads and runs on a broader range of hardware. apfel requires no downloads and no configuration, but is strictly limited to Apple's on-device model on macOS 26 Tahoe+ Apple Silicon. They can coexist; apfel is not a general replacement.

osaurus-ai/osaurus

A similar-star Swift project targeting Apple AI APIs. Exact feature overlap is unclear from available metadata, but both appear to target the same FoundationModels surface area. May represent a competing approach or complementary tooling in the same emerging ecosystem.

apple/python-apple-fm-sdk

Apple's own Python SDK for FoundationModels targets Python developers building applications rather than CLI/shell automation users. apfel is more accessible for shell scripting and piping workflows; the SDK is more appropriate for Python application integration.

LM Studio (local)

LM Studio offers a GUI-first local OpenAI server with model management, supporting many model families. It does not use Apple's built-in model and requires model downloads. apfel trades model choice for zero-setup convenience.

llm (Simon Willison's CLI)

The `llm` Python CLI is broadly cross-platform and supports many backends via plugins. apfel is narrower in scope but requires no Python environment and has zero-config on qualifying hardware — a meaningful ergonomic advantage for Swift/shell-native Mac users.