# has_provider_credentials

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/model_config/has_provider_credentials)

Check if credentials are available for a provider.

This compatibility wrapper preserves the historic tri-state contract while
`get_provider_auth_status()` carries the richer user-facing distinctions:
configured credentials, missing credentials, no-auth local providers,
implicit auth, custom provider-managed auth, and unknown providers.

## Signature

```python
has_provider_credentials(
    provider: str,
) -> bool | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `provider` | `str` | Yes | Provider name (e.g., `"anthropic"`, `"openai"`). |

## Returns

`bool | None`

`True` if auth is configured, implicit, provider-managed, or not
required.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/d1c6946218b4f0f86ab7b02b6bb6af1e4b75cede/libs/code/deepagents_code/model_config.py#L1895)