LLM Guard
Read the two badges separately: the first is whether this page is backed by evidence, the second is whether the product is still maintained. An archived product can have complete evidence; complete evidence does not mean the product is active.
30-second check: should it make your shortlist?
Upstream archivedProtect AI's open-source LLM input/output scanning toolkit: one side screens prompts…
Local / self-hosted · Local app
Open licence
Read the original licence before commercial useNot checked · Not checked
These four cards help you rule things out, not decide for you. The real differences are in the eight questions and sources below.
Information not confirmed
- The exact model weights or external inference services each scanner needs (captured only at documentation-index level today)
- Telemetry, log retention and the scope of sending text onward
- Support for file-shaped inputs (attachments, directories) and temp-file behaviour
- Default thresholds and default on-fail actions per scanner
- Whether any hosted tier exists (the README only leaves a "Production Support" contact route)
- The Python-version conflict: README says 3.9+, PyPI metadata says =3.10 and 3.13
- MCP or other extension points
- Mainland direct reachability and filing status (recorded as unknown in the cn block)
Protect AI's open-source LLM input/output scanning toolkit: one side screens prompts (injection, invisible text, secrets, toxicity, banned topics), the other screens completions (bias, malicious links, sensitive data, factual consistency). It is a scanner collection you deploy, not a hosted guardrail service.
When to use it, when not to
Fit: teams embedding pre- and post-checks in their own pipeline and willing to own dependencies and model downloads; the docs give two forms, a Python library and an API server. Not fit: expecting continued upstream updates, since the README warning says the project is archived and the Hugging Face models are unmaintained. Also not for readers looking for detection-rate numbers: the official material only lists channels, and this site runs no end-to-end tests.
China availability domestic / direct access / CAC filing · snapshot 2026-11-06
- Origin
- foreign-made Protect AI (GitHub organisation "Protect AI", a US-based company); not a domestic product.
- Direct access
- direct unknown Only general-network reachability of GitHub / docs site / PyPI was checked today; no mainland direct-access test was run, so this stays unknown.
- CAC filing
- filing unknown:The CAC public registry was not searched on the verification day, so filing status has no official basis; the product does not serve the mainland public.
Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.
8 questions, one table
8 questions, each comparable item by item with its peers.
- Model & openness
It guards the text going into the model and the text coming back, not any vendor's model itself. The README's starter example goes through ChatGPT / the OpenAI API (examples/openai_api.py), and the documentation index lists two delivery forms as of the verification day: a Python library and an API server. Which scanners need downloaded local weights and which need an external inference service was only captured at documentation-index level; not verified item by item, recorded as unknown.
- Where it runs
Self-hosted:
pip install llm-guardruns in your own environment; the README requires Python 3.9 or newer, while the PyPI package metadata measured today states =3.10 and 3.13 (the two disagree; logged in the unknowns list). The docs index also gives an API server path, i.e. hosting the scanners inside your own service as pre/post checks. No vendor-side computation is described in the official text.- Local files
Both the README and the documentation index describe the object of processing as prompt / completion text; no capability to read workspace files or traverse directories is declared. Support for file-shaped inputs (attachments, directories) and any temp-file behaviour on disk is not stated officially.
- Tasks after shutdown
As a library it lives and dies with your process; as an API server it is a service you keep resident, with start/stop and scaling in your hands. Managed queues, continuation after shutdown and asynchronous tasks are not stated officially.
- Tools & extensions
The README lists 15 Prompt scanners and 21 Output scanners, covering input channels such as PromptInjection, InvisibleText, Secrets, Anonymize, Toxicity, BanTopics, Regex and TokenLimit, and output channels such as Bias, MaliciousURLs, Sensitive, FactualConsistency, Relevance, JSON and LanguageSame. The documented configuration model is thresholds plus mask / block / answer style disposition actions. MCP integration is not stated officially.
- Context & memory
Detection operates on the single text passed in; no session memory, cross-turn context or historical attack store is described officially. Context-length limits are set by scanners like TokenLimit; the concrete defaults were not verified and are recorded as unknown.
- Permissions & limits
The licence is MIT (see the license field, judged against the official LICENSE text), so commercial use and redistribution are permitted with the copyright notice retained. Data flow is the dimension with the biggest gap here: neither the README nor the documentation index captured today states telemetry, log retention, or the scope of sending text to third parties, so it is recorded as unknown. Compliance certifications (SOC 2 class) were not mentioned on the pages reached. The repository is archived and the official text says it is no longer actively maintained.
- Best for
Fits teams that want input/output checks wired into their own pipeline, can own dependencies and model downloads themselves, and accept that the ruleset stops being updated. Does not fit deployments needing continued security-rule maintenance or a hosted SLA, nor readers looking for detection or bypass rates — this site runs no end-to-end tests and quotes no vendor numbers.
Licence and terms of use
MIT (official LICENSE opens with "The MIT License (MIT)"; copyright line "Copyright (c) Protect AI. All rights reserved."). Open source; usable after pip install llm-guard, with no vendor API key stated as a runtime prerequisite; advanced scanners install dependencies on demand.
Top misconception
- 把 README 的扫描器清单当成检测能力承诺——官方只列通道,不列命中率
- 以为上游仍在维护:仓库与关联 Hugging Face 模型均已宣布归档
- Python 版本要求 README 与 PyPI 元数据不一致,装不上先看包元数据
Evidence sources
Checked 2026-11-06,Content updated 2026-11-06。This is the date of the entry, not a claim that every field was rechecked that day.
| Type | Name | Link |
|---|---|---|
| changelog | LLM Guard · docs-site changelog (reachability confirmed 2026-11-06) | https://protectai.github.io/llm-guard/changelog/ |
| changelog | LLM Guard · repository commit history (main branch, last push 2026-07-08) | https://github.com/protectai/llm-guard/commits/main |
| docs | LLM Guard · official documentation (deployment forms and scanner configuration) | https://protectai.github.io/llm-guard/ |
| repo | LLM Guard · repository README (with the archive warning and the scanner lists) | https://github.com/protectai/llm-guard |
| docs | LLM Guard · official LICENSE (MIT text) | https://github.com/protectai/llm-guard/blob/main/LICENSE |
| docs | PyPI · llm-guard (0.3.16, released 2025-05-19; requires_python constraint) | https://pypi.org/project/llm-guard/ |
Test notes
This site has not run end-to-end tests: no scanner was executed against samples, and no threshold or disposition action was observed in practice. Everything here is assembled from the official README, the documentation index and the LICENSE / PyPI metadata (fetched 2026-11-06). The scanner-channel section is a transcription of the README list and implies no measured hit or block behaviour.
Declared detection channels (transcribed from the README)
Prompt scanners (15 items): Anonymize, BanCode, BanCompetitors, BanSubstrings, BanTopics, Code, Gibberish, InvisibleText, Language, PromptInjection, Regex, Secrets, Sentiment, TokenLimit, Toxicity.
Output scanners (21 items): BanCode, BanCompetitors, BanSubstrings, BanTopics, Bias, Code, Deanonymize, JSON, Language, LanguageSame, MaliciousURLs, NoRefusal, ReadingTime, FactualConsistency, Gibberish, Regex, Relevance, Sensitive, Sentiment, Toxicity, URLReachability.
This table is only the capability surface the official text declares. This site ran none of these items and quotes no hit-rate numbers, official or third-party.
Archive status and what it means for selection
The warning block at the top of the README, original wording (fetched 2026-11-06):
THIS PROJECT HAS BEEN ARCHIVED. This project and its associated models on Hugging Face are no longer under active development or maintained.
Corroborating verifiable facts: the repository's archived flag is true, the last push was 2026-07-08, and the newest PyPI release 0.3.16 dates to 2025-05-19. The entry therefore records lifecycle archived with confidence capped at partial.
The selection implication is a transfer of maintenance duty: rulesets, dependencies and security fixes all become your responsibility.
Related entries
- RebuffSame line: Rebuff (in guardrails and content filtering); this entry states only what its own official sources support.
- CanaryScanSame line: CanaryScan (in guardrails and content filtering); this entry states only what its own official sources support.
- NeMo GuardrailsSame line: NeMo Guardrails (in guardrails and content filtering); this entry states only what its own official sources support.
- LangChainOther layer · Frameworks & runtimes
Same-category peers
Look at these three before reading further
Selected by overlap in jobs, not ranked. Compare where it runs, licence and status first; if one of the three fails, skip it.
| Object | Where | Licence | Evidence / status | What it is for |
|---|---|---|---|---|
| Arize Phoenix | Local / self-hosted | Commercial terms | 8 questions checked Active | Phoenix is an open-licensed observability and evaluation platform that r |
| Langfuse | Local + cloud | Open licence | 8 questions checked Active | Langfuse is an open-source observability and evaluation platform. Its co |
| LiteLLM Proxy (AI Gateway) | Local + cloud | Open licence | 8 questions checked Active | It is a self-deployed unified entry point, with governance on keys and b |
Same vendor
More from Protect AI
One vendor’s products are often split across categories. This list puts them together so you do not have to assemble them across five sites.
This page is generated from the ai-handbook data layer (CC BY 4.0).
For the judging criteria and method notes, see METHODOLOGY.md.