> ## Documentation Index
> Fetch the complete documentation index at: https://docs.envzero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# env zero-Hosted Encrypted State

> Use env zero-hosted encrypted state as a PVC alternative for self-hosted agents, encrypting the working directory with a customer-provided key in env zero.

You can now use env zero-hosted encrypted state as an alternative to setting up [PersistentVolumeClaims](https://kubernetes.io/docs/concepts/storage/persistent-volumes/) (PVCs) when using env zero's Self-Hosted Agents. env zero will encrypt (with a customer provided encryption key) the working directory and persist it in env zero's secure cloud native file system.

Add a `"env0StateEncryptionKey"` key-value pair to your agent's `<your_agent_key>_values.yaml` to enable this. Find out more at [env zero-Hosted Encrypted State](/guides/admin-guide/self-hosted-kubernetes-agent/env-zero-hosted-encrypted-state).
