A

ant CLI

CLI discovered

Details
Command
ant
Docs
https://platform.claude.com/docs/en/cli-sdks-libraries/cli/quickstart
Authentication
ant CLI browser login session oauth2 discovered $ ant auth login

Acquired by the CLI — running ant auth login opens the auth flow and stores the credential.

Claude API key api_key discovered Get key ↗
env ANTHROPIC_API_KEY

In the Claude Console, open Settings → API keys and create a key. Use workspaces to scope keys by project or environment. Send it in the x-api-key header for direct HTTP requests, or set ANTHROPIC_API_KEY for SDKs and supported CLIs.

Claude Workload Identity Federation access token oauth2 discovered Set up OAuth ↗

Configure Workload Identity Federation in the Claude Console by creating a service account, federation issuer, and federation rule, then point your SDK or workload at the rule. Your workload exchanges its IdP-issued JWT at POST /v1/oauth/token for a short-lived Claude API access token and sends that token as Authorization: Bearer <token>. This is intended for production workloads and CI/CD rather than manual use.