# 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.

Opt-out via `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`.

Always disabled for editable installs.

## Signature

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

---

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