Apple platforms
Anthropic ships Claude for Foundation Models Swift package
- Category: Apple
- Status: developing
- Sources: Anthropic docs, GitHub repository, HN discussion
- Summary: Anthropic published ClaudeForFoundationModels, an Apache-2.0 Swift package that conforms Claude to the
LanguageModelprotocol in Apple's Foundation Models framework, targeting the server-side language model API introduced in the OS 27 betas. Apps drive Claude through the sameLanguageModelSessionAPI as Apple's on-device model (respond(to:), streaming, guided generation via@Generable, and client- and server-side tool use), choosing per session whether to call the on-device model or Claude. Requests go directly from the app to the Claude API at standard pricing, with Apple not in the request path. It requires iOS, macOS, visionOS, or watchOS 27 (beta) and Xcode 27 (beta); the package is at 0.1.0 and the framework's server-side API may change before general availability. - Why it matters: The server-side provider lets a Swift app escalate from the on-device model to a frontier model behind one framework API, enabling hybrid on-device and cloud inference without a separate Messages API client.
- Follow-up: Watch the OS 27 server-side
LanguageModelAPI stabilize toward GA and the package's first tagged release past 0.1.0.