OpenClaw Policy Examples¶
Example policies for using Preloop as a safety layer with OpenClaw.
For setup instructions, see the OpenClaw Integration Guide.
Policies¶
| Policy | File | Purpose |
|---|---|---|
| Shell Command Safety | shell-approval.yaml | Require approval for destructive shell commands |
| Sensitive File Protection | file-protection.yaml | Protect writes to sensitive paths |
| Browser Safety | browser-safety.yaml | Approval for browser actions on sensitive sites |
| Integration Guide | integration-guide.yaml | Comprehensive example with all tool types |
Apply from a full repository checkout¶
When you clone the Preloop monorepo, the same files also live at
examples/policies/openclaw/ from the repository root:
preloop policy apply examples/policies/openclaw/shell-approval.yaml
preloop policy apply examples/policies/openclaw/
preloop policy diff examples/policies/openclaw/shell-approval.yaml
Customize¶
Each policy uses CEL expressions. Edit
condition.expression fields to match your security requirements and replace
placeholder approvers with your users and teams.