Install
openclaw skills install privacy-maskMask, redact, anonymize and censor sensitive information (PII) in screenshots and images — phone numbers, emails, IDs, API keys, crypto wallets, credit cards, passwords, and more. Uses OCR (Tesseract + RapidOCR) with 47 regex rules and optional NER (GLiNER) to detect private data and applies blur/fill redaction overlays. Supports GDPR and compliance workflows, secret detection, and data loss prevention (DLP). All processing runs 100% locally and offline — no data leaves your machine.
openclaw skills install privacy-maskDetect and mask sensitive information in images locally before they leave your machine.
This skill requires the privacy-mask CLI to be pre-installed on the system.
If it is not available, inform the user that they need to install it first:
pip install privacy-maskbrew install tesseract (macOS) or apt install tesseract-ocr (Linux)privacy-mask --versionpip install privacy-mask[ner].png, .jpg, .jpeg, .bmp, .tiff) that may contain private dataprivacy-mask mask <path> --dry-run first to check for PIIMask an image:
privacy-mask mask /path/to/screenshot.png
privacy-mask mask /path/to/screenshot.png --in-place
privacy-mask mask /path/to/screenshot.png --dry-run # detect only, no masking
privacy-mask mask /path/to/screenshot.png --detection-engine regex # regex only, skip NER
privacy-mask mask /path/to/screenshot.png --config /path/to/custom-config.json
Output is JSON:
{
"status": "success",
"detections": [{"label": "PHONE_CN", "text": "***", "bbox": [10, 20, 100, 30]}],
"summary": "Masked 1 regions: 1 PHONE_CN"
}
~/Desktop/error-screenshot.pngprivacy-mask mask ~/Desktop/error-screenshot.png --dry-runprivacy-mask mask ~/Desktop/error-screenshot.png~/Desktop/error-screenshot_masked.png--in-place is explicitly requested--in-place by default — preserve the original unless the user asks otherwise--dry-run finds PII, the image must be masked before use--configconfig.json or pass --config for custom rules