Install
openclaw skills install toolguard-daemon-controlManage macOS launchd user agents to start, stop, restart, check status, and access logs of persistent background services without sudo.
openclaw skills install toolguard-daemon-controlManage any executable as a persistent macOS launchd user agent.
Services are installed as ~/Library/LaunchAgents/ai.toolguard.<name>.plist and run as user-level launch agents. They auto-restart on failure and log to ~/Library/Logs/toolguard/.
All scripts are in scripts/ relative to this skill's directory. Run them with bash.
bash scripts/install.sh <service-name> <command> [args...] [--workdir <dir>] [--env KEY=VALUE ...]
service-name: Short identifier (e.g., toolguard-proxy). Used in plist filename and log paths.command: Absolute path to the executable.args: Arguments passed to the command.--workdir <dir>: Working directory for the process (default: $HOME).--env KEY=VALUE: Environment variables (repeatable).Example:
bash scripts/install.sh toolguard-proxy /usr/local/go/bin/go run ./cmd/server --config toolguard.dev.yaml --workdir ~/Documents/toolguard
bash scripts/uninstall.sh <service-name>
Unloads the service and removes the plist file. Logs are preserved.
bash scripts/status.sh [service-name]
Without arguments, lists all ai.toolguard.* services. With a name, shows detailed status for that service.
bash scripts/logs.sh <service-name> [--follow] [--lines <n>]
Shows stdout and stderr logs. Default: last 50 lines.
bash scripts/list.sh
Lists all installed ai.toolguard.* services with their running state.
KeepAlive = true).go run directly. Use go build first, then point to the binary.~/Library/Logs/toolguard/<service-name>/~/Library/LaunchAgents/ai.toolguard.<service-name>.plist