Openclaw-master-skills swarmclaw
Manage your SwarmClaw agent fleet, create and assign tasks, check agent and session status, trigger workflows, and orchestrate multi-agent work from chat. Use when asked to dispatch work to other agents, check what agents are doing, run diagnostics, or coordinate across a SwarmClaw dashboard instance.
git clone https://github.com/LeoYeAI/openclaw-master-skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/LeoYeAI/openclaw-master-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/swarmclaw" ~/.claude/skills/leoyeai-openclaw-master-skills-swarmclaw && rm -rf "$T"
T=$(mktemp -d) && git clone --depth=1 https://github.com/LeoYeAI/openclaw-master-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/swarmclaw" ~/.openclaw/skills/leoyeai-openclaw-master-skills-swarmclaw && rm -rf "$T"
skills/swarmclaw/SKILL.md- global npm install
Overview
SwarmClaw is a self-hosted AI agent orchestration dashboard. This skill gives you CLI access to manage agents, tasks, sessions, schedules, and memory across a SwarmClaw instance.
Install the CLI:
npm i -g @swarmclawai/swarmclaw
Authentication uses
SWARMCLAW_ACCESS_KEY (preferred) or CLI key flags. Default URL is http://localhost:3456; override with SWARMCLAW_URL, --url (legacy commands), or --base-url (API-mapped commands).
Use machine-readable output when parsing command results:
for legacy commands--raw
for API-mapped commands--json
Setup
- Install:
npm i -g @swarmclawai/swarmclaw - Set env var:
(shown in terminal on first run)export SWARMCLAW_ACCESS_KEY=<your-key> - Full docs: https://swarmclaw.ai/docs — CLI reference: https://github.com/swarmclawai/swarmclaw
Multi-Gateway Fleet Management
SwarmClaw can connect to multiple OpenClaw gateways at the same time. Each SwarmClaw agent can target a different gateway, including one local and several remote instances. This skill’s commands operate through the SwarmClaw control plane, so your agent/task/session actions apply across the fleet view. Use it when you need status and task coordination across more than one OpenClaw instance.
Commands
Agents:
— list all agents with IDs, names, providers, statusswarmclaw agents list
swarmclaw agents list --raw
— get full details for a specific agentswarmclaw agents get <agentId>
swarmclaw agents get <agentId> --raw
Tasks:
— create and assign a taskswarmclaw tasks create --title "..." --description "..." --agent-id <agentId>
swarmclaw tasks create --title "Analyse competitor pricing" --description "Research and compare competitor pricing strategies, identify gaps and opportunities" --agent-id <agentId> --raw
— list all tasks with statusswarmclaw tasks list
swarmclaw tasks list --raw
Sessions:
— list active sessionsswarmclaw sessions list
swarmclaw sessions list --raw
— send a message to an existing sessionswarmclaw sessions chat <id> --message "..."
swarmclaw sessions chat <id> --message "Give me a status update" --raw
Memory:
— run memory maintenance analysisswarmclaw memory maintenance
swarmclaw memory maintenance --raw
Diagnostics:
— run system diagnostics and report issuesswarmclaw setup doctor
swarmclaw setup doctor --raw
Version:
— check current version and update statusswarmclaw version check
swarmclaw version check --raw
Rules
- Always verify an agent ID exists by running
before creating tasks for it.agents list - Never pass the access key as a CLI argument in visible output — rely on the
env var.SWARMCLAW_ACCESS_KEY - If the SwarmClaw instance is unreachable, run
and report the findings before retrying.swarmclaw setup doctor - When the user says "dispatch work", "get X agent to do Y", or "assign this to", use
to assign the work to the appropriate agent.tasks create - When the user asks "what's running", "agent status", or "what are my agents doing", combine output from
andagents list
to give a full picture.sessions list - For complex multi-step orchestration, create individual tasks rather than chaining commands.
- Use
/--raw
output modes when you need to parse command output for further processing.--json - Do not run commands that modify or delete agents without explicit user confirmation.
Examples
Dispatch work to another agent: User says: "Get my research agent to analyse competitor pricing"
swarmclaw agents list --raw swarmclaw tasks create --title "Analyse competitor pricing" --description "Research and compare competitor pricing strategies, identify gaps and opportunities" --agent-id <research-agent-id> --raw
Then confirm the task was created and the agent will pick it up.
Check fleet status: User says: "What are all my agents doing right now?"
swarmclaw agents list --raw swarmclaw sessions list --raw
Then summarize which agents are idle, which have active sessions, and any tasks in progress.
Run diagnostics: User says: "Something seems wrong with SwarmClaw"
swarmclaw setup doctor --raw
Then report issues found and suggest fixes based on the doctor output.
Check agents across gateways: User says: "What's happening across all my OpenClaw instances?"
swarmclaw agents list --raw
Then use the output to identify agents across multiple gateways with their connection status, and summarize which gateways are healthy and which agents are active on each.