---
title: "Anthropic Kills Static API Keys With Keyless Identity Federation"
subtitle: "Anthropic's Python SDK now supports keyless authentication via Workload Identity Federation, letting CI and production workloads drop static API keys entirely"
url: "https://alphasignal.ai/news/anthropic-kills-static-api-keys-with-keyless-identity-federation"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "Anthropic"
company_url: "https://alphasignal.ai/company/anthropicai"
published: "2026-06-18T17:31:47.000Z"
updated: "2026-06-20T22:48:52.298Z"
type: "Repo"
topics:
  - "Api"
  - "Development"
subtopics:
  - "Code Generation"
  - "Code Review"
upvotes: 3217
source_url: "https://github.com/anthropics/anthropic-sdk-python"
comments: 0
truncated: true
---

# Anthropic Kills Static API Keys With Keyless Identity Federation

> Anthropic's Python SDK now supports keyless authentication via Workload Identity Federation, letting CI and production workloads drop static API keys entirely

Static API keys have always been the awkward part of shipping Claude-powered applications. You mint one, paste it into a CI secret or a container environment variable, and then spend the next year hoping nobody leaks it, forgets to rotate it, or accidentally commits it to a public repo. Anthropic's Python SDK has now shipped a direct answer to that problem: [native Workload Identity Federation (WIF)](https://github.com/anthropics/anthropic-sdk-python) support, landing in the v0.98 release series.

WIF is a keyless authentication pattern borrowed from cloud IAM systems. Instead of a long-lived credential, your workload presents a short-lived signed token issued by an identity provider (IdP) it already trusts -- GitHub Actions, AWS IAM, Google Cloud, Kubernetes service accounts, Azure Entra ID, SPIFFE, or Okta. The SDK exchanges that token for a short-lived Anthropic access token and handles refresh automatically. Your application code never sees a static secret.

## How the exchange actually works

The flow follows a standard called RFC 7523 (the "JWT bearer" grant). Here is what happens at runtime:

1. Your platform issues a signed JWT to the workload automatically -- this is ambient on most clouds (Kubernetes projected tokens, the GCP metadata server, the GitHub Actions OIDC endpoint, etc.).
2. The SDK posts the JWT to `POST /v1/oauth/token` using the RFC 7523 jwt-bearer grant. Anthropic verifies the JWT against the issuer's JWKS and the federation rule's match conditions, then returns a short-lived `sk-ant-oat01-...` token that acts on behalf of the rule's target service account.

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [anthropics/anthropic-sdk-python – GitHub](https://github.com/anthropics/anthropic-sdk-python)
- [Workload Identity Federation – Claude API Docs](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation)
- [anthropic-sdk-python CHANGELOG – GitHub](https://github.com/anthropics/anthropic-sdk-python/blob/main/CHANGELOG.md)
- [Anthropic Workload Identity Federation: What It Gets Right – Aembit](https://aembit.io/blog/anthropic-workload-identity-federation-what-it-gets-right-and-what-it-still-doesnt-solve/)
- [anthropic · PyPI](https://pypi.org/project/anthropic/)
