Install - Detailed Guide

May 20, 2026 ยท View on GitHub

Requirements

RequirementDetails
MacApple Silicon
macOSmacOS 26.4 or later
Apple IntelligenceMust be enabled in System Settings
brew install apfel

Same-day releases (homebrew-core autobump can lag up to ~24h), and bundles the demo scripts as apfel-<name> commands:

brew install Arthur-Ficial/tap/apfel

The tap installs eight companion commands alongside apfel: apfel-cmd, apfel-explain, apfel-gitsum, apfel-mac-narrator, apfel-naming, apfel-oneliner, apfel-port, apfel-wtd. Source in demo/. The apfel- prefix avoids global PATH collisions (port would shadow MacPorts).

No build tools needed. See brew-install.md for troubleshooting.

Option 2: Nix (nixpkgs)

nix profile install nixpkgs#apfel-llm

Attribute name is apfel-llm because nixpkgs already has an unrelated apfel package (a particle-physics PDF library); the binary on $PATH is still apfel. The package landed via NixOS/nixpkgs#508084. See docs/nixpkgs.md for automation details.

Option 3: Build from source

Requires Swift 6.3+ with developer tools that include the macOS 26.4 SDK. Xcode is not required - Command Line Tools are enough.

git clone https://github.com/Arthur-Ficial/apfel.git
cd apfel
make install

make install builds a release binary and installs to /usr/local/bin/apfel.

Verify your toolchain

# Check macOS version (needs 26+)
sw_vers

# Check Swift is installed
swift --version

# Check the active Apple SDK version (must be 26.4+)
xcrun --show-sdk-version

# If Swift is missing, install Command Line Tools:
xcode-select --install

Troubleshooting build errors

If make install fails with:

value of type 'SystemLanguageModel' has no member 'tokenCount'
value of type 'SystemLanguageModel' has no member 'contextSize'

Your selected Command Line Tools are older than the macOS 26.4 SDK. Fix:

# update/install Command Line Tools
xcode-select --install

# ensure the CLT developer dir is selected
sudo xcode-select -s /Library/Developer/CommandLineTools

# confirm the active SDK is new enough
xcrun --show-sdk-version

# retry
make install

xcrun --show-sdk-version must print 26.4 or newer.

Alternative install methods

Mint

mint install Arthur-Ficial/apfel

mise

mise use -g github:Arthur-Ficial/apfel

Supports project-scoped installs (mise use github:Arthur-Ficial/apfel without -g). Installs directly from GitHub releases.

Verify

apfel 'Hello, world!'
apfel --version
apfel --release       # full build info

Troubleshooting: "Model unavailable"

If apfel --model-info shows available: no, the specific reason is printed alongside it. There are three possible causes, all from Apple's FoundationModels framework:

ReasonWhat it meansFix
Apple Intelligence not enabledThe toggle is off, or your device language and Siri language do not match, or Siri is set to an unsupported languageSystem Settings > Apple Intelligence & Siri โ†’ turn on. Ensure Device Language and Siri Language are set to the SAME supported language (English, Danish, Dutch, French, German, Italian, Norwegian, Portuguese, Spanish, Swedish, Turkish, Chinese Simplified/Traditional, Japanese, Korean, Vietnamese).
Device not eligibleIntel Mac, or Mac older than M1Apple Silicon (M1 or later) is required. This is a hard Apple requirement - there is no workaround.
Model not readyOn-device model is still downloading (~3-4 GB on first enable)Keep your Mac on Wi-Fi and power. Check download progress in System Settings > Apple Intelligence & Siri. Try again in a few minutes.

apfel is a thin wrapper around Apple's on-device model - it cannot turn on Apple Intelligence for you. Once the underlying Apple toggle is on and models are downloaded, apfel just works.

Apple's full Apple Intelligence setup guide: support.apple.com/en-us/121115

Geographic note: Apple Intelligence is blocked in China mainland (both device purchase location and Apple Account Country/Region matter). Hong Kong, EU, and most other regions are supported as of macOS 26.1.