On-device AI SDKs for Swift and Apple developers

Swift packages, models, sample code and local servers for running AI on Apple hardware, mostly on device with Apple's Foundation Models framework, MLX or Core ML. They cover language models, speech, audio processing and vector search, plus command-line tools and OpenAI- or Ollama-compatible servers for Apple's on-device model. Packages that can also call cloud models are marked.

Works with
Maintenance
Sort
17 tools
On-device AI SDKs

apfel

Command-line tool, chat mode and local OpenAI-compatible server for the on-device model in Apple's FoundationModels framework. Needs macOS 26 and Apple silicon.

★ 6.5k Active5 Oct 2026
On-device AI SDKs

Argmax OSS Swift (WhisperKit)

Argmax's open-source on-device speech toolkit for Apple silicon, and the home of WhisperKit.

★ 6.4k Active11 Oct 2026
On-device AI SDKs

MLX Swift Examples

Example apps and code showing how to use MLX Swift.

★ 2.7k Slowing15 Jun 2026
On-device AI SDKs

MLX Swift

Apple's Swift API for MLX, the array and machine-learning framework for Apple silicon.

★ 2.1k Active21 Oct 2026
On-device AI SDKs

CoreML-Models

Collection of models converted to Core ML packages, ready to use in iOS and macOS apps.

★ 1.9k Active5 Oct 2026
On-device AI SDKs

swift-transformers

Hugging Face's Swift package for tokenisers, model downloads and running models in Swift apps.

★ 1.4k Active14 Oct 2026
On-device AI SDKs

speech-swift

Speech toolkit for Apple silicon built on MLX: speech recognition, text-to-speech, voice activity detection and diarisation.

★ 1.2k Active18 Oct 2026
On-device AI SDKs

Foundation Models Framework Lab

Sample app and lab for building, testing and evaluating features with Apple's Foundation Models framework.

★ 1.2k Active18 Sept 2026
On-device AI SDKsCloud-capable

AnyLanguageModel

Hugging Face's drop-in replacement for Apple's Foundation Models API that also works with other local and cloud model providers.

★ 955 Active19 Oct 2026
On-device AI SDKs

MLX Swift LM

Run large language and vision-language models on device with MLX Swift.

★ 840 Active20 Oct 2026
On-device AI SDKs

MLX Audio Swift

Modular Swift SDK for audio processing with MLX on Apple silicon.

★ 802 Active20 Oct 2026
On-device AI SDKs

Foundation Models Utilities

Apple's repo of experimental patterns for building with the Foundation Models framework.

★ 530 Active21 Sept 2026
On-device AI SDKs

maclocal-api (afm)

The 'afm' CLI and local server that exposes Apple's Foundation Models (and MLX models) through an API.

★ 347 Active5 Oct 2026
On-device AI SDKsCloud-capable

Claude for Foundation Models

Anthropic's Swift package that plugs Claude into Apple's Foundation Models API, so the same session, streaming and tool-calling code can use Claude.

★ 331 Active7 Oct 2026
On-device AI SDKs

SVDB

On-device vector database written in Swift, for semantic search inside apps.

★ 223 Slowing7 Dec 2025
On-device AI SDKs

afm-Server

Menu bar app that serves Apple's on-device Foundation Models as an OpenAI-compatible local API.

★ 194 Slowing2 Jun 2026
On-device AI SDKs

olleh

Ollama-compatible command-line tool for Apple's Foundation Models.

★ 188 Stale26 Sept 2025