# offload_storage_is_ephemeral

> **Function** in `deepagents_code`

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

Return whether offload history is routed to non-persistent storage.

`True` when the persistent `~/.deepagents` location was unwritable and the
most recent `_offload_fallback_root` fell back to a temporary directory that
may not survive a restart. Only meaningful in local mode, where
`_offload_fallback_root` runs in the same process as the UI; in
server/sandbox mode persistence is owned by the server backend and this flag
stays `False` client-side.

## Signature

```python
offload_storage_is_ephemeral() -> bool
```

## Returns

`bool`

`True` if the local offload root is a temporary, non-persistent

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/offload.py#L65)