An OpenClaw extension plugin that intercepts outgoing messages and redacts private infrastructure details before delivery.
The plugin registers as a message interceptor. Before any message leaves OpenClaw (Discord, Telegram, Signal, etc.), it runs through regex-based scrubbing rules that replace private details with safe placeholders like [redacted-ip], [redacted-service], [redacted-target].
Rules are deterministic (regex, not LLM), so they're fast, auditable, and never miss edge cases that an LLM scrubber would.
Copy the plugin files to your OpenClaw extensions directory: text
~/.openclaw/extensions/content-scrubber/
├── index.ts
├── openclaw.plugin.json
└── package.json
Add to your openclaw.json plugins config:
json
{
"plugins": {
"entries": {
"content-scrubber": {
"enabled": true,
"config": {
"dryRun": false,
"allowedRecipients": []
}
}
}
}
}
Restart OpenClaw.
OptionTypeDefaultDescriptiondryRunbooleanfalseLog what would be scrubbed without actually redactingallowedRecipientsstring[][]Chat IDs where scrubbing is skipped (e.g., private DMs with yourself)
Before scrubbing:
SSH into admin@10.0.0.50 and check the service on localhost:8096
After scrubbing:
SSH into [redacted-target] and check the service on [redacted-service]