get_provider_auth_status(
provider: str,
) -> ProviderAuthStatus| Name | Type | Description |
|---|---|---|
provider* | str | Provider name (e.g., |
Return credential readiness details for a provider.
Combines config, well-known provider metadata, optional provider auth, and implicit-auth provider metadata before attempting model creation:
config.toml
[models.providers.<name>]):
api_key_env, that env var is checked
via resolve_env_var() (which honors DEEPAGENTS_CLI_ prefixes).class_path but no api_key_env, the provider is
assumed to manage its own auth (e.g., custom headers, JWT, mTLS).api_key_env nor class_path is set, falls through
to provider-specific defaults.PROVIDER_API_KEY_ENV): a module-level dict
mapping well-known provider names to their canonical env var
(e.g., "anthropic" → "ANTHROPIC_API_KEY"). The env var is checked
via resolve_env_var().OPTIONAL_AUTH_ENV): when present, mark
the provider as configured for hosted/cloud use.NO_AUTH_REQUIRED_PROVIDERS): default
local endpoints report NOT_REQUIRED; non-local endpoints fall back
to UNKNOWN so the SDK can decide.Use has_provider_credentials() when compatibility with the historic
True/False/None contract is required.