Exec Tool Overview
The Exec skill allows OpenClaw to run shell commands and scripts directly on your system. Use it for server monitoring, automation scripts, and system management.
Enable Exec Skill
openclaw skills install exec
Example Usage
In your agent prompt file or via chat:
Check disk usage and report any drives over 80% full.
Use the exec tool to run: df -h
Configuration
{
"skills": {
"exec": {
"enabled": true,
"allowedCommands": ["df", "free", "top", "ps", "uptime"],
"workingDir": "/home/user",
"requireApproval": false
}
}
}
Security Notes
Important: Always define an
allowedCommands list. Never run exec with unrestricted access in production.Launch Your Personal AI Agent
OpenClaw connects to WhatsApp, Telegram, Slack and more. Get started in minutes.