Skip to content

Menu

Guardrails AI logo

Guardrails AI

Published · Updated

At a glance

What it is
Guardrails AI is an open-source Python framework for making LLM applications more reliable.
Price from
Open source Details
Best for
Python developers adding safety and quality checks to LLM apps; Blocking personal data, toxic language or off-topic output
Official site
guardrailsai.com
Last checked
November 2026
Watch out for
Hosted remote inferencing has been discontinued, so ML-based validators run on your own compute.

Guardrails AI is an open-source Python framework for making LLM applications more reliable. It does two things. It runs input and output guards in your application that detect, measure and reduce specific risks, such as toxic language, mentions of competitors, leaked personal data or text that does not match a required pattern. And it helps you get structured data from language models. The framework is Apache 2.0-licensed with about 7,600 stars on GitHub.

The building blocks are validators: pre-built checks for particular risks, collected and documented in Guardrails Hub. You install the validators you need, combine them into a guard, and decide what happens when a check fails, for example raising an exception, so that bad inputs never reach the model and bad outputs never reach users. Because guards wrap both sides of a model call, they work with any model provider. The project also published Guardrails Index, a benchmark comparing the performance and latency of 24 guardrails across six common categories.

There has been a significant change in how validators are delivered. On July 6, 2026 the project announced that validators are moving to standard PyPI packages you install directly with pip, and that Guardrails is discontinuing its hosted remote inferencing, with a planned cutoff of August 25, 2026. If you used validators that ran on Guardrails' hosted service, you need to follow the migration guide and run them locally or on your own infrastructure. For most users the result is simpler: validators become ordinary Python packages, with no dependency on a hosted service.

Key features

Input and output guards
Detect and mitigate risks before and after model calls.
Guardrails Hub validators
A library of pre-built checks, now installed as standard pip packages.
Configurable failure actions
Choose what happens when a check fails, such as raising an exception.
Structured output
Generate structured data from LLMs.
Model-agnostic
Wrap calls to any LLM provider.
Guardrails Index
A public benchmark of 24 guardrails across six categories.

Pricing

As of November 2026, Guardrails AI is free and open source under the Apache 2.0 licence, and validators are installed as standard PyPI packages. Its hosted remote inferencing service was discontinued with a planned cutoff of August 25, 2026, so validators that need a model now run on your own infrastructure, where you pay for any compute or model calls they use.

Best for

  • Python developers adding safety and quality checks to LLM apps
  • Blocking personal data, toxic language or off-topic output
  • Validating that model output matches required formats
  • Teams that want guardrails without a hosted dependency

Limitations

  • Hosted remote inferencing has been discontinued, so ML-based validators run on your own compute.
  • Each validator adds latency to requests.
  • Validators catch known risk types but cannot guarantee safety.
  • Teams using the old hosted setup must migrate.

Verdict

Guardrails AI is a practical, open framework for adding checks around LLM calls, and moving validators to ordinary pip packages makes it simpler to adopt. Plan for the compute that model-based validators need now that hosting has ended. Combine it with good prompt design and monitoring rather than relying on it alone.

Sources

Written from the vendor's own site and documentation, checked November 2026. We have no paid relationship that affects what this page says.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…