anthropics

ClaudeForFoundationModels — Development skill for Claude Code

Development community

Claude support for Apple Foundation Models.

How to install ClaudeForFoundationModels

This entry records only its repository, not the path inside it, so there is no exact command to give. Open anthropics/ClaudeForFoundationModels and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What ClaudeForFoundationModels does

Claude support for Apple Foundation Models.

Alternatives in Development

  • Antigravity Claude Proxy — Proxy that exposes Antigravity provided claude / gemini models, so we can use them in Claude Code and OpenClaw 3.5k ★
  • Apple Watch Analysis — Apple Watch 健康数据分析 348 ★
  • Foam — Run a complete OpenFOAM CFD simulation (Foundation OpenFOAM v10 only) from a natural language prompt using Foa 314 ★

README

Claude for Foundation Models

Use Claude as a server-side language model through Apple's [Foundation Models](https://developer.apple.com/documentation/foundationmodels) framework. The package conforms Claude to the framework's `LanguageModel` protocol, so you drive it with the same `LanguageModelSession` API you use for Apple's on-device model — `respond(to:)`, streaming, guided generation, and tool calling all work the same way.

**Beta.** This package targets the Foundation Models server-side language model API introduced in the OS 27 betas. APIs may change before general availability.

Contents

Requirements

  • iOS 27, macOS 27, visionOS 27, or watchOS 27 (beta) — the OS releases whose Foundation Models framework supports server-side language models.
  • Xcode 27 (beta).
  • A credential: an App Attest client ID from the Anthropic console, or an API key for simulator development. See Authentication.

Installation

Add the package to your `Package.swift`:

dependencies: [
  .package(url: "https://github.com/anthropics/ClaudeForFoundationModels.git", from: "0.1.0")
]

Or in Xcode: **File ▸ Add Package Dependencies…** and enter the repository URL.

Then add `ClaudeForFoundationModels` to your target's dependencies and import it alongside `FoundationModels`:

import FoundationModels
import ClaudeForFoundationModels

Quick start

import FoundationModels
import ClaudeForFoundationModels

let model = ClaudeLanguageModel(
  name: .sonnet5,
  auth: .apiKey(ProcessInfo.proc