# is_auto_update_enabled

> **Function** in `deepagents_code`

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

Return whether auto-update is enabled.

Editable installs are always disabled, before any layer is consulted.
Otherwise managed config decides first: `[update].auto_update` in
`managed_config.toml` outranks both layers below, and a managed file that
cannot be parsed forces `False`. Otherwise, opt out via the
`DEEPAGENTS_CODE_AUTO_UPDATE=0` env var or `[update].auto_update = false`
in `config.toml`.

Defaults to `True`.

Unrecognized env values (neither truthy nor falsy) are ignored with a
warning and fall through to the config read below.

If `config.toml` exists but cannot be parsed, returns `False` (fail-closed):
a corrupt file may hold an explicit opt-out, so it is not treated as the
permissive default. A genuinely absent config falls through to `True`.

## Signature

```python
is_auto_update_enabled() -> bool
```

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/update_check.py#L4442)