Install
openclaw skills install clawguard1ClawGuard governance layer that must run before any SQL, file-system, or API write. Use evaluate_action(action_type, justification, risk_level) to log/authorize actions and get_audit_report(limit) to review the SQLite-based audit ledger. Blocks risk_level >= 4 automatically.
openclaw skills install clawguard1ClawGuard enforces a universal audit and approval layer for any potentially destructive or high-impact change. It persists all intents to clawguard.db and automatically blocks actions when risk_level >= 4.
evaluate_action(action_type, justification, risk_level)
audit_ledger table and returns { allowed: boolean, message: string }.>= 4 is blocked automatically—handle accordingly.get_audit_report(limit)
limit rows (default 5) from audit_ledger, ordered by newest first.action_type, craft a concise justification, and score risk_level.evaluate_action BEFORE executing any SQL statement, file mutation, or write-capable API request. (See GUIDANCE.md.)allowed is false, stop immediately and surface the block reason.get_audit_report(limit) when preparing reports or debugging governance outcomes.audit_ledger schema: (id INTEGER PK, action_type TEXT, justification TEXT, risk_level INTEGER, status TEXT, ts DATETIME DEFAULT CURRENT_TIMESTAMP).