# UnknownProviderError

> **Class** in `deepagents_cli`

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

Raised when neither the CLI nor `init_chat_model` can infer a provider.

Carries the offending model spec as an attribute and exposes
`PROVIDERS_DOCS_URL` as a class-level constant so callers can render
a clickable link without string-scanning the formatted message. This
mirrors how `MissingCredentialsError` exposes `provider` / `env_var`
for targeted recovery hints.

## Signature

```python
UnknownProviderError(
    self,
    *,
    model_spec: str,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `model_spec` | `str` | Yes | The bare model name the user supplied (e.g. `'mystery-model'`). When the input had a `provider:model` form, parsing succeeds and this exception does not fire. |

## Extends

- `ModelConfigError`

## Constructors

```python
__init__(
    self,
    *,
    model_spec: str,
) -> None
```

| Name | Type |
|------|------|
| `model_spec` | `str` |


## Properties

- `docs_url`
- `model_spec`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/64d45f67c86edb4df2ced0e7b82f1a8fd158ec8c/libs/cli/deepagents_cli/model_config.py#L110)