ClaudeCodeSDK.Auth.Providers.Bedrock (claude_code_sdk v0.2.2)

View Source

AWS Bedrock authentication.

Uses AWS credentials instead of Anthropic API keys. Requires CLAUDE_CODE_USE_BEDROCK=1 environment variable.

Summary

Functions

Validates AWS Bedrock authentication.

Functions

setup_token()

@spec setup_token() :: {:ok, String.t(), nil} | {:error, term()}

Validates AWS Bedrock authentication.

Returns {:ok, "aws", nil} if AWS credentials are available. No token needed - CLI uses AWS SDK authentication.