App Attest for iOS and macOS apps
Let genuine installations of your iOS or macOS app call the Claude API without shipping an API key or running a proxy, using Apple’s App Attest service.
App Attest authenticates iOS and macOS apps that call the Claude API directly from the device, with usage billed to your workspace. This page explains how App Attest works, how to register your app in the Claude Console, and how to revoke an app integration.
Apps use App Attest through the Claude for Foundation Models Swift package, which is in beta: it requires the OS 27 betas, and APIs might change during the beta. For the Swift configuration, see Apple Foundation Models.
How App Attest works
Each installation of your app uses Apple’s App Attest service to prove that it is a genuine, unmodified build of the app you registered. Anthropic then issues the device a short-lived access token that bills usage to your workspace. The app ships no API key, and there is no proxy for you to operate.
App Attest authentication is available only when your app calls the Claude API directly. It is not available through Amazon Bedrock, Google Cloud, or Microsoft Foundry.
The first time your app uses Claude on a device, the app requests a challenge from Anthropic, attests the device with Apple’s DCAppAttestService, and exchanges the verified attestation for an access token. The Claude for Foundation Models package runs this flow automatically and requests new tokens as they expire; there is no attestation code for you to write.
Tokens are scoped to your workspace, expire after 1 hour, and authorize only Messages APIPreview with links to the API reference available — press Tab until focus enters the card, Escape to return. calls. They carry no end-user identity: App Attest identifies your app, not the person using it, so handle any per-user logic in your app.
Set up App Attest
To set up App Attest, you need your Apple Developer Team ID and the admin role in your Claude Console organization. Configure your Xcode project and register your app in the Claude Console:
- In Xcode, add the App Attest capability to your app target under Signing & Capabilities.
- In the Claude Console, go to the App integrations page (
platform.claude.com/settings/app-integrations) and click Create app integration. - Enter a name. From the Workspace dropdown menu, select the workspace to bill for the app’s usage. Each app integration belongs to one workspace, which you can’t change later.
- Enter your Apple Developer Team ID and one or more bundle IDs (up to 32), then click Create app integration.
- Copy the client ID (
clid_...) from the integration’s Overview tab. - In your app, pass the client ID to
.appAttest(clientID:).
Revoke an app integration
To stop a compromised or retired app, revoke its integration. Revocation is permanent and covers every bundle ID in the integration. It revokes the integration’s outstanding tokens, and devices can no longer request new ones.
- In the Claude Console, go to the App integrations page (
platform.claude.com/settings/app-integrations). - Find the integration. The list covers every workspace in your organization, and the Workspace column shows which one each integration belongs to. To narrow the list to one workspace, select it in the Workspace filter.
- At the end of the integration’s row, open the More actions menu (three dots) and select Revoke, then confirm.
To restore access, create a new app integration and update your app to use its client ID.
Next steps
Configure App Attest in the Claude for Foundation Models Swift package
Compare API keys, Workload Identity Federation, and App Attest
Was this page helpful?