Skip to main content

Module credentials

Module credentials 

Source
Expand description

Credential resolution with a priority chain: env vars -> TOML config.

This replaces the old load_api_key_from_keyring() approach with a deterministic, testable resolver that does not depend on OS keyring.

§Resolution order

Credential1st (highest priority)2nd3rd (TOML fallback)
Anthropic APIANTHROPIC_OAUTH_TOKENANTHROPIC_API_KEYcredentials.anthropic_api_key
Hyperliquid keyHYPERLIQUID_PRIVATE_KEYcredentials.hyperliquid_private_key

Structs§

CredentialResolver
Resolves credentials from environment variables and TOML config.