#5050th of 70 in Agent frameworks and SDKs

guardrails

Python framework for validating LLM inputs and outputs and generating structured data

Stars
7.6k
License
Apache-2.0
Last commit
Aug 2026
Last release
Aug 2026
Language
Python
Stars, last 29 weeks+979
1 Apr 2026: 6,573 stars8 Apr 2026: 6,608 stars15 Apr 2026: 6,639 stars22 Apr 2026: 6,681 stars29 Apr 2026: 6,753 stars6 May 2026: 6,797 stars13 May 2026: 6,825 stars20 May 2026: 6,864 stars27 May 2026: 6,907 stars3 Jun 2026: 6,939 stars10 Jun 2026: 6,967 stars17 Jun 2026: 6,989 stars24 Jun 2026: 7,019 stars1 Jul 2026: 7,057 stars8 Jul 2026: 7,094 stars15 Jul 2026: 7,134 stars22 Jul 2026: 7,169 stars29 Jul 2026: 7,204 stars5 Aug 2026: 7,236 stars12 Aug 2026: 7,262 stars19 Aug 2026: 7,285 stars26 Aug 2026: 7,310 stars2 Sept 2026: 7,337 stars9 Sept 2026: 7,374 stars16 Sept 2026: 7,414 stars23 Sept 2026: 7,434 stars30 Sept 2026: 7,466 stars7 Oct 2026: 7,493 stars14 Oct 2026: 7,521 stars21 Oct 2026: 7,552 stars

6,573 on 1 Apr 20267,552 on 21 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Guardrails is a Python library that wraps LLM calls with input and output guards built from validators, such as regex match, competitor check and toxic language. It also produces structured output from Pydantic models, using function calling or a schema added to the prompt. Guards run in-process or behind a Flask REST server started with `guardrails start`, which exposes an OpenAI SDK-compatible endpoint.

Who it is for: Python developers adding validation and structured output to LLM apps

Strengths

  • Several validators combine in one Guard, each with its own on_fail action
  • Structured output from Pydantic models via function calling or prompt schema
  • Guard server exposes an OpenAI SDK-compatible base URL for existing clients
  • Custom validators supported; works with proprietary and open-source LLMs

Weaknesses

  • Hosted remote inferencing is being discontinued, planned cutoff August 25, 2026
  • Validators are moving to separate PyPI packages, so existing installs need migration
  • Hub validators need separate installs and `guardrails configure` setup
  • README examples use the legacy OpenAI completions API; one sample output is malformed

What it needs

  • Needs Guardrails Hub validators (pip packages), LLM provider API (e.g. OpenAI)
  • Models: OpenAI, any LLM, proprietary or open-source
  • port 8000

Also in Agent frameworks and SDKs

See all 70
Also in Agent frameworks and SDKs
RankProjectScore
1ppt-masterAgent skill that turns documents into natively editable PowerPoint decks Live demo ↗ (opens in a new tab)65.3k starsMIT94 out of 100
2langchainPython framework for building LLM agents and apps from interoperable components148.2k starsMIT89 out of 100
3browser-usePython library that lets an LLM agent control a web browser Live demo ↗ (opens in a new tab)118.8k starsMIT89 out of 100
#4openai-agents-pythonPython SDK for multi-agent workflows with handoffs, guardrails and tracing30.2k starsMIT89 out of 100
#5mastraTypeScript framework for building AI agents and workflows29k starscustom license89 out of 100