> For the complete documentation index, see [llms.txt](https://stakpak.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stakpak.gitbook.io/docs/how-it-works/warden-guardrails.md).

# Warden Guardrails

<figure><img src="/files/aI8xnD8cRi6IbDJkd7j8" alt=""><figcaption></figcaption></figure>

Warden acts as a deterministic policy enforcer for every agent action. It inspects, validates, and blocks any destructive or unauthorized operations before they reach your environment.

To start it open your terminal and write `stakpak warden`

### Example:

This runs Stakpak inside a Warden sandbox, mounts the Stakpak Token, and your AWS credentials

`stakpak warden -v ~/.stakpak/config.toml:/home/agent/.stakpak/config.toml:ro -v ~/.aws:/home/agent/.aws:ro`
