PII Firewall
PII Firewall intercepts personally identifiable information before it reaches an LLM, then restores the original values in the response.
What PII Firewall is
PII Firewall intercepts personally identifiable information before it reaches an LLM, then restores the original values in the response. It is a free, open-source, self-hosted tool for Linux, with a Python package and a regex-only installation that needs no ML dependencies. Its built-in profiles cover healthcare, finance, legal, and generic use, and users can create custom profiles. Detection options include regex, Presidio, GLiNER, Transformers, OpenAI Privacy Filter, hybrid setups, and custom backends. For detected information, it supports keeping, pseudonymizing, redacting, generalizing, masking, or hashing values. 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 can remove vault mappings for a thread or case. Each call records detected entity types, confidence scores, and applied replacements. The project uses the Apache 2.0 license.
Good
- Free and open source under Apache 2.0
- Regex-only install needs no ML dependencies
- Offers profiles for healthcare, finance, and legal
- Supports multiple ways to handle detected PII
- Includes traces with entity types and confidence scores
Watch out
- Requires self-hosting on Linux
- Hashing is not used in built-in presets
Who it suits
It suits teams handling sensitive text in healthcare, finance, or legal workflows. Linux users who want to host a Python-based PII layer themselves may also find it relevant.
Verdict
PII Firewall combines configurable detection and replacement options with self-hosted deployment and traces for each call. Its Linux-only platform listing and the hashing limitation are worth considering before adoption.
Plans and prices
From PII Firewall's own pricing page, checked 7 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| Open source | Free | Apache 2.0 · Python package · regex-only install needs no ML dependencies |
The facts
Each one read from PII Firewall's own pages, with the date it was checked.
What it does
- Audit
- Each call produces a trace with detected entity types, confidence scores, and applied replacements.checked 7 Oct 2026
- Data controls
- The maker describes tenant-scoped token mappings and a forget operation that deletes vault mappings for a thread or case.checked 7 Oct 2026
- Detection
- Detection backends include regex, Presidio, GLiNER, Transformers, OpenAI Privacy Filter, hybrid, and custom options.checked 7 Oct 2026
- Domain profiles
- Built-in profiles include healthcare, finance, legal, generic, and custom.checked 7 Oct 2026
- Install
- The maker provides a Python package install; the base regex-only install has no ML dependencies.checked 7 Oct 2026
- Integrations
- Examples cover OpenAI, Anthropic, LangChain, FastAPI, streaming transport, Ollama, LiteLLM, and arbitrary HTTP LLM endpoints.checked 7 Oct 2026
- Intended users
- The maker highlights healthcare, finance, and legal use cases, including clinical NLP, fintech support automation, and legal document review.checked 7 Oct 2026
- Languages
- The product says it supports 55+ languages with automatic language detection and locale-specific patterns.checked 7 Oct 2026
- License
- The project is open source under the Apache 2.0 license.checked 7 Oct 2026
- Notable limit
- The maker says the HASH action is for analytics workflows and is not used in built-in presets.checked 7 Oct 2026
- PII handling
- Six disposition actions are supported: keep, pseudonymize, redact, generalize, mask, and hash.checked 7 Oct 2026
- Purpose
- Intercepts and anonymizes PII before it reaches an LLM, then restores original values in the response.checked 7 Oct 2026
Alternatives to PII Firewall
- 1

PromptGuard
Free planWebAPIExtensionLinux7.9From $19 a month - 2
CyberSecEval
Free planOpen sourceWebAPILinuxmacOS7.5Free plan - 3

NVIDIA NeMo Guardrails
Free planOpen sourceAPILinuxmacOSSelf-hosted7.4Free plan - 4
Oracle Mobile Authenticator
Free planAndroidiOSWindows6.9Free plan - 5

Enkrypt AI Guardrails
Free planWebAPISelf-hosted6.8From $1,608 a year - 6
OpenSecureAI Prompt Firewall
Free planWebSelf-hosted6.7From $49 a month
