LLM Guard
Open-source security toolkit for LLM interactions
LLM Guard is profiled here as a LLM tool for engineering teams. Read about features, pricing, and how it compares to related options in the tools directory.
Description
LLM Guard is an open-source security toolkit for LLM applications, originally built by Laiyer AI and now maintained by Protect AI, which Palo Alto Networks acquired in 2025. It runs a configurable set of scanners over prompts and responses to detect and sanitize risks such as prompt injection, sensitive data exposure, toxic language, and harmful output. The scanners compose into input and output pipelines that sit around a model in production. Its scanners cover common risks named in the OWASP Top 10 for LLM applications, including prompt injection and sensitive-data leakage. Several scanners sanitize in place, redacting detected entities or masking secrets so a flagged request continues safely once the risky content is removed.
Key Capabilities:
Input scanners for prompt injection and jailbreak detection
PII detection with redaction and anonymization
Output scanners for toxicity, bias, and harmful content
Topic and relevance filtering against allowed subjects
Composable scanner pipelines for inputs and outputs
MIT-licensed Python package for self-hosted deployment
Alternative tools
- Kong AI Gateway
AI traffic governance built on the Kong gateway
- Eden AI
One API for many AI models across providers and modalities
- Reka
Multimodal models that reason across text, image, and video
- Moonshot AI
Open-weight Kimi models tuned for agentic and coding tasks
- xAI Grok
Grok model family with real-time search through one API
- Llama Guard
Open safeguard model for classifying LLM inputs and outputs
