據 AlphaMoat 統計,截至 2026-09,ClawGuard 累計下載 3,558 次、獲 0 個星標,在全部 5,078 個 AI 技能中排名第 3,077 位,在「AI 智慧體」分類(969 個)中排名第 624 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 113 | 3428 | - | - |
| SkillHub ↗ | 110 | 3558 | - | — |
各平台的計數口徑不同,統計時間不一致。
ClawGuard 在工具執行前評估呼叫,可記錄呼叫上下文,並在啟用相應配置時攔截高風險操作。評估上下文會傳送給已配置的 LLM;第三方外掛可能廣泛接觸工具呼叫內容,應先審查軟體包版本,並謹慎配置日誌、指標和模型提供方,避擴音示詞或引數包含秘密。不要把閘道器令牌列印到共享日誌或終端。
資料釋出於 2026-10-29
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 3558 | — | - |
| 2026-08 | 3335 | +4.0% | - |
| 2026-07 | 3206 | +9.3% | - |
| 2026-06 | 2932 | +4.6% | - |
| 2026-05 | 2802 | — | - |
| 2026-03 | 2241 | — | - |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
---
name: clawguard
description: Install and configure the ClawGuard security plugin - an LLM-as-a-Judge guardrail that detects and blocks risky tool calls
metadata: {"openclaw":{"emoji":"🛡️","homepage":"https://github.com/capsulesecurity/clawguard"}}
---
# ClawGuard Plugin Installation Guide
ClawGuard is a security plugin that uses an LLM-as-a-Judge to evaluate tool calls before execution, detecting and optionally blocking risky operations.
## Prerequisites Before installing ClawGuard, ensure the gateway's chat completions endpoint is enabled: ```bash openclaw config set gateway.http.endpoints.chatCompletions.enabled true ``` ## Installation Install the plugin from npm: ```bash openclaw plugins install @capsulesecurity/clawguard ``` After installation, restart the gateway to load the plugin. ## Docker Installation If running OpenClaw in Docker: ```bash # Install the plugin docker compose run --rm openclaw-cli plugins install @capsulesecurity/clawguard # Restart gateway with force-recreate to reload env vars docker compose up -d --force-recreate openclaw-gateway ``` **Important:** Always use `--force-recreate` when restarting. Plain `docker compose restart` does NOT reload environment variables. ## Verify Installation Check the gateway logs for the initialization message: ``` [clawguard] Initialized (logging: true, security: true, block: true, metrics: enabled) ``` ## Configuration Configure ClawGuard via `openclaw config set plugins.clawguard.<option> <value>`: | Option | Default | Description | |--------|---------|-------------| | enabled | true | Enable/disable the plugin | | logToolCalls | true | Log tool call JSON to gateway logs | | securityCheckEnabled | true | Run LLM security evaluation | | blockOnRisk | true | Block high/critical risk tool calls | | maxContextWords | 2000 | Session context word limit for evaluation | | timeoutMs | 15000 | Security check timeout in milliseconds | | gatewayHost | 127.0.0.1 | Gateway host for LLM calls | | gatewayPort | 18789 | Gateway port for LLM calls | | metricsEnabled | true | Enable anonymous usage metrics | ### Example Configuration ```bash # Disable blocking (log-only mode) openclaw config set plugins.clawguard.blockOnRisk false # Increase timeout for slower models openclaw config set plugins.clawguard.timeoutMs 30000 # Disable metrics collection openclaw config set plugins.clawguard.metricsEnabled false ``` ## Gateway Authentication ClawGuard calls the gateway's `/v1/chat/completions` endpoint internally. If you see 401 Unauthorized errors: 1. Check the gateway token in your environment matches the config: ```bash # Check env var printenv OPENCLAW_GATEWAY_TOKEN # Check config token cat ~/.openclaw/openclaw.json | grep -A2 '"token"' ``` 2. If tokens don't match, update your environment and restart the gateway. For Docker, ensure `.env` contains the correct `OPENCLAW_GATEWAY_TOKEN` and use `--force-recreate` when restarting. ## Troubleshooting ### 405 Method Not Allowed The chat completions endpoint is not enabled. Run: ```bash openclaw config set gateway.http.endpoints.chatCompletions.enabled true ``` ### 401 Unauthorized Token mismatch between environment and config. See Gateway Authentication section above. ### Plugin Not Loading 1. Check `openclaw plugins list` shows clawguard 2. Restart the gateway 3. Check gateway logs for errors ## How It Works ClawGuard registers a `before_tool_call` hook that: 1. Logs tool call details (if `logToolCalls` is enabled) 2. Sends tool context to an LLM for security evaluation 3. Returns a risk assessment (none/low/medium/high/critical) 4. Blocks execution if risk is high/critical (if `blockOnRisk` is enabled) The security evaluation uses your configured LLM provider, so it works with any model you have set up in OpenClaw. ## Links - GitHub: https://github.com/capsulesecurity/clawguard - npm: https://www.npmjs.com/package/@capsulesecurity/clawguard
將開發過程中的經驗、錯誤與修正記錄為 Markdown 檔案,供日後重用並提升為工作區記憶。
用自然語言描述需求,在本機與遠端技能市場尋找技能並取得推薦。
給 AI agent 用的瀏覽器自動化命令列技能。
將使用者明確糾正與自我檢視整理成分層記憶,並依使用情況升級或封存。
在安裝第三方技能之前,按清單審查來源、許可權與危險模式的技能。
將代理記憶與跨技能狀態整理成具型別與約束的知識圖譜。
規劃 AI 代理主動跟進、工作記憶與回顧流程的工作區設定指南。
指導如何建立與更新有效 Claude 技能的寫作指南。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。