Technology · Agentic → Guardrails · Open Source · wiki:deep
LLM Guard (Protect AI) is a security toolkit for LLM interactions: sanitization, harmful-language detection, data-leakage prevention, and prompt-injection resistance via input and output scanners (anonymize, secrets, toxicity, prompt injection, malicious URLs, and many more). Install with pip install llm-guard (Python ≥ 3.9); deployable as a library or API.
Primary README warning: the project has been archived — the repo and associated Hugging Face models are no longer actively developed or maintained. Treat as historical reference and pin commits if still used.
Guardrails research still needs a catalog of I/O scanners for prompt injection, secrets, and toxicity. LLM Guard remains a useful shape reference for scanner libraries even though it is archived. Prefer Guardrails AI or NeMo Guardrails for maintained programmable rails; prefer Headroom for action-level HITL, not text scanners.
Wrap LLM calls with prompt scanners on the way in and output scanners on the way out. Each scanner targets a risk class (secrets, injection, toxicity, …). Optional API deployment fronts the same scanners for services.
pip install llm-guard. Related: guardrails-ai · headroom · nemo-guardrails · topics/13-governance-policy
Scroll inside the canvas to pan
Catalog backlinks — what points here (wiki “what links here”).
Claims below are backed by science sources on disk.
Toolkit / scanner framing
protectai/llm-guard · MODERATE
“LLM Guard is a comprehensive tool designed to fortify the security of Large Language Models (LLMs).”
Docs / scanner list
LLM Guard documentation · MODERATE
“LLM Guard by Protect AI is a comprehensive tool designed to fortify the security of Large Language Models (LLMs).”
Peer contrast
NeMo Guardrails contrast · MODERATE
“THIS PROJECT HAS BEEN ARCHIVED.”
Features and peers linked from the catalog map — not a second product surface.
Primary repo github.com/protectai/llm-guard · Open Source
technologies/llm-guard/README.md
9 tags · 37 out · 38 in · 3 artifacts · 0 gaps · 34 corpus docs
map_edge · 10
tech_features · 1
tech_quote · 8
tech_readme · 1
tech_science_source · 3
tech_section · 11