Toolguard Daemon Control for Openclaw

A robust utility for managing persistent background processes on macOS using the native launchd system.

johnnylambada
v0.0.1
Feb 14, 2026
0
1.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install toolguard-daemon-control

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install toolguard-daemon-control using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Toolguard Daemon Control?

Toolguard Daemon Control is a specialized skill designed for developers who need to manage long-running processes as native macOS launchd services. By integrating with Openclaw Skills, this tool automates the creation, management, and monitoring of user-level agents, ensuring that critical applications and scripts stay running even after terminal sessions end. It simplifies the complexity of plist creation and service lifecycle management, providing a standardized way to handle environment variables, working directories, and automated process restarts.

This skill is particularly valuable for developers building local servers, proxy tools, or automated background workers that require high availability. Within the ecosystem of Openclaw Skills, it provides a reliable foundation for ensuring that your automated agents and toolguards persist across system reboots and process failures without manual intervention.

Toolguard Daemon Control Use Cases

  • Deploying persistent API proxies or local development servers that must restart on system reboot.
  • Managing long-running data ingestion scripts or background workers within Openclaw Skills automation flows.
  • Monitoring the execution status and real-time logs of multiple background daemons from a single interface.
  • Automating the installation and lifecycle management of custom development tools that require persistent user-agent status.

How Toolguard Daemon Control Works

  1. The skill receives a command containing the service name, executable path, and optional configurations such as environment variables and working directories.
  2. It generates a standardized XML plist file conforming to macOS launchd requirements and saves it to the user's LaunchAgents directory.
  3. The service is registered and loaded into the macOS launch system with the KeepAlive attribute enabled to ensure automatic restarts upon failure.
  4. Standard output and error logs are automatically routed to a centralized logging directory for easier debugging and auditing.
  5. The skill provides management scripts to list, check status, view logs, or uninstall services securely without requiring sudo privileges.

Toolguard Daemon Control Setup

To utilize this capability within Openclaw Skills, ensure you are on a macOS environment. All management scripts are located in the scripts/ directory. To install a new background service, use the following command structure:

bash scripts/install.sh <service-name> <command> [args...] [--workdir <dir>] [--env KEY=VALUE ...]

To view all active services managed by this skill, run:

bash scripts/list.sh

Toolguard Daemon Control Data Schema & Taxonomy

The skill organizes its configuration and output using the following system paths to maintain a clean environment within Openclaw Skills:

Data Type Location Purpose
Service Configuration ~/Library/LaunchAgents/ai.toolguard.<name>.plist Defines the launchd service parameters and restart logic.
Application Logs ~/Library/Logs/toolguard/<name>/ Contains stdout and stderr logs for each managed service.
Service Namespace ai.toolguard.* Standard prefix used to identify and filter managed services.

Toolguard Daemon Control Advanced Features

  • Automatic failure recovery via KeepAlive configuration ensuring 24/7 uptime for critical background agents.
  • Support for custom environment variable injection and specific working directory configuration for complex runtimes.
  • Integrated log streaming with support for following output and limiting line count for rapid debugging.
  • Clean uninstallation workflow that unloads system services and removes configuration files while preserving logs for historical analysis in Openclaw Skills.
  • Specialized handling for compiled binaries to ensure compatibility with the launchd execution model.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*