Guardrails AI
Open-source Python framework for adding input/output guardrails (validators) to LLM applications.
Tags
Description
Guards chain validators over LLM inputs and outputs. Guardrails Hub's guardrails hub install, the private validator registry and hosted remote inference were shut down on 2026-08-25; validators are now plain PyPI packages (pip install guardrails-ai-<name>, imported from guardrails_ai.<name>), and models run locally (use_local=True) or on your own endpoint. Anonymous metrics are on by default (enable_metrics defaults to true); opt out with guardrails configure --disable-metrics or Guard(...).configure(allow_metrics_collection=False). PyPI guardrails-ai 0.11.0.
Related
- NeMo Guardrails: NVIDIA's open-source toolkit for adding programmable guardrails to LLM-based conversational systems.
- LlamaFirewall: Meta's open-source guardrail framework for agents that chains scanners for prompt injection, goal hijacking and insecure generated code.
Guides & comparisons
- Runtime guardrails for agents: Guardrails AI, NeMo Guardrails, Invariant and HOL Guard (Comparison): Four open-source guardrail layers compared: where each one sits, what a rule looks like, whether it can check tool calls, which checks need a model, what leaves your machine and how actively each is maintained. All four were installed and run on 2026-11-01.
Sources
- https://github.com/guardrails-ai/guardrails
- https://github.com/guardrails-ai/guardrails/issues/1560
- https://github.com/guardrails-ai/guardrails/blob/main/guardrails/classes/rc.py
- https://github.com/guardrails-ai/guardrails/blob/main/guardrails/cli/configure.py
Machine-readable
- JSON
- Markdown
- Source file on GitHub (edit via pull request)