Skip to content
SPECIFICTION
Get listed

LLM Guard vs PII Firewall

LLM Guard

github.com

PII Firewall

pii-firewall.com

Side by side

FigureLLM GuardPII Firewall
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
LinuxYesYes
APIYes—
Self-hostedYesYes
Plans published11
Spec score · AI Guardrail Software7.7 (#9)7.2 (#18)
IntegrationsThe documentation includes integrations and examples for the OpenAI SDK, LangChain, LiteLLM, and LlamaIndex.Examples cover OpenAI, Anthropic, LangChain, FastAPI, streaming transport, Ollama, LiteLLM, and arbitrary HTTP LLM endpoints.
Intended usersThe project describes production deployment and offers tutorials for developers building LLM applications, including guarded RAG and agent workflows.The maker highlights healthcare, finance, and legal use cases, including clinical NLP, fintech support automation, and legal document review.
LicenseThe GitHub repository lists the project under the MIT License.The project is open source under the Apache 2.0 license.
PurposeLLM Guard is a security toolkit for LLM interactions that sanitizes inputs, detects harmful language, helps prevent data leakage, and resists prompt injection attacks.Intercepts and anonymizes PII before it reaches an LLM, then restores original values in the response.

Plans

LLM Guard

  • LLM GuardFree

LLM Guard pricing →

PII Firewall

  • Open sourceFree

PII Firewall pricing →

In their own words

LLM Guard

LLM Guard is a self-hosted security toolkit for checking interactions with large language models. It scans prompts and outputs for concerns such as prompt injection, secrets, personally identifiable information, toxicity, bias, malicious URLs, and factual consistency. It can sanitize interactions, detect harmful language, help prevent data leakage, and resist prompt injection attacks. The documentation includes examples for the OpenAI SDK, LangChain, LiteLLM, and LlamaIndex. In the OpenAI examples, prompts and responses are scanned; a streaming example also checks response chunks. LLM Guard can run as an API, and custom scanners can be added. Installation uses `pip install llm-guard` and requires Python 3.9 or higher. It is free and listed under the MIT License, with API, Linux, and self-hosted platforms. The repository was archived on July 9, 2026, is read-only, and is no longer actively developed or maintained. Production deployment assistance is directed to GitHub issues, Slack, and [email protected].

Visit github.com

PII Firewall

PII Firewall is an open-source, self-hosted tool that intercepts personally identifiable information before it reaches an LLM, then restores original values in the response. The maker highlights healthcare, finance, and legal workflows, including clinical language processing, fintech support automation, and legal document review. Built-in profiles cover healthcare, finance, legal, and generic use, with custom profiles also available.

Detection options include regex, Presidio, GLiNER, Transformers, OpenAI Privacy Filter, hybrid setups, and custom backends. Users can choose to keep, pseudonymize, redact, generalize, mask, or hash detected information. The product says it supports 55+ languages with automatic language detection and locale-specific patterns. Integration examples include OpenAI, Anthropic, LangChain, FastAPI, streaming transport, Ollama, LiteLLM, and arbitrary HTTP LLM endpoints. Tenant-scoped token mappings and a forget operation support deleting vault mappings for a thread or case. Each call produces a trace with detected entity types, confidence scores, and replacements. The project uses the Apache 2.0 license and provides a Python package; its regex-only base install does not require ML dependencies. The maker says hash is for analytics workflows and is not used in built-in presets.

Visit pii-firewall.com