Prompt injection detection and security scanning for OpenClaw agents. Installs the ai-sentinel plugin via OpenClaw CLI, configures plugin settings, and offer...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install ai-sentinel或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install ai-sentinel⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/ai-sentinel/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: ai-sentinel description: "Prompt injection detection and security scanning for OpenClaw agents. Installs the ai-sentinel plugin via OpenClaw CLI, configures plugin settings, and offers local (Community) or remote (Pro) classification with dashboard reporting. All configuration changes require explicit user confirmation." user-invocable: true homepage: https://zetro.ai disable-model-invocation: true optional-env: - name: AI_SENTINEL_API_KEY description: "Only needed for Pro tier remote classification and dashboard. Not required for local/Community mode." requires-config: - openclaw.config.ts installs-packages: - ai-sentinel writes-files: - .env - .gitignore external-services: - url: https://api.zetro.ai description: "Pro tier only — scan results or message content sent for dashboard reporting and analytics. Not used in Community/local mode." metadata: {"openclaw":{"emoji":"🛡️","os":["darwin","linux","win32"],"install":{"node":"ai-sentinel"}}} ---
> Protect your OpenClaw gateway from prompt injection attacks across messages, tool calls, and tool results. The plugin hooks into OpenClaw lifecycle events and scans content using built-in heuristic pattern matching. Supports local-only detection (free) and remote API reporting with a real-time dashboard (Pro).
https://api.zetro.ai for dashboard reporting and analytics. Review the privacy policy and plugin source before enabling Pro.This skill will ask for explicit user confirmation (via AskUserQuestion) before every configuration change, including: modifying plugin settings, creating .env, and updating .gitignore. No files are written without user approval.
---
You are an AI Sentinel integration specialist. Walk the user through setting up AI Sentinel in their OpenClaw project step-by-step. Be friendly, thorough, and use AskUserQuestion at decision points. Do not skip steps.
IMPORTANT: You MUST use AskUserQuestion to get explicit user confirmation before writing or modifying any file. Never write files autonomously.
Before starting, verify:
openclaw --version to check)openclaw.config.ts (or .js) file at its root, indicating an active OpenClaw projectUse Glob to confirm openclaw.config.* exists. If it doesn't, inform the user this skill requires an OpenClaw project and stop.
---
Install AI Sentinel using the OpenClaw plugin system:
openclaw plugins install ai-sentinel
This downloads the plugin from npm and registers it with the OpenClaw gateway. The plugin's compiled extension loads from dist/index.js inside the installed package.
Confirm the install succeeded before proceeding. If the install reports a config validation error referencing ai-sentinel, the user may need to temporarily remove any existing ai-sentinel config entries from their OpenClaw configuration, run the install, and then re-add the config (see Troubleshooting below).
---
Ask the user which tier they want to use:
Community (Free)
Pro
Use AskUserQuestion with these two options. Store their choice as tier (community or pro).
If the user selects Pro, immediately display this notice and ask for explicit consent before proceeding:
> Data transmission notice: Pro tier sends scan results (and optionally message content) to https://api.zetro.ai for dashboard reporting. No data is sent in Community mode. Do you consent to sending scan data to this external service?
Use AskUserQuestion with options: "Yes, I consent" / "No, switch to Community instead". If they decline, set tier to community and continue.
---
Ask the user two questions:
Question 1: What detection mode should AI Sentinel use?
monitor - Log detections but allow all messages through (recommended to start)enforce - Block messages that exceed the threat confidence thresholdQuestion 2: What confidence threshold should trigger detection?
0.7 — Default. Good balance between security and false positives (recommended)0.5 — More strict. May produce more false positives on benign content0.85 — More lenient. Only flags high-confidence threatsStore these as mode and threatThreshold.
---
Skip this step if the user chose Community tier.
Ask the user which reporting mode to use:
Telemetry (recommended)
Cloud-scan
Use AskUserQuestion with these two options. Store the choice as reportMode (telemetry or cloud-scan).
If they chose telemetry, ask whether to include raw message content in telemetry events:
> Including raw input text enables richer threat analysis in the dashboard, but means message content is transmitted to the API. Enable raw input in telemetry?
Store as includeRawInput (true/false, default false).
---
Based on the user's choices, generate the plugin configuration. Read the user's OpenClaw configuration file (typically ~/.openclaw/openclaw.json) to understand its current structure.
Plugin settings live under plugins.entries.ai-sentinel in the OpenClaw configuration. The openclaw plugins install command creates the plugins.installs entry automatically — you only need to add the plugins.entries section with enabled and config.
Here is what a configured OpenClaw plugins section looks like with AI Sentinel alongside another plugin:
{
"plugins": {
"entries": {
"slack": {
"enabled": true
},
"ai-sentinel": {
"enabled": true,
"config": {
"mode": "monitor",
"logLevel": "info",
"threatThreshold": 0.7,
"allowlist": [],
"reportMode": "telemetry",
"apiKey": "sk_live_your_api_key_here"
}
}
},
"installs": {
"ai-sentinel": {
"source": "npm",
"spec": "[email protected]",
"installPath": "~/.openclaw/extensions/ai-sentinel",
"version": "0.1.10",
"installedAt": "2026-02-16T00:00:00.000Z"
}
}
}
}
The installs section is managed by the openclaw plugins install command — do not edit it manually. Only the entries section needs to be configured.
For Community tier, the config object under plugins.entries.ai-sentinel should contain:
{
"enabled": true,
"config": {
"mode": "{{mode}}",
"logLevel": "info",
"threatThreshold": {{threatThreshold}}
}
}
For Pro tier, add the API key and reporting settings:
...
安装 Openclaw Sentinel 后,可以对 AI 说这些话来触发它
Help me get started with Openclaw Sentinel
Explains what Openclaw Sentinel does, walks through the setup, and runs a quick demo based on your current project
Use Openclaw Sentinel to prompt injection detection and security scanning for OpenClaw agents
Invokes Openclaw Sentinel with the right parameters and returns the result directly in the conversation
What can I do with Openclaw Sentinel in my ai agent & automation workflow?
Lists the top use cases for Openclaw Sentinel, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/ai-sentinel/ 目录(个人级,所有项目可用),或 .claude/skills/ai-sentinel/(项目级)。重启 AI 客户端后,用 /ai-sentinel 主动调用,或让 AI 根据上下文自动发现并使用。
Openclaw Sentinel 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Openclaw Sentinel 可免费安装使用。请查阅仓库了解许可证信息。
Prompt injection detection and security scanning for OpenClaw agents. Installs the ai-sentinel plugin via OpenClaw CLI, configures plugin settings, and offer...
Openclaw Sentinel 属于「AI Agent & Automation」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my ai agent & automation tasks using Openclaw Sentinel
Identifies repetitive steps in your workflow and sets up Openclaw Sentinel to handle them automatically