PII and secret redaction for Python AI agents.

Local, dependency-free middleware for LLM prompts, tools, MCP, memory, logs, and traces.

One config. A real processed file.

python -m pip install pyveil==0.3.0
python -m pyveil init --example
python -m pyveil run

# Use --input /path/to/request.json
# instead of --example for your own file.
pyveil.json       executable settings
.pyveil.key       private local key

.pyveil-runs/<run-id>/
  redacted.json   actual processed data
  receipt.json    provenance, hashes, counts

The tutorial input is synthetic; processing uses the real installed redactor. No provider is called. Run twice for identical output bytes in separate directories. Install, run, reproduce, and handle failures.

Recipes people actually need

Guides for the question you are solving

Demo

The package keeps core behavior local, deterministic, and small: no network calls, no unmasking API, no third-party core dependency.

pyveil redacts synthetic sensitive context before agent boundaries