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.
social-vault
社交平台账号凭证管理器。提供登录态获取、AES-256-GCM 加密存储、定时健康监测和自动续期。Use when managing social media account credentials, importing cookies, checking login status, or automating session refresh. Also covers platform adapter creation and browser fingerprint management.
arc-shield
Output sanitization for agent responses - prevents accidental secret leaks
undertow
Skill discovery engine for AI coding agents. Recommends and installs the right skill when you need it — code review, test generation, debugging, commit messages, PR preparation, security scanning, dependency audits, Docker setup, CI/CD pipelines, API documentation, refactoring, performance optimization, bundle analysis, git recovery, README generation, license compliance, migration guides, dead code removal, and secret detection. One install gives your agent access to a curated library of 20+ developer workflow skills. Use when the user asks for help with any development workflow, code quality, DevOps, security, testing, documentation, or project setup task.
AURA Security Scanner
Scan AI agent skills for malware, credential theft, prompt injection, and dangerous permissions before installing them