⚠ This tool appears inactive — no commits in 90+ days. Consider an alternative.
AI GuardrailsOpen Source✦ Free Tier

LLM Guard

OSS guardrails toolkit by Protect AI

● Health 45/100 — Slowing· commit recency (40 pts) · star momentum (30 pts) · issue ratio (20 pts) · forks (10 pts)by protect-aiApp Infrastructure

About

MIT-licensed Python toolkit for LLM input/output filtering — prompt-injection detection, PII redaction, toxicity, anonymisation, bias, and more. Top OSS choice for self-hosted runtime guardrails in 2026.

Choose LLM Guard when…

  • You need OSS, self-hosted guardrails you can audit
  • You want a pluggable validator chain over your own LLM calls
  • You cannot send prompts to a managed third-party guardrails service

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 LLM Guard in your project via these signals:

pip packages
llm-guard

Integrates with (1)

LiteLLMLLM Infrastructure

LLM Guard plugs into LiteLLM-routed calls as a scanner step, applying input/output validation across any model LiteLLM supports.

Add OSS guardrails to any LiteLLM-backed application without changing the model provider.

Compare →

Alternatives to consider (2)

Pricing

✦ Free tier available
OSSFree

Recent Activity

View all activity for this tool →

Badge

Add to your GitHub README

LLM Guard on AIchitect[![LLM Guard](https://www.aichitect.dev/badge/tool/llm-guard)](https://www.aichitect.dev/tool/llm-guard)

Explore the full AI landscape

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

Explore graph →