The offline PII firewall for AI agents and LLM apps.
Agents move sensitive data through prompts, tool calls, files, and gateways all day. DataFog catches PII at the boundary — before it leaves the machine — running a simple loop on every payload:
- detect sensitive entities locally (regex-first, microseconds per scan, zero network calls, one dependency)
- decide what policy says (allow, redact, block)
- enforce before the action executes
No sidecar services, no cloud API that sees your data. The only PII layer in the agent ecosystem where analysis never leaves your machine.
Python:
# pip install datafog
import datafog
print(datafog.redact("email me at jane.doe@example.com").redacted_text)
# email me at [EMAIL_1]Claude Code — firewall every agent tool call:
/plugin marketplace add DataFog/datafog-claude-plugin
/plugin install datafog@datafog
LiteLLM gateway — redact requests to any provider (~31µs per request):
guardrails:
- guardrail_name: "datafog-pii"
litellm_params:
guardrail: datafog.integrations.litellm_guardrail.DataFogGuardrail
mode: "pre_call"
default_on: true| Project | What it is |
|---|---|
| datafog-python | The engine: PII detection, redaction, and agent guardrails. Ships the Claude Code hook and LiteLLM guardrail. |
| datafog-claude-plugin | One-command Claude Code plugin wrapping the hook. |
| fogclaw | OpenClaw plugin for PII detection and redaction. |
| datafog | Runtime policy engine and policy gate: scan/decide/transform APIs with auditable decision receipts. |
| datafog-mcp | MCP privacy proxy — govern tool responses before they reach model context. (coming soon) |
DataFog is a seatbelt against accidental leakage — the pasted stack trace
that ends up in a committed test fixture, the customer record that drifts
into a GitHub issue. It is not armor against deliberate exfiltration or
prompt injection, and inbound PII you hand an agent directly should be
redacted before sharing (datafog CLI does that too). We document the
limitations as carefully as the features.
datafog.ai · PyPI · Discord · Changelog