# provider_display_name

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/auth/provider_display_name)

Return a human-readable provider label.

Shared by the auth UI and the model selector so a provider is labeled
identically in both. (The install prompt reuses the underlying
`PROVIDER_DISPLAY_NAMES` map directly rather than this function, to avoid an
event-loop config read, so a user-configured `display_name` won't surface
there.)

Resolution order: a configured `display_name`, then the built-in
`PROVIDER_DISPLAY_NAMES` map, then a title-cased form of the provider key.

## Signature

```python
provider_display_name(
    provider: str,
    config: ModelConfig | None = None,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `provider` | `str` | Yes | Provider config key. |
| `config` | `ModelConfig \| None` | No | Parsed model config, if already loaded by the caller. (default: `None`) |

## Returns

`str`

Configured display name, built-in display name, or title-cased provider key.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/tui/widgets/auth.py#L240)