AI GuardrailsOpen Source✦ Free Tier

OpenAI Guardrails

OpenAI's first-party guardrails library for Responses/Assistants

● Health 50/100 — Slowing· commit recency (40 pts) · star momentum (30 pts) · issue ratio (20 pts) · forks (10 pts)by openaiApp Infrastructure

About

OpenAI's official Python/TS library for adding guardrails to Responses API and Assistants API applications. Ships moderation, jailbreak detection, hallucination checks, and PII filters as composable guardrails.

Choose OpenAI Guardrails when…

  • You are building on the OpenAI Responses or Assistants API
  • You want first-party guardrails with OpenAI moderation built in
  • You want to keep policy code in the same SDK as your model calls

Builder Slot

How do you keep your AI safe?Optional for most stacks

Input/output validation, topic controls, and safety rails that ensure LLM responses stay within defined policies

Dev Tools
Not applicable
App Infra
Optional
Hybrid
Optional

Other tools in this slot:

Stack Genome Detection

AIchitect's Genome scanner detects OpenAI Guardrails in your project via these signals:

npm packages
openai-guardrails
pip packages
openai-guardrails
env vars
OPENAI_API_KEY

Integrates with (1)

OpenAI APILLM Infrastructure

OpenAI Guardrails is OpenAI's first-party library — it wraps Responses and Assistants API calls with composable guardrails (moderation, jailbreak detection, PII filters).

Add validated, policy-checked outputs to OpenAI applications without writing retry and validation logic.

Compare →

Alternatives to consider (2)

Pricing

✦ Free tier available
OSSFree

Badge

Add to your GitHub README

OpenAI Guardrails on AIchitect[![OpenAI Guardrails](https://www.aichitect.dev/badge/tool/openai-guardrails)](https://www.aichitect.dev/tool/openai-guardrails)

Explore the full AI landscape

See how OpenAI Guardrails fits into the bigger picture — browse all 207 tools and their relationships.

Explore graph →