Authenticate to the Claude API without static keys

Workload Identity Federation swaps long-lived API keys for short-lived tokens from your own identity provider.

Share
Console Workload identity federation page showing successful sign-ins from GitHub Actions and Kubernetes

You can now authenticate workloads to the Claude API with short-lived OIDC tokens from the identity provider you already run, so there's no long-lived API key to store, rotate, or leak. AWS IAM, Google Cloud, GitHub Actions, Kubernetes, Microsoft Entra ID, Okta, and SPIFFE all work.

WIF covers all Claude API endpoints, including accessing endpoints through SDKs and Claude Code.

Set up issuers and federation rules in the Claude Console, and the SDKs handle token exchange and refresh for you.

Earlier updates

Apr 30, 2026
Apr 28, 2026
Apr 23, 2026