Apple Foundation Models

platform.claude.com
June 15, 2026
6 min read
67/100
Summary
Claude for Foundation Models is a Swift package that integrates Claude as a server-side language model within Apple's Foundation Models framework. It conforms to the LanguageModel protocol, allowing it to utilize the same LanguageModelSession API for functionality such as respond(to:), streaming, guided generation, and tool calling, with requests sent directly to the Claude API without Apple's involvement.
Key Takeaways
- Claude for Foundation Models is a Swift package that integrates the Claude language model into Apple's Foundation Models framework, allowing for server-side usage.
- Requests to the Claude API are made directly from the app without Apple being involved in the request path, ensuring privacy for prompts and responses.
- The package supports various functionalities such as streaming, guided generation, and tool calling, conforming to the LanguageModel protocol.
- Model identifiers and capabilities are managed through the ClaudeModel class, which specifies accepted parameters for each model.
Coverage & discussions
Hacker News · platform.claude.com
Community discussions
Community Sentiment
Positives
- Apple's introduction of an abstraction layer for LLMs could streamline developer transitions to their upcoming AI models, enhancing integration with existing applications.
- The framework's ability to target both on-device and Apple-hosted models signifies a flexible approach that can adapt to various use cases, potentially improving user experience.
- Apple's commitment to privacy through anonymized cohorts and differential privacy in their AI offerings adds significant value for developers focused on user data protection.
Concerns
- Concerns arise that Apple's abstraction layer may primarily serve to commoditize LLMs while restricting developers' access to underlying technologies, limiting innovation.
- The lack of clarity on whether multiple apps can share on-device models raises questions about efficiency and potential storage issues for users.
- Asking users to manage their own API keys for AI functionalities could create a poor user experience, hindering broader adoption of the technology.
Related Articles

Building a coding agent in Swift from scratch
Mar 25, 2026

The new rules of context engineering for Claude 5 generation models
Jul 25, 2026

Claude Code – Everything You Can Configure That the Docs Don't Tell You
May 29, 2026

Universal Claude.md – cut Claude output tokens
Mar 31, 2026

Agent - Native Mac OS X coding ide/harness
Apr 16, 2026