# Send OpenClaw Guardian to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "openclaw-guardian",
    "name": "OpenClaw Guardian",
    "source": "tencent",
    "type": "skill",
    "category": "安全合规",
    "sourceUrl": "https://clawhub.ai/fatcatMaoFei/openclaw-guardian",
    "canonicalUrl": "https://clawhub.ai/fatcatMaoFei/openclaw-guardian",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/openclaw-guardian",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-guardian",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/README.md",
      "scripts/audit-log.ts",
      "scripts/blacklist.ts",
      "scripts/default-policies.json",
      "scripts/index.ts"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/openclaw-guardian"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/openclaw-guardian",
    "downloadUrl": "https://openagent3.xyz/downloads/openclaw-guardian",
    "agentUrl": "https://openagent3.xyz/skills/openclaw-guardian/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openclaw-guardian/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openclaw-guardian/agent.md"
  }
}
```
## Documentation

### OpenClaw Guardian

The missing safety layer for AI agents.

### Why?

OpenClaw gives agents direct access to shell, files, email, browser, and more.
99% of that is harmless. Guardian catches the 1% that isn't — without slowing
down the rest.

### How It Works

Tool Call → Blacklist Matcher (regex rules, 0ms)
              ↓
   No match     → Pass instantly (99% of calls)
   Warning hit  → 1 LLM vote ("did the user ask for this?")
   Critical hit → 3 LLM votes (all must confirm user intent)

### Two Blacklist Levels

LevelLLM VotesLatencyExamplesNo match0~0msReading files, git, normal opsWarning1~1-2srm -rf /tmp/cache, chmod 777, sudo aptCritical3 (unanimous)~2-4srm -rf ~/, mkfs, dd of=/dev/, shutdown

### What Gets Checked

Only three tool types are inspected:

exec → command string matched against exec blacklist
write / edit → file path canonicalized and matched against path blacklist
Everything else passes through instantly

### LLM Intent Verification

When a blacklist rule matches, Guardian asks a lightweight LLM: "Did the user
explicitly request this?" It reads recent conversation context to prevent
false positives.

Warning: 1 LLM call. Confirmed → proceed.
Critical: 3 parallel LLM calls. All 3 must confirm. Any "no" → block.

Auto-discovers a cheap/fast model from your existing OpenClaw provider config
(prefers Haiku). No separate API key needed.

### LLM Fallback

Critical + LLM down → blocked (fail-safe)
Warning + LLM down → asks user for manual confirmation

### Critical (exec)

rm -rf on system paths (excludes /tmp/ and workspace)
mkfs, dd to block devices, redirects to /dev/sd*
Writes to /etc/passwd, /etc/shadow, /etc/sudoers
shutdown, reboot, disable SSH
Bypass: eval, absolute-path rm, interpreter-based (python -c, node -e)
Pipe attacks: curl | sh, wget | bash, base64 -d | sh
Chain attacks: download + chmod +x + execute

### Warning (exec)

rm -rf on safe paths, sudo, chmod 777, chown root
Package install/remove, service management
Crontab mods, SSH/SCP, Docker ops, kill/killall

### Path Rules (write/edit)

Critical: system auth files, SSH keys, systemd units
Warning: dotfiles, /etc/ configs, .env files, authorized_keys

### Audit Log

Every blacklist hit logged to ~/.openclaw/guardian-audit.jsonl with SHA-256
hash chain — tamper-evident, each entry covers full content + previous hash.

### Installation

openclaw plugins install openclaw-guardian

Or manually:

cd ~/.openclaw/workspace
git clone https://github.com/fatcatMaoFei/openclaw-guardian.git

### Token Cost

Scenario% of OpsExtra CostNo match~99%0Warning~0.5-1%~500 tokensCritical<0.5%~1500 tokens

Prefers cheap models (Haiku, GPT-4o-mini, Gemini Flash).

### File Structure

extensions/guardian/
├── index.ts                # Entry — registers before_tool_call hook
├── src/
│   ├── blacklist.ts        # Two-tier regex rules (critical/warning)
│   ├── llm-voter.ts        # LLM intent verification
│   └── audit-log.ts        # SHA-256 hash-chain audit logger
├── test/
│   └── blacklist.test.ts   # Blacklist rule tests
├── openclaw.plugin.json    # Plugin manifest
└── default-policies.json   # Enable/disable toggle

### License

MIT
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: fatcatMaoFei
- Version: 1.0.1
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-23T16:43:11.935Z
- Expires at: 2026-04-30T16:43:11.935Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/openclaw-guardian)
- [Send to Agent page](https://openagent3.xyz/skills/openclaw-guardian/agent)
- [JSON manifest](https://openagent3.xyz/skills/openclaw-guardian/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/openclaw-guardian/agent.md)
- [Download page](https://openagent3.xyz/downloads/openclaw-guardian)