Skip to main content

Module credentials

Module credentials 

Source
Expand description

Shared, provider-scoped credential resolution for requests and auth UI. Provider packages own their environment names and anonymous policy. The host owns persistence and precedence, and never guesses a key from a wire protocol.

Structs§

AuthState
Safe for UI snapshots and change notifications; contains no credential values.
ResolvedCredential

Enums§

AuthStatus
Local readiness only; this does not claim that a server accepted the key.
CredentialSource

Functions§

builtin_api_key_env
Only these identities have a built-in environment fallback. Other providers need a loaded declaration or an explicit models.json apiKey reference.
has_header_auth
resolve