FF macos-launchdaemon
Run OpenClaw as a system-level LaunchDaemon on macOS for 24/7 operation, surviving screen lock, logout, and user switching. Uses caffeinate to prevent sleep. Verified working for long-term locked screen scenarios.
Run OpenClaw as a system-level LaunchDaemon on macOS for 24/7 operation, surviving screen lock, logout, and user switching.
As a process F 29/100 · Will not run — References files that are not bundled: ../macos-lock-screen-fix/, ../healthcheck/
What is at stake
The skill contains fragments that, in the wrong hands, cost money or data. Below: what the installer risks and what the author should do.
The skill contains commands that delete files, rewrite disks or execute code fetched from the network. The agent may run them without asking if it believes the instructions require it.
Replace destructive commands with safe equivalents that ask for confirmation, scope them to one folder, and stop piping curl into a shell: pin a version and a checksum.
How to improve
- Address the high-severity findings: each costs 18 safety points. If one is a false positive, add the rule id to guard.allow in spec.yaml.
- The text references files that are not there: add them or drop the references.
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 30
-
high Dangerous commands
cmd-persistenceinstall.sh:143Persistence mechanism (cron / launchd / scheduled task / autorun registry)if [ -f ~/Library/LaunchAgents/ai.openclaw.gateway.plist ]; then
-
high Dangerous commands
cmd-persistenceinstall.sh:144Persistence mechanism (cron / launchd / scheduled task / autorun registry)mv ~/Library/LaunchAgents/ai.openclaw.gateway.plist ~/Library/LaunchAgents/ai.openclaw.gateway.plist.backup
-
high Dangerous commands
cmd-persistenceinstall.sh:165Persistence mechanism (cron / launchd / scheduled task / autorun registry)sudo launchctl bootstrap system "$PLIST_PATH"
-
high Dangerous commands
cmd-persistenceREADME.md:125Persistence mechanism (cron / launchd / scheduled task / autorun registry)sudo rm /Library/LaunchDaemons/ai.openclaw.gateway.plist
-
high Dangerous commands
cmd-persistenceREADME.md:128Persistence mechanism (cron / launchd / scheduled task / autorun registry)mv ~/Library/LaunchAgents/ai.openclaw.gateway.plist.disabled \
-
high Dangerous commands
cmd-persistenceREADME.md:129Persistence mechanism (cron / launchd / scheduled task / autorun registry)~/Library/LaunchAgents/ai.openclaw.gateway.plist
-
high Dangerous commands
cmd-persistenceREADME.md:130Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/ai.openclaw.gateway.plist
-
high Dangerous commands
cmd-persistenceREADME.zh-CN.md:125Persistence mechanism (cron / launchd / scheduled task / autorun registry)sudo rm /Library/LaunchDaemons/ai.openclaw.gateway.plist
-
high Dangerous commands
cmd-persistenceREADME.zh-CN.md:128Persistence mechanism (cron / launchd / scheduled task / autorun registry)mv ~/Library/LaunchAgents/ai.openclaw.gateway.plist.disabled \
-
high Dangerous commands
cmd-persistenceREADME.zh-CN.md:129Persistence mechanism (cron / launchd / scheduled task / autorun registry)~/Library/LaunchAgents/ai.openclaw.gateway.plist
-
high Dangerous commands
cmd-persistenceREADME.zh-CN.md:130Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/ai.openclaw.gateway.plist
-
high Dangerous commands
cmd-persistenceSKILL.md:139Persistence mechanism (cron / launchd / scheduled task / autorun registry)mv ~/Library/LaunchAgents/ai.openclaw.gateway.plist ~/Library/LaunchAgents/ai.openclaw.gateway.plist.disabled 2>/dev/null
-
high Dangerous commands
cmd-persistenceSKILL.md:146Persistence mechanism (cron / launchd / scheduled task / autorun registry)sudo cp /tmp/ai.openclaw.gateway.plist /Library/LaunchDaemons/
-
high Dangerous commands
cmd-persistenceSKILL.md:149Persistence mechanism (cron / launchd / scheduled task / autorun registry)sudo chown root:wheel /Library/LaunchDaemons/ai.openclaw.gateway.plist
-
high Dangerous commands
cmd-persistenceSKILL.md:150Persistence mechanism (cron / launchd / scheduled task / autorun registry)sudo chmod 644 /Library/LaunchDaemons/ai.openclaw.gateway.plist
-
high Dangerous commands
cmd-persistenceSKILL.md:153Persistence mechanism (cron / launchd / scheduled task / autorun registry)sudo launchctl bootstrap system /Library/LaunchDaemons/ai.openclaw.gateway.plist
Medium and low: 14
-
medium Dangerous commands
cmd-persistenceinstall.sh:15Persistence mechanism (cron / launchd / scheduled task / autorun registry) (string literal in code, not executed)PLIST_PATH="/Library/LaunchDaemons/ai.openclaw.gateway.plist"
code literal -
medium Dangerous commands
cmd-privilegeinstall.sh:155Privilege escalation / world-writable permissionssudo cp "$TEMP_PLIST" "$PLIST_PATH"
-
medium Dangerous commands
cmd-privilegeinstall.sh:156Privilege escalation / world-writable permissionssudo chown root:wheel "$PLIST_PATH"
-
medium Dangerous commands
cmd-privilegeinstall.sh:157Privilege escalation / world-writable permissionssudo chmod 644 "$PLIST_PATH"
-
medium Dangerous commands
cmd-pipe-to-shell-known-hostREADME.md:25Pipe-to-shell installer from a well-known host (still executes remote code)curl -fsSL https://raw.githubusercontent.com/happydog-intj/openclaw-macos-always-on/master/install.sh | bash
-
medium Dangerous commands
cmd-privilegeREADME.md:125Privilege escalation / world-writable permissionssudo rm /Library/LaunchDaemons/ai.openclaw.gateway.plist
-
medium Dangerous commands
cmd-pipe-to-shell-known-hostREADME.zh-CN.md:25Pipe-to-shell installer from a well-known host (still executes remote code)curl -fsSL https://raw.githubusercontent.com/happydog-intj/openclaw-macos-always-on/master/install.sh | bash
-
medium Dangerous commands
cmd-privilegeREADME.zh-CN.md:125Privilege escalation / world-writable permissionssudo rm /Library/LaunchDaemons/ai.openclaw.gateway.plist
-
medium Dangerous commands
cmd-pipe-to-shell-known-hostSKILL.md:35Pipe-to-shell installer from a well-known host (still executes remote code)curl -fsSL https://raw.githubusercontent.com/YOUR_USERNAME/clawd/master/skills/macos-launchdaemon/install.sh | bash
-
medium Dangerous commands
cmd-privilegeSKILL.md:146Privilege escalation / world-writable permissionssudo cp /tmp/ai.openclaw.gateway.plist /Library/LaunchDaemons/
-
medium Dangerous commands
cmd-privilegeSKILL.md:149Privilege escalation / world-writable permissionssudo chown root:wheel /Library/LaunchDaemons/ai.openclaw.gateway.plist
-
medium Dangerous commands
cmd-privilegeSKILL.md:150Privilege escalation / world-writable permissionssudo chmod 644 /Library/LaunchDaemons/ai.openclaw.gateway.plist
-
medium Dangerous commands
cmd-privilegeSKILL.md:271Privilege escalation / world-writable permissionssudo rm /Library/LaunchDaemons/ai.openclaw.gateway.plist
-
medium Dangerous commands
cmd-privilegeSKILL.md:392Privilege escalation / world-writable permissionssudo cp "$TEMP_PLIST" "$PLIST_PATH"
Files scanned: 4. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
missing-refreference to a missing file: ../macos-lock-screen-fix/ - warning
missing-refreference to a missing file: ../healthcheck/
Process rating: all ten parameters 29/100
- 0Tools and files. 2 referenced file(s) missing: ../macos-lock-screen-fix/, ../healthcheck/
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 0Progress reporting. Says nothing while it works
- 20When it triggers. No condition that starts the skill
- 30Running it twice. 3 mutating operations with no state check
- 40Consistency. Frontmatter name (macos-launchdaemon) differs from the folder (openclaw-macos-always-on)
- 50Failures and branches. 0 branches, has a failure section
- 70Execution cost. Instruction body is 4377 tokens
- 85Steps. 40 steps, 1 vague phrases
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
- low 16 top-level sections: this looks like several domains in one skill
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +4Description does not say when NOT to use the skill (false activations)
- +3Output format is not stated: the model decides each time
- -221 emoji in the instructions: noise for the model
- +1No license
- +2Single-language instructions
- +3Description length 213: enough signal without eating the budget
- +4Structure: 39 headings
- +3Step-by-step instructions: 40 items
- +4Has examples (30 code blocks)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 73.