Defend

Getting started

Install pydefend, configure the server, and learn the basic request flow for input and output guarding.

This section walks you from installation to a working local API. You run Defend as a small FastAPI service (defend serve), configure it with defend.config.yaml, and call /v1/guard/input before your LLM and /v1/guard/output after.

If you are new to sessions and actions, read Sessions next.

FAQ

On this page