據 AlphaMoat 統計,截至 2026-09,Clawshell 累計下載 3,749 次、獲 7 個星標,在全部 5,078 個 AI 技能中排名第 2,842 位,在「運維安全」分類(264 個)中排名第 175 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 123 | 3656 | 7 | 1 |
| SkillHub ↗ | 199 | 3749 | 7 | — |
各平台的計數口徑不同,統計時間不一致。
主文說明 ClawShell 會分析命令風險,對高風險操作要求透過推送通知明確批准,並可自動阻止標記為 critical 的命令。
資料釋出於 2026-10-27
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 3749 | — | 7 |
| 2026-08 | 3565 | +2.6% | 7 |
| 2026-07 | 3474 | +6.2% | 7 |
| 2026-06 | 3272 | +4.1% | 7 |
| 2026-05 | 3143 | — | 7 |
| 2026-03 | 2731 | — | 7 |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
---
name: clawshell
description: Human-in-the-loop security layer. Intercepts high-risk commands and requires push notification approval.
version: 0.1.0
metadata:
openclaw:
requires:
bins: ["node"]
env: ["CLAWSHELL_PUSHOVER_USER", "CLAWSHELL_PUSHOVER_TOKEN"]
primaryEnv: "CLAWSHELL_PUSHOVER_USER"tags: [security, approval, sandbox]
---
# ClawShell
Human-in-the-loop security layer for OpenClaw. ClawShell intercepts shell commands before execution, analyzes their risk level, and requires your explicit approval (via push notification) for dangerous operations.
## How it works
1. The agent calls `clawshell_bash` instead of `bash`
2. ClawShell analyzes the command against built-in and configurable risk rules
3. Based on risk level:
- **Critical** (e.g. `rm -rf /`, fork bombs) — automatically blocked
- **High** (e.g. `rm -rf`, `curl` to external URLs, credential access) — sends a push notification and waits for your approval
- **Medium** (e.g. `npm install`, `git push`) — logged and allowed
- **Low** (e.g. `ls`, `cat`, `git status`) — allowed
4. All decisions are logged to `logs/clawshell.jsonl`
## Tools
### clawshell_bash
Secure replacement for `bash`. Analyzes command risk and executes only if safe or approved.
**Parameters:**
- `command` (string, required) — The shell command to execute
- `workingDir` (string, optional) — Working directory (defaults to cwd)
**Returns:** `{ exitCode, stdout, stderr }`
High-risk commands will block until you approve or reject via push notification. Critical commands are rejected immediately.
### clawshell_status
Returns current ClawShell state: pending approval requests and recent decisions.
**Parameters:** none
### clawshell_logs
Returns recent log entries for audit and debugging.
**Parameters:**
- `count` (number, optional) — Number of entries to return (default: 20)
## Setup
### 1. Install dependencies
```bash
cd /app/workspace/skills/clawshell
npm install
```
### 2. Configure Pushover notifications
Create a Pushover application at https://pushover.net/apps/build and add your keys to `.env`:
```env
CLAWSHELL_PUSHOVER_USER=your-user-key
CLAWSHELL_PUSHOVER_TOKEN=your-app-token
```
Alternatively, configure Telegram instead:
```env
CLAWSHELL_TELEGRAM_BOT_TOKEN=your-bot-token
CLAWSHELL_TELEGRAM_CHAT_ID=your-chat-id
```
### 3. Add to TOOLS.md
Add the following to your OpenClaw `TOOLS.md` so the agent uses ClawShell for shell commands:
```markdown
## Shell Access
Use `clawshell_bash` for ALL shell command execution. Do not use `bash` directly.
ClawShell will analyze commands for risk and require human approval for dangerous operations.
Available tools:
- `clawshell_bash(command, workingDir)` — Execute a shell command with risk analysis
- `clawshell_status()` — Check pending approvals and recent decisions
- `clawshell_logs(count)` — View recent audit log entries
```
## Configuration
ClawShell reads configuration from environment variables (`CLAWSHELL_*`) with fallback to `config.yaml`.
| Variable | Default | Description |
|---|---|---|
| `CLAWSHELL_PUSHOVER_USER` | — | Pushover user key |
| `CLAWSHELL_PUSHOVER_TOKEN` | — | Pushover app token |
| `CLAWSHELL_TELEGRAM_BOT_TOKEN` | — | Telegram bot token (alternative) |
| `CLAWSHELL_TELEGRAM_CHAT_ID` | — | Telegram chat ID (alternative) |
| `CLAWSHELL_TIMEOUT_SECONDS` | 300 | Seconds to wait for approval before auto-reject |
| `CLAWSHELL_LOG_DIR` | logs/ | Directory for JSONL log files |
| `CLAWSHELL_LOG_LEVEL` | info | Log verbosity: debug, info, warn, error |
| `CLAWSHELL_BLOCKLIST` | — | Comma-separated extra blocked commands |
| `CLAWSHELL_ALLOWLIST` | — | Comma-separated extra allowed commands |
Custom rules can also be defined in `config.yaml` under `rules.blocklist` and `rules.allowlist` using exact strings, globs, or regex patterns.
## Limitations
- **Not a security guarantee.** LLMs can encode, split, or obfuscate commands to bypass pattern matching.
- **Defense-in-depth only.** Use alongside OpenClaw's sandbox mode, not as a replacement.
- **Approval latency.** High-risk commands block execution until you respond or the timeout expires.
> **Always ask your AI to scan any skill or software for security risks.**
在使用技能包之前做安全掃描,並按結論決定放行或攔截的技能。
管理OpenClaw的OpenRouter免費AI模型,自動按質量排名模型,配置速率限制備用方案,並更新opencla...
備份與恢復 OpenClaw 配置、憑據與工作區的技能。
設定並使用 1Password CLI 處理金鑰。
一款被描述為可偵測提示注入與危險命令的 OpenClaw 安全外掛。
遠端控制 tmux 會話,向互動式命令列傳送按鍵並抓取輸出。
以應用安全工程師視角做程式碼與架構的安全審計。
管理騰訊雲物件儲存與資料永珍的技能。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。