# set_auto_update

> **Function** in `deepagents_cli`

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

Persist the auto-update preference to `config.toml`.

Writes `[update].auto_update` so the setting survives across sessions.

## Signature

```python
set_auto_update(
    enabled: bool,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `enabled` | `bool` | Yes | Whether auto-update should be enabled. |

---

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