# NoCredentialsConfiguredError

> **Class** in `deepagents_code`

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

Raised when no credentials are configured for any default-resolvable provider.

Distinct from `MissingCredentialsError` (which targets a specific provider
the user has selected): this fires from `_get_default_model_spec()` when
auto-detection finds no usable credentials at all. Callers (the deferred-
start path in the TUI and CLI) `isinstance`-check this type to recover by
launching the TUI with model creation deferred, rather than string-matching
the formatted message.

## Signature

```python
NoCredentialsConfiguredError()
```

## Extends

- `ModelConfigError`

---

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