OpenClaw Supervisor: Multi-Agent Management
OpenClaw Supervisor manages multiple OpenClaw agent instances with automated health monitoring, crash recovery, and centralized control via chat commands.
Originally published:
Purpose and Significance
OpenClaw Supervisor is a management agent designed to orchestrate and monitor multiple OpenClaw instances running on a single machine. It solves a critical operational challenge: running distributed AI agents requires continuous oversight, rapid response to failures, and centralized control. This supervisor automates health monitoring, crash recovery, and instance lifecycle management through a conversational interface, enabling developers to manage complex multi-agent deployments without manual intervention or custom infrastructure.
Key Features
- Health Monitoring — Hourly automated checks verify all OpenClaw instances are running; detects failures before they compound
- Auto-Restart Capability — Automatically revives crashed agents via launchctl without manual intervention
- Instance Lifecycle Management — Start, stop, and restart individual agents through natural chat commands
- Status Dashboard — Single query returns real-time state of all managed agents across your system
- Cron Health Detection — Identifies stuck or stalled scheduled tasks across all instances
- Self-Update Checks — Daily verification for new supervisor releases with easy upgrade path
- Centralized Logging — Access recent logs from any agent directly from the supervisor interface
- Configurable Workspace — Flexible deployment with customizable workspace paths via environment variables
Architecture Overview
OpenClaw Supervisor follows a hub-and-spoke model where one supervisor instance manages multiple worker agents on the same machine. The supervisor maintains its own profile, workspace, and configuration directory while tracking all worker instances through a central INSTANCES.yaml manifest. Each worker agent operates independently with its own port, credentials, and service configuration managed via macOS launchctl or equivalent system service managers.
Getting Started
Prerequisites: Install OpenClaw globally (npm install -g openclaw) and the OpenClaw Framework before setting up the supervisor.
- Create a supervisor profile:
openclaw --profile supervisor setupand configure your communication channel (Telegram, Discord, etc.) - Wire in the OpenClaw Framework by instructing your supervisor agent: "Install the OpenClaw Framework from https://github.com/RGPankO/openclaw-framework"
- Install the Supervisor: "Install the Supervisor from https://github.com/RGPankO/openclaw-supervisor"
- Create additional worker agents manually using
openclaw --profile configureand register them with the supervisor
The installer automatically configures cron jobs for health checks, updates, and cron monitoring—no additional setup required.
Operational Commands
Once deployed, interact with your supervisor through natural language:
- "Status" — Display all instances and their current states
- "Start X" / "Stop X" / "Restart X" — Control individual agents by name
- "Health check" — Run immediate health verification across all instances
- "Cron check" — Detect stuck or hung scheduled tasks
- "Logs for X" — Retrieve recent logs from a specific agent
- "Check for updates" — Verify supervisor version and available upgrades
Who This Is For
Multi-Agent Operators: Teams deploying multiple OpenClaw instances on shared hardware and needing centralized management without building custom orchestration tools.
Autonomous System Developers: Builders of self-healing AI systems who want agents to self-repair and self-report without external monitoring dashboards.
Edge AI Deployments: Edge computing scenarios where a single machine hosts multiple specialized agents and requires hands-off operation.
OpenClaw Framework Users: Developers already invested in the OpenClaw ecosystem who need production-grade instance management.
Technical Implementation Details
The supervisor uses direct launchctl service management rather than OpenClaw's gateway layer, ensuring reliable restart behavior. Health checks query the HTTP /health endpoint directly on each instance's port instead of relying on the gateway health probe, which may target the wrong service. All operational scripts use the SUPERVISOR_WORKSPACE environment variable for flexibility—set this if your workspace deviates from the default ~/.openclaw/workspace-supervisor/ path.
Core files include SUPERVISOR.md (the supervisor's role definition), INSTALL.md (wiring instructions), INSTANCES.yaml (instance registry), and shell scripts in scripts/ for health checks, restarts, and log retrieval. Optional dependencies include jq for cron health parsing and curl for endpoint probing.
Dependencies and Requirements
- OpenClaw Framework — Must be installed and wired before supervisor deployment
- OpenClaw CLI — Global npm package with profile and service management
- jq — JSON parsing for cron health check analysis
- curl — HTTP client for health endpoint probing
- macOS launchctl — Service management (or Linux systemd equivalent for non-Mac systems)
Resources and Documentation
- GitHub Repository: RGPankO/openclaw-supervisor — Source code and issue tracker
- README.md — Quick reference for commands and architecture
- INSTALL.md — Detailed installation and wiring instructions
- SUPERVISOR.md — Supervisor role definition (the agent's operational knowledge base)
- INSTANCES.example.yaml — Template for instance configuration
- OpenClaw Framework: RGPankO/openclaw-framework — Required prerequisite
License: MIT — Free to use, modify, and distribute in commercial and open-source projects.
OpenClaw Framework Multi-Agent Orchestration Agent Management Systems
Original Source
https://github.com/RGPankO/openclaw-supervisor
Last updated: