RepositorySwiftATÁo
AR

Arthur-Ficial/apfel

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.6ksao
252fork
2issue
6lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: foundationmodels

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: on-device

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: apple-intelligence

#1 Repository Của Tuần

🍎 The free AI already on your Mac

apfel turns the Apple Silicon LLM baked into macOS into a UNIX tool and OpenAI-compatible server — 100% on-device, no API keys or cloud.

apfel is a Swift CLI that wraps Apple FoundationModels, the on-device LLM framework available on Apple Silicon Macs running macOS 26 Tahoe with Apple Intelligence enabled. It exposes the model as a pipe-friendly terminal tool, a local OpenAI-compatible HTTP server, and an interactive REPL — all running locally with zero network dependency.

✨ Highlights

  • UNIX tool mode: run apfel "prompt" or pipe input via echo "text" | apfel for shell-friendly answers
  • OpenAI-compatible server: apfel --serve provides a drop-in http://localhost:11434/v1 backend for OpenAI SDKs
  • Interactive chat: apfel --chat launches a small REPL for testing prompts and MCP tools
  • Tool calling: works across CLI, server, and chat contexts with a 4096-token context window
  • File attachments: use -f to attach one or more files to prompts, including diffs via git diff | apfel -f
  • JSON output: -o json enables scripting with tools like jq
  • Permissive mode: --permissive relaxes guardrails for creative or long-form prompts
  • Streaming: --stream returns output token-by-token as it generates
  • Bundled demos: apfel demos ./apfel-demos writes real-world shell scripts (e.g. natural-language-to-command) into a folder

💡 Why it matters

Most local LLM setups require downloading multi-gigabyte models or rely on cloud APIs with rate limits and costs. apfel skips both by using the FoundationModels runtime already present on Apple Silicon Macs — instant startup, no storage overhead, and full privacy since nothing leaves the device.

It fits naturally into existing workflows: the OpenAI-compatible server lets Python or Node scripts talk to a local model without code changes, while the CLI shines in shell scripts for summarization, translation, or command generation. Requires macOS 26 Tahoe+, Apple Silicon (M1+), and Apple Intelligence enabled — no Xcode needed to build from source.


#AppleIntelligence #OnDeviceLLM #Swift #OpenAICompatible #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

475.2k
Nov 23, 2026
RepositoryJavaScript
affaan-m/ECC

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

309.4k
Nov 23, 2026
RepositoryTypeScript
firecrawl/firecrawl

Knowledge infrastructure to make your agents smarter. Search, scrape and access 550+ data providers through one API.

207.6k
Nov 23, 2026
RepositoryJavaScript
DietrichGebert/ponytail

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

197.4k
Nov 22, 2026
RepositorySwift
iina/iina

The modern video player for macOS.

47.2k
Nov 20, 2026
RepositorySwift
permissionlesstech/bitchat

bluetooth mesh chat, IRC vibes

37.2k
Nov 11, 2026
RepositorySwift
shadowsocks/ShadowsocksX-NG

Shadowsocks GUI client for mac OS

32.9k
Oct 31, 2026
RepositorySwift
jordanbaird/Ice

Powerful menu bar manager for macOS

30.1k
Oct 6, 2026
RepositorySwift
Caldis/Mos

一个用于在 macOS 上平滑你的鼠标滚动效果或单独设置滚动方向的小工具, 让你的滚轮爽如触控板 | A lightweight tool used to smooth scrolling and set scroll direction independently for your mouse on macOS

21.9k
Oct 25, 2026