An OpenClaw extension plugin that intercepts outgoing messages and redacts private infrastructure details before delivery.
7w4.net提供免費和付費技能下載。
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:
~/.openclaw/extensions/content-scrubber/
├── index.ts
├── openclaw.plugin.json
└── package.json
Add to your openclaw.json plugins config:
{
"plugins": {
"entries": {
"content-scrubber": {
"enabled": true,
"config": {
"dryRun": false,
"allowedRecipients": []
}
}
}
}
}
Restart OpenClaw.
| 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]
這個外掛質量不錯,能有效過濾訊息中的內部 IP、埠等敏感資訊,防止意外洩露。它執行速度快、配置簡單,日誌清晰好排查。主要不足是規則是固定的,無法自定義新增新的過濾模式,靈活性受限。總體而言,它解決了實際問題,適合有隱私保護需求的場景使用。