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.
```
~/.openclaw/extensions/content-scrubber/
├── index.ts
├── openclaw.plugin.json
└── package.json
```
openclaw.json plugins config:```json
{
"plugins": {
"entries": {
"content-scrubber": {
"enabled": true,
"config": {
"dryRun": false,
"allowedRecipients": []
}
}
}
}
}
```
| Option | Type | Default | Description |
|---|---|---|---|
| -------- | ------ | --------- | ------------- |
dryRun | boolean | false | Log what would be scrubbed without actually redacting |
allowedRecipients | string[] | [] | 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]
共 1 个版本