# load_thread_config

> **Function** in `deepagents_cli`

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

Load all thread-selector settings from one config file read.

Returns a cached result when reading the default config path. The
prewarm worker calls this at startup so subsequent opens of the
`/threads` modal avoid disk I/O entirely.

## Signature

```python
load_thread_config(
    config_path: Path | None = None,
) -> ThreadConfig
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `config_path` | `Path \| None` | No | Path to config file. (default: `None`) |

## Returns

`ThreadConfig`

Coalesced thread configuration.

---

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