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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://stakpak.gitbook.io/docs/how-it-works/warden-guardrails.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
