clawshell
Human-in-the-loop security layer. Intercepts high-risk commands and requires push notification approval.
Why use this skill?
Enhance your OpenClaw agent security with ClawShell. Intercept dangerous shell commands, require push notification approvals, and maintain full audit logs for every operation.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/lucky-2968/clawshell-0-1-0What This Skill Does
ClawShell is a robust, human-in-the-loop security middleware designed to safeguard your OpenClaw agent operations. By replacing direct bash access with a secure wrapper, ClawShell intercepts all shell commands, performs real-time risk analysis, and forces a mandatory approval gate for sensitive or high-risk operations via push notifications. It categorizes commands into four risk tiers: Critical, High, Medium, and Low. While benign operations like 'ls' or 'git status' execute immediately, dangerous commands such as 'rm -rf' or unauthorized network requests trigger an external validation process. All execution decisions are transparently recorded in a JSONL audit log, ensuring you retain full visibility into how your agent interacts with the underlying filesystem.
Installation
Installation is straightforward. First, navigate to your workspace directory at /app/workspace/skills/clawshell and run npm install to resolve dependencies. Next, define your notification infrastructure by creating a Pushover or Telegram account and mapping your credentials to the .env file (using keys like CLAWSHELL_PUSHOVER_USER or CLAWSHELL_TELEGRAM_BOT_TOKEN). Finally, update your TOOLS.md file to instruct OpenClaw to exclusively utilize clawshell_bash rather than standard bash. This ensures all agent-driven shell activity adheres to your security policy.
Use Cases
ClawShell is essential for environments where agents perform autonomous tasks on sensitive infrastructure. It prevents accidental data deletion, stops malicious exfiltration attempts, and provides a 'kill switch' for unauthorized credential access. It is particularly useful when running agents on production servers, shared development environments, or handling proprietary source code where an agent's logic might otherwise execute irreversible commands without oversight.
Example Prompts
- "OpenClaw, please scan the current directory and list all files to ensure the environment is clean."
- "Clean up the build artifacts in the dist folder using
clawshell_bash, and let me know if you need my approval for the removal." - "Run a git status check to see if we have uncommitted changes in the repository."
Tips & Limitations
Always configure redundant notification channels to ensure you never miss an approval request. Note that while ClawShell is effective against common shell-based threats, it does not replace kernel-level security or container isolation. It is designed as an agent-layer control tool; always combine it with robust system-level permissions (like non-root execution) for maximum protection. Regularly audit logs/clawshell.jsonl to tune risk rules for your specific workflow.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-lucky-2968-clawshell-0-1-0": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: file-write, file-read, external-api, code-execution
Related Skills
doctorbot-ci-validator
Stop failing in production. Validate your GitHub Actions, GitLab CI & Keep workflows offline with surgical precision. Born from Keep bounty research, perfected for agents.
arc-shield
Output sanitization for agent responses - prevents accidental secret leaks
AURA Security Scanner
Scan AI agent skills for malware, credential theft, prompt injection, and dangerous permissions before installing them
sbom-explainer
把依赖清单或 SBOM 翻译成非技术可读的风险说明,按影响面排序。;use for sbom, dependencies, risk workflows;do not use for 伪造 CVE 状态, 替代专业漏洞扫描.
securityvitals
Security vitals checker for OpenClaw. Scans your installation, scores your setup, and shows you exactly what to fix. First scan in seconds.