protectai/llm-guard
The Security Toolkit for LLM Interactions observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 91
- Release rhythm 35
- Longevity 80
Flags: no_releases archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1133
- days_rel: n/a
- days_push: 56
- n_releases_24m: 0
Adoption not part of the score
3203 stars · 446 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
LLM Guard is a Python library providing input and output scanners to secure LLM interactions, including sanitization, harmful language detection, PII anonymization, and prompt injection resistance. The project has been archived and is no longer maintained.
Use cases
- detect and block prompt injection attacks on my llm app
- anonymize PII before sending prompts to an LLM API
- sanitize user input before it reaches a chatbot
- prevent data leakage in LLM responses
- add a security firewall around ChatGPT API calls
- scan LLM outputs for toxic or harmful content
When to choose
- you need a ready-made set of LLM input/output security scanners in Python
- you want PII anonymization and prompt injection detection out of the box
- you are okay using an unmaintained library as-is or forking it
When to avoid
- you need actively maintained software with bug fixes and updated models
- you require support for new LLM providers or recent attack techniques
- you want long-term production support without forking
Facets
library · maturity abandoned
security nlp llm-inference prompt-engineering middleware large-language-models security machine-learning python cross-platform llm-security prompt-injection pii-detection input-sanitization llm-firewall archived-project natural-language-processing
3 sources
- readme: https://github.com/protectai/llm-guard · fetched 2026-08-28 · fddf5a6ec2db
- homepage: https://protectai.github.io/llm-guard/ · fetched 2026-08-29 · 7403f55aa640
- registry_pypi: https://pypi.org/pypi/llm-guard/json · fetched 2026-08-29 · 12848426ce5f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| protectai/llm-guard | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="protectai/llm-guard")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem