Skip to content
SPECIFICTION
Get listed

LLM Guard vs OpenAI Guardrails

LLM Guard

github.com

OpenAI Guardrails

guardrails.openai.com

Side by side

FigureLLM GuardOpenAI Guardrails
Price fromFree—
Free planYes—
Free trial——
Open source——
Web—Yes
LinuxYes—
APIYesYes
Self-hostedYesYes
Plans published10
Spec score · AI Guardrail Software7.7 (#9)7.2 (#16)
PurposeLLM Guard is a security toolkit for LLM interactions that sanitizes inputs, detects harmful language, helps prevent data leakage, and resists prompt injection attacks.OpenAI Guardrails adds configurable safety and compliance checks to LLM applications by validating inputs and outputs.

Plans

LLM Guard

  • LLM GuardFree

LLM Guard pricing →

OpenAI Guardrails

No plans published.

OpenAI Guardrails pricing →

In their own words

LLM Guard

LLM Guard is a self-hosted security toolkit for checking interactions with large language models. It scans prompts and outputs for concerns such as prompt injection, secrets, personally identifiable information, toxicity, bias, malicious URLs, and factual consistency. It can sanitize interactions, detect harmful language, help prevent data leakage, and resist prompt injection attacks. The documentation includes examples for the OpenAI SDK, LangChain, LiteLLM, and LlamaIndex. In the OpenAI examples, prompts and responses are scanned; a streaming example also checks response chunks. LLM Guard can run as an API, and custom scanners can be added. Installation uses `pip install llm-guard` and requires Python 3.9 or higher. It is free and listed under the MIT License, with API, Linux, and self-hosted platforms. The repository was archived on July 9, 2026, is read-only, and is no longer actively developed or maintained. Production deployment assistance is directed to GitHub issues, Slack, and [email protected].

Visit github.com

OpenAI Guardrails

OpenAI Guardrails is an open-source project for applying configurable safety and compliance checks to LLM applications by validating inputs and outputs. Its Python project is labeled Preview and available under the MIT license. Built-in checks include PII masking, moderation, jailbreak detection, off-topic prompt checks, URL filtering, and hallucination detection; prompt-injection detection for agent tool calls is experimental. The Python package supplies wrapped OpenAI clients for Chat Completions and Responses API calls and integrates with the OpenAI Agents SDK. Documentation also covers Azure OpenAI clients and OpenAI-compatible APIs, including a local Ollama example. Developers can create pipeline configurations with the Guardrails Wizard or define them as JSON, then use evaluation tools on labeled datasets. Python and TypeScript/JavaScript SDKs are listed. The Python package needs Python 3.11 or newer; configurations using Contains PII also require its spaCy model during build or deployment. Guardrails calls paid OpenAI APIs, whose charges are the developer’s responsibility. It may use third-party services such as Presidio, which OpenAI says it does not develop or verify.

Visit guardrails.openai.com