Foundation Models Utilities
Apple's repo of experimental patterns for building with the Foundation Models framework.
View on GitHub ↗- Stars
- ★ 528
- Last commit
- 21 Sept 2026
- Maintenance
- Active
- Licence
- Apache-2.0
- Category
- On-device AI SDKs
- GitHub
- apple/foundation-models-utilities
Overview
Foundation Models Utilities is an Apple package that adds extra tools for working with language models through the Foundation Models framework. It includes a chat completions client for hosted models, helpers for managing conversation history and a Skills system for adding task instructions only when needed. It also ships skills that teach coding agents how to use the package.
Features
- ChatCompletionsLanguageModel talks to any server using the chat completions format
- Profile modifiers to compress and manage history
- Skills add task instructions to a session just in time to avoid cluttering context
- SkillActivations is Observable so it can drive UI
- Coding agent skills in the skills folder
Requirements
- Apple platforms or selected Linux distributions such as Ubuntu
Install
In Xcode choose File > Add Package Dependencies and enter https://github.com/apple/foundation-models-utilities, or add it to Package.swift
.package(url: "https://github.com/apple/foundation-models-utilities", from: "1.0.0")
Works with
Listed in
- github.com/apple/foundation-models-utilities
- raw.githubusercontent.com/apple/foundation-models-utilities/HEAD/README.md
Read the code before you install anything. SwiftAgents doesn't review or endorse the tools listed here. Active: a commit in the last 90 days. Slowing: last commit within the past year. Stale: older than a year, or archived.