Expand description
Authentication module for Claude API.
The Auth enum is the primary entry point for all authentication methods.
SDK users should use Auth to configure authentication, which internally
resolves to Credential for API requests.
Structs§
- ApiKey
Helper - AwsCredential
Refresh - AwsCredentials
- Cached
Provider - A caching wrapper around any CredentialProvider.
- Chain
Provider - Claude
CliProvider cli-integration - Provider that reads credentials from Claude Code CLI.
- CliCredentials
cli-integration - Claude Code CLI credentials file structure.
- Credential
Manager - Environment
Provider - Provider that reads API key from environment variable.
- Explicit
Provider - Provider with explicitly set credentials.
- OAuth
Config - OAuth
Config Builder - OAuth
Credential - OAuth credential from Claude Code CLI.
Enums§
- Auth
- Primary authentication configuration for SDK usage.
- Credential
- Authentication credential.
Constants§
Traits§
- Credential
Provider - Trait for resolving credentials from various sources.