exec
OpenClaw tool: exec
CordClaw topic: job.cordclaw.exec
Description: Runs shell commands. This is the highest-impact tool because it can mutate system state and trigger downstream actions quickly.
Risk profile: Base tags: exec, system, write. Extra tags are inferred from command text (destructive, cloud, infrastructure, package-install, remote-access, code-deploy, secrets).
Strict default
REQUIRE_APPROVAL for every exec request.
Moderate default
DENY destructive/cloud/remote-access, REQUIRE_APPROVAL package-install + code-deploy, ALLOW_WITH_CONSTRAINTS for general exec.
Permissive default
DENY destructive + secrets, REQUIRE_APPROVAL cloud/infrastructure, ALLOW the rest.
Example policy rule
- id: cordclaw-moderate-deny-destructive
match:
topics: ["job.cordclaw.exec"]
risk_tags: ["destructive"]
decision: deny
reason: Destructive commands are blocked in moderate mode.