Claude plugs into Apple's on-device Foundation Models framework
Anthropic released a Swift package that lets iOS, iPadOS, macOS, and visionOS developers hand off work from Apple's on-device Foundation Models to Claude when a request needs more reasoning, tool use, or fresh information. The package launched June 9 alongside Apple's iOS 27 lineup and works through a simple hybrid pattern: the on-device model does cheap structured tasks like summarization or extraction, then passes typed Swift values into a Claude API call.
The pitch is that the framework cleans up the messy part of building hybrid AI features. A journaling app can use Apple's local model to generate daily prompts, then ask Claude to find patterns across months of entries. A study app can define terms on-device and call Claude for deeper context. Because the handoff uses typed outputs from the on-device pass, the Claude call gets clean inputs instead of raw user text. Anthropic says responses can stream straight into SwiftUI views, and the package supports tool calling, structured outputs, web search, and code execution.
The handoff pattern itself is the interesting part. Apple's local model is small and fast; Claude is larger and capable but adds latency and cost. The package codifies the obvious split without forcing developers to roll their own router.
Why it matters
If you ship an Apple app and want AI features beyond what the local model can do, the integration cost just dropped to adding a Swift package and an API key. The harder design question is no longer how to wire it up, but how to decide which calls deserve Claude.