Module auth

Module auth 

Source
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§

ApiKeyHelper
AwsCredentialRefresh
AwsCredentials
CachedProvider
A caching wrapper around any CredentialProvider.
ChainProvider
ClaudeCliProvidercli-integration
Provider that reads credentials from Claude Code CLI.
CliCredentialscli-integration
Claude Code CLI credentials file structure.
CredentialManager
EnvironmentProvider
Provider that reads API key from environment variable.
ExplicitProvider
Provider with explicitly set credentials.
OAuthConfig
OAuthConfigBuilder
OAuthCredential
OAuth credential from Claude Code CLI.

Enums§

Auth
Primary authentication configuration for SDK usage.
Credential
Authentication credential.

Constants§

CLAUDE_CODE_BETA

Traits§

CredentialProvider
Trait for resolving credentials from various sources.