# provider_short_name

> **Function** in `deepagents_code`

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

Return a compact brand label for a provider.

For space-constrained UI (e.g. the `/model` Recent tag). Resolution order:
a configured `short_name`, then the built-in `PROVIDER_SHORT_NAMES` map,
then the full `provider_display_name` (which is already short for providers
without a parenthetical qualifier).

## Signature

```python
provider_short_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`

Compact brand label, falling back to the display name when none is set.

---

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