Installing skills or plugins? Add an install-policy gate.
OpenClaw 2026.6.5 added `security.installPolicy`, a local command hook that can approve or block skill and plugin installs after source material is staged and before install/update continues. Use it when ClawHub, uploaded archives, Git/local skills, dependency installers, or plugins can change your agent surface. The operator rule is simple: stage first, inspect locally, fail closed if the policy command is missing, then smoke-test before trusting the new tool path.
In simple words: Make a safe copy if the step could change your setup, try the smallest check, then confirm OpenClaw is back to normal before doing more. The source link and commands stay below for people who want the technical detail.
{
"security": {
"installPolicy": {
"enabled": true,
"exec": {
"source": "exec",
"command": "/usr/local/bin/openclaw-install-policy",
"args": ["--json"],
"timeoutMs": 10000,
"noOutputTimeoutMs": 10000,
"maxOutputBytes": 1048576,
"passEnv": ["OPENCLAW_STATE_DIR", "PATH"],
"trustedDirs": ["/usr/local/bin"]
}
}
}
}
- Install source/type staged by OpenClaw:
- Skill/plugin name and origin:
- Policy command path/version:
- Decision: allow / deny / unknown-deny
- Reason:
- Allowed smoke test completed:
- Rollback or remove command if smoke fails:
Source: OpenClaw v2026.6.5 release + install-policy docs · link