lidan-capsule

ClawGuard

AIエージェントv0.1.5
作者:lidan-capsule更新日 2026-05-17clawguard@clawhub_lidan-capsule/clawguard
エージェントフレームワークツール呼び出し

AlphaMoatによると、2026-09時点でClawGuardのダウンロード数は3,558、スター数は0で、AIスキル全体5,078件中3,077位、AIエージェントでは969件中624位です。

インストール数
113
ダウンロード数
3558
スター数
-
総合順位
#3,077
全体の上位 61% · AIエージェントの上位 65%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗1133428--
SkillHub ↗1103558-—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

実行前に呼び出しを評価し、呼び出しコンテキストを記録したり、設定が有効な場合に高リスク操作をブロックしたりできます。評価コンテキストは設定済みのLLMに送信されます。サードパーティ製プラグインはツール呼び出し内容を広く参照できる可能性があるため、パッケージの版を確認し、秘密情報が含まれる可能性がある場合はログ、メトリクス、モデル提供元を慎重に設定してください。共有ログや端末にゲートウェイトークンを出力しないでください。

資料公開日 2026-10-29

できること

  • OpenClawゲートウェイに導入する前にツール呼び出し保護の設定を確認する
  • リスク評価、ログ、ブロックの設定を調べる
  • プラグイン初期化や認証設定を調査する

使う場面

  • ツール呼び出し前のリスク評価と任意のブロックを追加するとき
  • プラグイン設定が呼び出し内容や認証情報へ与える影響を確認するとき

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

ClawGuardのデータフロー、ログ、ブロック設定だけを説明してください。プラグインの導入やゲートウェイ設定の変更はしないでください。
この設定で秘密情報やトークンが記録される可能性を確認し、認証情報を表示しない検証方法を提案してください。

月次の推移

ダウンロード数3558
2136290036632026-03 · ダウンロード数 22412026-05 · ダウンロード数 28022026-06 · ダウンロード数 29322026-07 · ダウンロード数 32062026-08 · ダウンロード数 33352026-09 · ダウンロード数 355826-0326-09
スター数-
0112026-03 · スター数 -2026-05 · スター数 -2026-06 · スター数 -2026-07 · スター数 -2026-08 · スター数 -2026-09 · スター数 -26-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-093558—-
2026-083335+4.0%-
2026-073206+9.3%-
2026-062932+4.6%-
2026-052802—-
2026-032241—-

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

3.9 KB・ClawHub v0.1.5
---
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.
すべて表示(全 128 行)
## 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

AIエージェントの人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。