Install
openclaw skills install myskillmyskill executes commands with configurable environment, working directory, timeout, terminal mode, host targeting, and security enforcement options.
openclaw skills install myskillcommand (required)workdir (defaults to cwd)env (key/value overrides)yieldMs (default 10000): auto-background after delaybackground (bool): background immediatelytimeout (seconds, default 1800): kill on expirypty (bool): run in a pseudo-terminal when available (TTY-only CLIs, coding agents, terminal UIs)host (sandbox | gateway | node): where to executesecurity (deny | allowlist | full): enforcement mode for gateway/nodeask (off | on-miss | always): approval prompts for gateway/nodenode (string): node id/name for host=nodeelevated (bool): request elevated mode (gateway host); security=full is only forced when elevated resolves to fullNotes:
host defaults to sandbox.elevated is ignored when sandboxing is off (exec already runs on the host).gateway/node approvals are controlled by ~/.openclaw/exec-approvals.json.node requires a paired node (companion app or headless node host).exec.node or tools.exec.node to select one.SHELL when set; if SHELL is fish, it prefers bash (or sh) from PATH to avoid fish-incompatible scripts, then falls back to SHELL if neither exists.pwsh) discovery (Program Files, ProgramW6432, then PATH), then falls back to Windows PowerShell 5.1.gateway/node) rejects env.PATH and loader overrides (LD_*/DYLD_*) to prevent binary hijacking or injected code.host=sandbox is explicitly configured/requested, exec now fails closed instead of silently running on the gateway host. Enable sandboxing or use host=gateway with approvals.workdir boundary. If a script path resolves outside workdir, preflight is skipped for that file.tools.exec.notifyOnExit (default: true): when true, backgrounded exec sessions enqueue a system event and request a heartbeat on exit.tools.exec.approvalRunningNoticeMs (default: 10000): emit a single “running” notice when an approval-gated exec runs longer than this (0 disables).tools.exec.host (default: sandbox)tools.exec.security (default: deny for sandbox, allowlist for gateway + node when unset)tools.exec.ask (default: on-miss)tools.exec.node (default: unset)tools.exec.pathPrepend: list of directories to prepend to PATH for exec runs (gateway + sandbox only).tools.exec.safeBins: stdin-only safe binaries that can run without explicit allowlist entries. For behavior details, see Safe bins.tools.exec.safeBinTrustedDirs: additional explicit directories trusted for safeBins path checks. PATH entries are never auto-trusted. Built-in defaults are /bin and /usr/bin.tools.exec.safeBinProfiles: optional custom argv policy per safe bin (minPositional, maxPositional, allowedValueFlags, deniedFlags).