Everyone else secures the model. We secure the agent.
Sentinel Shield is a lightweight security layer for OpenClaw agents. It monitors what your agent does — not just what it says — and alerts you before damage is done.
bash
node {baseDir}/scripts/sentinel.js status
Returns current health, active session stats, and recent alert summary.
bash
node {baseDir}/scripts/sentinel.js audit
Full audit: file integrity, rate limit state, injection scanner status, anomaly log.
bash
node {baseDir}/scripts/sentinel.js alerts [--hours 24]
Shows alerts from the last N hours (default: 24).
bash
node {baseDir}/scripts/sentinel.js ratelimit
Shows current call counts per window for all monitored tools.
bash
node {baseDir}/scripts/sentinel.js kill
Emergency stop. Terminates active rate counters, logs kill event, sends Telegram alert.
bash
node {baseDir}/scripts/sentinel.js scan --text "some content to check"
Manually scan text for injection signatures.
bash
node {baseDir}/scripts/sentinel.js init
Establishes file integrity baselines for critical OpenClaw files.
Edit {baseDir}/config/shield.json to customize:
json
{
"rateLimit": {
"maxCalls": 50,
"windowSeconds": 60,
"alertThreshold": 40
},
"telegram": {
"enabled": true,
"botToken": "YOUR_BOT_TOKEN",
"chatId": "YOUR_CHAT_ID"
},
"monitoredFiles": [
"~/.openclaw/openclaw.json",
"~/.openclaw/credentials",
"~/.ssh/authorized_keys",
"/etc/passwd"
],
"injectionScanning": true,
"alertLevel": "medium"
}
https://api.telegram.org/bot<TOKEN>/getUpdates{baseDir}/config/shield.jsonWhen you see a suspicious message or want to verify your session is clean:
User: "Run a security check"
Action: Run node {baseDir}/scripts/sentinel.js status
User: "Show me recent security alerts"
Action: Run node {baseDir}/scripts/sentinel.js alerts
User: "Scan this text for injection: [text]"
Action: Run node {baseDir}/scripts/sentinel.js scan --text "[text]"
User: "Emergency stop sentinel"
Action: Run node {baseDir}/scripts/sentinel.js kill
LevelTriggerActionINFONormal activity loggedWrite to log onlyMEDIUMRate limit >80%Log + TelegramHIGHRate limit hit, injection detectedLog + Telegram + kill optionCRITICALFile integrity violationLog + Telegram + alert all channels
~/.openclaw/openclaw.json — Gateway auth token (THE critical file)~/.openclaw/credentials — Stored credentials~/.ssh/authorized_keys — SSH access control/etc/passwd — System user accounts/etc/sudoers — Privilege escalation paths