Install
openclaw skills install openclaw-pii-anonymizerPrivacy pipeline for OpenClaw - Hybrid regex + Qwen2.5 LLM to scrub PII (names/emails/SSNs/phones/wallets/IPs/paths) before external AI processing. Script works perfectly; auto-hook interception needs debugging.
openclaw skills install openclaw-pii-anonymizerStatus: ⚠️ Partially Working
Hybrid regex + Qwen2.5:3b LLM to scrub PII before external AI calls.
# 1. Install Ollama model
ollama pull qwen2.5:3b
# 2. Test the script
cd ~/.openclaw/workspace/skills/openclaw-pii-anonymizer
bash privacy-anonymize-v2.sh "My name is John Doe, SSN 123-45-6789"
# Output: My name is [NAME], SSN [SSN]
Replaces PII with tokens:
[NAME][SSN][EMAIL][PHONE][WALLET][IP][PATH]Two-layer approach:
# In scripts/workflows
ANONYMIZED=$(bash privacy-anonymize-v2.sh "$USER_INPUT")
echo "$ANONYMIZED" | external-api-call
Hook installed at ~/.openclaw/workspace/hooks/pii-shield/ but doesn't fire on messages yet. Debugging needed.
http://localhost:11434qwen2.5:3b (1.9GB) - Better instruction-following than phi3:minibash, curl, jq, sedTested alternatives:
llama3.2:3b (similar performance)message:preprocessed event doesn't fire (needs investigation)Consider NemoClaw for production deployments:
This skill: Development/testing, manual workflows
NemoClaw: Production with real customer PII
# Test 1: Structured PII
bash privacy-anonymize-v2.sh "SSN 123-45-6789, email test@example.com"
# Expected: SSN [SSN], email [EMAIL]
# Test 2: Names
bash privacy-anonymize-v2.sh "Hi, I'm Alice Johnson"
# Expected: Hi, I'm [NAME]
# Test 3: Complex
bash privacy-anonymize-v2.sh "John Smith (john@test.com), SSN 987-65-4321, wallet 0x1234567890abcdef1234567890abcdef12345678"
# Expected: [NAME] ([EMAIL]), SSN [SSN], wallet [WALLET]
export OLLAMA_URL=http://localhost:11434
export OLLAMA_MODEL=qwen2.5:3b
v2.0 (March 17, 2026)
v1.0.2 (March 1, 2026)
License: MIT
Author: Solmas (Seth Blakely)
Homepage: https://github.com/solmas/openclaw-pii-anonymizer