Skip to content

How piighost compares

piighost combines four properties a conversational agent needs. It restores the reply for the user, keeps the same placeholder over the whole conversation, hands the real value to tools, and restores while the reply streams. None of the tools below documents all four together. Each one is better than piighost at something else, and its section says what.

Summary

Last checked: 6 October 2026.

ToolRestores values in the replyRestores tool-call argumentsSame placeholder across a conversationStreamingFramework integrationsLicenseStatus
piighost✅✅✅ per conversation✅ restores as the reply streamsLangChain, Pydantic AI, LlamaIndex, Claude Code, OpenAI and Anthropic proxy (piighost-api)MITactive
Presidio⚠️ by hand (decrypt)❌❌❌none, a library and a REST serviceMITactive, under Data Privacy Stack
PresidioReversibleAnonymizer✅❌⚠️ one mapping per anonymizer object❌LangChain chainsMITarchived, 22 May 2026
LangChain PIIMiddleware (Python)❌❌⚠️ with the hash strategy❌ masks the streamLangChain agentsMITactive
LangChain piiRedactionMiddleware (JS)✅ after the model call✅❌ a new marker per occurrence❌LangChain.js agentsMITdeprecated
LLM Guard✅not documented⚠️ while the same vault is reusednot documentedlibrary, API serverMITarchived, 9 July 2026
AWS Comprehend, Azure AI Language❌❌❌❌cloud APIpaidactive
Google DLP⚠️ through an API call❌✅ always the same token for a value❌cloud APIpaidactive
PrivAiTe✅✅⚠️ per request✅OpenAI-compatible proxy, Claude Code and Codex gateway, Open WebUI, LiteLLMBSD-3-Clauseactive
Etalab pseudo_api❌❌n/a, one document at a time❌REST APIMITarchived

Detection-only models and dataset anonymizers are not in the table, because they do not replace and restore values in a conversation. Their sections are at the end of the page.

piighost vs Presidio

Presidio detects personal data and replaces it with operators. It left Microsoft in 2026 and is now a community project under the Data Privacy Stack organization, still under the MIT license. Its anonymizer can revert only an encrypted value, with the decrypt operator.

piighostPresidio
Detectionregex, NER or LLMNER, regex, rules, check digits
What happens to a valuereversible placeholder (memory, Redis or SQL)mask or encrypted token
Restored for the user✅⚠️ by hand (decrypt)
Same placeholder over the conversation✅ per conversation❌
Real value to tools, placeholder to the LLM✅❌
Restored while streaming✅❌
Configurable steps after detection✅ linking, fuzzy matching, expansion, guard rail⚠️ operators only
Unit processedtext, conversationtext
Hosting✅ self-hosted✅ self-hosted
LicenseMITMIT

Better at: validating a format by its check digits, on typed text. piighost can also use it as a detector, with PresidioDetector.

piighost vs PresidioReversibleAnonymizer

PresidioReversibleAnonymizer wraps Presidio in a LangChain object with anonymize() and deanonymize() methods. It lived in the langchain-experimental package, which LangChain sunset on 22 May 2026. The repository is archived, so the class gets no more fixes.

  • It replaces each value with a fake one from Faker by default, then restores it from a mapping kept in the object.
  • One object holds one mapping for every text it sees, so two conversations share it unless you reset it.
  • It restores neither tool-call arguments nor a streamed reply.

Better at: it was a one-line addition to a LangChain chain that already used Presidio. To move that chain to piighost, see Migrate from PresidioReversibleAnonymizer.

piighost vs LangChain PII middleware

The Python PIIMiddleware blocks, redacts, masks or hashes a value in an agent's messages. Its source also masks the streamed output. It never restores a value, so a tool receives what the model wrote.

piighostLangChain PII
Detectionregex, NER or LLMregex, validators
What happens to a valuereversible placeholder (memory, Redis or SQL)mask or hash
Restored for the user✅❌
Same placeholder over the conversation✅ per conversation⚠️ with the hash strategy
Real value to tools, placeholder to the LLM✅❌
Restored while streaming✅❌ masks the stream
Configurable steps after detection✅ linking, fuzzy matching, expansion, guard rail❌
Unit processedtext, conversationtext, conversation
Hosting✅ self-hosted✅ self-hosted
LicenseMITMIT

The JavaScript piiRedactionMiddleware restored the values after the model call, in the reply and in tool-call arguments. It gives each occurrence a new random marker, and it restores only once the model call ends. It is now marked deprecated, and LangChain moved its docs to piiMiddleware, which blocks, redacts, masks or hashes without restoring.

Better at: there is nothing more to install in a LangChain agent. That is enough when the user does not need to read their real values.

piighost vs LLM Guard

LLM Guard was archived on 9 July 2026 and is no longer maintained. piighost covers only its Anonymize and Deanonymize scanners, which replace values and restore them from a vault. piighost has no equivalent of the other scanners, such as prompt injection, toxicity or banned topics.

piighost vs AWS Comprehend and Azure AI Language

AWS Comprehend and Azure AI Language detect personal data and return a masked text from a cloud API.

piighostAWS / Azure
Detectionregex, NER or LLMmachine learning
What happens to a valuereversible placeholder (memory, Redis or SQL)mask
Restored for the user✅❌
Same placeholder over the conversation✅ per conversation❌
Real value to tools, placeholder to the LLM✅❌
Restored while streaming✅❌
Configurable steps after detection✅ linking, fuzzy matching, expansion, guard rail❌
Unit processedtext, conversationtext, documents
Hosting✅ self-hosted❌ cloud
LicenseMITpaid

Better at: models the provider maintains, to mask documents in a cloud already in place.

piighost vs Google DLP

Google's Sensitive Data Protection, formerly Cloud DLP, can pseudonymize a value with a key and re-identify it through a second API call.

piighostGoogle DLP
Detectionregex, NER or LLMmachine learning, predefined types (infoTypes)
What happens to a valuereversible placeholder (memory, Redis or SQL)stateless encrypted token
Restored for the user✅⚠️ through an API call
Same placeholder over the conversation✅ per conversation✅ always the same token for a value
Real value to tools, placeholder to the LLM✅❌
Restored while streaming✅❌
Configurable steps after detection✅ linking, fuzzy matching, expansion, guard rail⚠️ transformations
Unit processedtext, conversationtext, dataset
Hosting✅ self-hosted❌ cloud
LicenseMITpaid

Better at: transforming whole datasets in Google Cloud.

piighost vs PrivAiTe

PrivAiTe is a self-hosted proxy that sits between an application and the model provider. It replaces values in messages and in tool-call arguments, then restores them in the reply, streaming included.

  • It keeps the mapping for one request and drops it when the request ends. A chat client resends the whole history, so numbering stays consistent within each request.
  • It plugs in as an OpenAI-compatible proxy, a gateway for Claude Code and Codex, an Open WebUI filter or a LiteLLM guardrail.
  • It is a proxy, so it does not run inside an agent framework the way a middleware does.

Better at: covering an agent CLI or an existing OpenAI-compatible app without touching its code, with a published leak benchmark.

piighost vs Etalab pseudo_api

pseudo_api is the pseudonymization API of the Lab IA of Etalab, part of the French interministerial digital directorate (DINUM). It replaces first names, last names and addresses in court decisions of the Conseil d'État, so they can be published. It has no endpoint that restores a value, and the repository is archived.

Note: it shows the French administration's approach, which pseudonymizes a document for good before publishing it. The repository does not ship its trained model, because the training data are not public.

Detection-only models

spaCy, GLiNER, Piiranha and OpenAI Privacy Filter, released on 22 April 2026 under Apache-2.0, find the data. At most they mask it, and they never restore it.

  • They are building blocks rather than competitors. piighost uses spaCy, GLiNER and Piiranha as detectors, Piiranha through TransformersDetector.

Dataset anonymizers

ARX and Amnesia transform a whole table with k-anonymity or differential privacy.

  • The result is anonymous and irreversible, where piighost is reversible.
  • Better at: publishing or sharing a dataset. Not made for a live conversation.

See Limitations for what piighost does not do, and the reasoning behind these choices. For the vocabulary used on this page, see Anonymization, pseudonymization, redaction, masking.