Install
openclaw skills install privacy-protectorRuns PII anonymization, local de-anonymization, and deterministic local detector checks for text and supported files. Use for redact/restore flows, file-firs...
openclaw skills install privacy-protectorUse this skill when you need to anonymize text/files, restore placeholders with a saved map, or tune the local detector.
Maintainer-only validation assets are excluded from ClawHub uploads.
scripts/anonymize.py)scripts/deanonymize.py)scripts/detect_local.py)modeio-middleware)security)Run these commands from inside the privacy-protector folder.
python3requests for API-backed dynamic, strict, and crossborderpython-docx for .docxPyMuPDF for .pdfANONYMIZE_API_URL for non-lite levelsMODEIO_REDACT_MAP_DIR for local map storagepython3 scripts/anonymize.py \
--input "Email: alice@example.com, Phone: 415-555-1234" \
--level lite \
--json
python3 scripts/anonymize.py \
--input ./incident.docx \
--level lite \
--json
python3 scripts/deanonymize.py \
--input "Email: [EMAIL_1]" \
--map ~/.modeio/redact/maps/<map-id>.json \
--json
python3 scripts/detect_local.py \
--input "Project codename Phoenix is approved. Reach support@example.com." \
--allowlist-file examples/detect-local/allowlist.json \
--blocklist-file examples/detect-local/blocklist.json \
--thresholds-file examples/detect-local/thresholds.json \
--json
lite runs fully local. dynamic, strict, and crossborder call the backend APIcrossborder, pass both --sender-code and --recipient-code.txt, .md, .markdown, .csv, .tsv, .json, .jsonl, .yaml, .yml, .xml, .html, .htm, .rst, .log, .docx, .pdf~/.modeio/redact/maps; use MODEIO_REDACT_MAP_DIR to override that location.map.json references when needed.pdf supports anonymization only; de-anonymization is not supported--json when you want the stable machine-readable envelope and file workflow metadataARCHITECTURE.md for package boundariesreferences/cli-contracts.md for flags and output contractsreferences/file-workflows.md for map linkage and assurance behaviorreferences/local-detector.md for profiles and shipped config examplesexamples/detect-local/ for ready-to-edit tuning files