Swarmclaw skill

Manage your SwarmClaw agent fleet — agents, tasks, chats, chatrooms, goals, schedules, memory, wallets, connectors, autonomy, and 40+ more command groups.

by swarmclawai·MIT license·★ 688 Stars on the repo·GitHub ↗

Use now

Files of Swarmclaw

swarmclawai/main1 file shown
SKILL.md
Show the full text447 lines

Overview

SwarmClaw is a self-hosted AI agent orchestration platform. This skill gives you CLI access to manage agents, tasks, chats, chatrooms, goals, schedules, memory, wallets, connectors, autonomy controls, webhooks, extensions, and more across one or many SwarmClaw instances.

The CLI maps 1:1 to the SwarmClaw REST API. Every command follows the pattern:

swarmclaw <group> <action> [id] [--flags]

Install the CLI:

npm i -g @swarmclawai/swarmclaw

Setup

  1. Install: npm i -g @swarmclawai/swarmclaw
  2. Set env var: export SWARMCLAW_ACCESS_KEY=<your-key> (shown in terminal on first run)
  3. Default URL: http://localhost:3456 — override with SWARMCLAW_URL or --base-url
  4. Full docs: https://swarmclaw.ai/docs

Output Modes

Use machine-readable output when parsing results:

  • --json — structured JSON output (preferred for all API-mapped commands)
  • --raw — plain text output (legacy commands)

Filter results with --query key=value:

swarmclaw tasks list --json --query status=in_progress
swarmclaw memory list --json --query agentId=abc123 --query q=pricing
swarmclaw runs list --json --query sessionId=xyz --query limit=10

Core Commands

Agents

Manage your agent fleet — create, configure, monitor, and clone agents.

# List all agents
swarmclaw agents list --json

# Get full agent details
swarmclaw agents get <agentId> --json

# Create an agent (pass JSON body via --data)
swarmclaw agents create --data '{"name":"Research Bot","provider":"anthropic","model":"claude-sonnet-4-20250514"}' --json

# Update agent config
swarmclaw agents update <agentId> --data '{"name":"Updated Name","soul":"You are a research assistant"}' --json

# Get live agent status (running chats, current task, etc.)
swarmclaw agents status <agentId> --json

# Clone an agent with all its config
swarmclaw agents clone <agentId> --json

# Bulk update multiple agents
swarmclaw agents bulk-update --data '{"ids":["id1","id2"],"changes":{"provider":"openai"}}' --json

Other: delete, trash, restore, purge, thread

Tasks

Create, assign, and track work items on the task board.

# List all tasks (filterable by status, agent, project)
swarmclaw tasks list --json
swarmclaw tasks list --json --query status=in_progress --query agentId=<id>

# Create and assign a task
swarmclaw tasks create --data '{"title":"Analyse competitor pricing","description":"Research and compare competitor pricing strategies","agentId":"<agentId>"}' --json

# Get task details
swarmclaw tasks get <taskId> --json

# Update task status or fields
swarmclaw tasks update <taskId> --data '{"status":"completed"}' --json

# Get task board metrics (24h, 7d, or 30d)
swarmclaw tasks metrics --json --query range=7d

# Import GitHub issues as tasks
swarmclaw tasks import-github --data '{"repo":"owner/repo","labels":["bug"],"agentId":"<id>"}' --json

# Bulk update tasks
swarmclaw tasks bulk --data '{"ids":["id1","id2"],"changes":{"status":"todo"}}' --json

Other: delete, approve, claim, purge

Chats

Manage agent chat sessions — create, send messages, stream responses, and control execution.

Terminology: chats in the CLI = "sessions" in the SwarmClaw UI. Both refer to the same thing.

# List chats
swarmclaw chats list --json

# Create a new chat for an agent
swarmclaw chats create --data '{"agentId":"<agentId>"}' --json

# Send a message and stream the agent response (SSE)
swarmclaw chats chat <chatId> --data '{"message":"Give me a status update"}' --json

# Get chat message history
swarmclaw chats messages <chatId> --json

# Stop a running chat
swarmclaw chats stop <chatId> --json

# Clear chat history
swarmclaw chats clear <chatId> --json

# Append a user message without triggering a response
swarmclaw chats messages-send <chatId> --data '{"role":"user","content":"Note: budget is $5000"}' --json

Other: get, update, delete, delete-many, edit-resend, retry, queue, queue-add, queue-clear, heartbeat-disable-all, deploy, devserver, checkpoints

Chatrooms

Multi-agent collaborative spaces where multiple agents discuss and work together.

# List chatrooms
swarmclaw chatrooms list --json

# Create a chatroom
swarmclaw chatrooms create --data '{"name":"Strategy Room","description":"Multi-agent planning"}' --json

# Add agents to a chatroom
swarmclaw chatrooms add-member <chatroomId> --data '{"agentId":"<agent1>"}' --json
swarmclaw chatrooms add-member <chatroomId> --data '{"agentId":"<agent2>"}' --json

# Send a message — all member agents respond
swarmclaw chatrooms chat <chatroomId> --data '{"message":"What should our Q2 strategy be?"}' --json

# Remove an agent from the chatroom
swarmclaw chatrooms remove-member <chatroomId> --data '{"agentId":"<agentId>"}' --json

Other: get, update, delete, react, pin, moderate

Schedules

Automate recurring agent work on a cron schedule.

# List schedules
swarmclaw schedules list --json

# Create a schedule (cron syntax)
swarmclaw schedules create --data '{"name":"Daily Report","agentId":"<id>","cron":"0 9 * * *","message":"Generate the daily summary report"}' --json

# Update schedule
swarmclaw schedules update <scheduleId> --data '{"enabled":false}' --json

# Trigger a schedule immediately
swarmclaw schedules run <scheduleId> --json

# Delete a schedule
swarmclaw schedules delete <scheduleId> --json
Memory

Store and retrieve long-term agent memories for context persistence.

# List memories (searchable)
swarmclaw memory list --json
swarmclaw memory list --json --query q=pricing --query agentId=<id>

# Create a memory entry
swarmclaw memory create --data '{"agentId":"<id>","content":"Client prefers formal tone","type":"preference"}' --json

# Update a memory
swarmclaw memory update <memoryId> --data '{"content":"Updated content"}' --json

# Delete a memory
swarmclaw memory delete <memoryId> --json

# Analyse memory for dedup/prune candidates
swarmclaw memory maintenance --json

# Run the maintenance (dedupe/prune)
swarmclaw memory maintenance-run --json

Other: get, graph

Goals

Hierarchical goal management — organization, team, project, agent, and task-level goals with parent-child chains.

# List all goals
swarmclaw goals list --json

# Create a goal
swarmclaw goals create --data '{"title":"Increase revenue 20%","level":"organization","description":"Q2 revenue target"}' --json

# Get goal details
swarmclaw goals get <goalId> --json

# Update a goal
swarmclaw goals update <goalId> --data '{"status":"in_progress"}' --json

# Delete a goal
swarmclaw goals delete <goalId> --json
Knowledge

Manage knowledge sources — manual text, files, and URLs that ground agent responses with citations.

# List all knowledge entries
swarmclaw knowledge list --json

# Search knowledge
swarmclaw knowledge list --json --query q=pricing

# Create a manual knowledge entry
swarmclaw knowledge create --data '{"title":"Pricing Policy","content":"Standard pricing is...","kind":"manual","tags":["pricing"]}' --json

# Upload a file as knowledge
swarmclaw knowledge upload ./docs/handbook.pdf --json

# Get full source detail (metadata + indexed chunks)
swarmclaw knowledge source-get <sourceId> --json

# List knowledge sources with summaries
swarmclaw knowledge sources --json

# Re-sync a file/URL source
swarmclaw knowledge source-sync <sourceId> --json

# Archive a source
swarmclaw knowledge source-archive <sourceId> --data '{"reason":"outdated"}' --json

# Restore an archived source
swarmclaw knowledge source-restore <sourceId> --json

# Mark a source as superseded by another
swarmclaw knowledge source-supersede <sourceId> --data '{"supersededBySourceId":"<newSourceId>"}' --json

# Get knowledge hygiene summary (stale, duplicate, broken sources)
swarmclaw knowledge hygiene --json

# Run hygiene maintenance (auto-sync stale, archive duplicates)
swarmclaw knowledge hygiene-run --json

Other: get, update, delete, source-create, source-update, source-delete

Global cross-resource search across agents, tasks, chats, schedules, webhooks, and skills.

swarmclaw search query --json --query q=pricing
System

System health, version, and usage information.

# Health check (lightweight, safe for polling)
swarmclaw system status --json

# Check current version and updates
swarmclaw system version --json

# View resource usage
swarmclaw system usage --json

More Commands

These groups are available but used less frequently by agents. Use swarmclaw <group> --help for full details.

Group Description Key commands
connectors Chat connectors (Discord, Slack, Telegram, etc.) list, get, create, update, delete, start, stop, repair, health, doctor
autonomy Supervisor incidents, reflections, emergency stop incidents, reflections, estop, estop-set, guardian-restore
approvals Human-in-the-loop approval gates list, resolve
webhooks Inbound webhook triggers and delivery history list, get, create, update, delete, trigger, history
wallets Agent wallets and transaction management list, get, create, update, delete, send, approve, transactions, balance-history
providers LLM provider configs and model overrides list, get, create, update, delete, configs, ollama, models, models-set
gateways OpenClaw gateway profiles and health checks list, create, update, delete, health
credentials Encrypted provider credentials list, get, create, delete
secrets Encrypted secret vault list, get, create, update, delete
notifications In-app notification center list, create, clear, mark-read, delete
extensions Extension marketplace and config list, set, install, marketplace, settings-get, settings-set, builtins
knowledge Knowledge source management and hygiene list, get, create, update, delete, upload, sources, source-get, source-create, source-update, source-delete, source-archive, source-restore, source-supersede, source-sync, hygiene, hygiene-run
skills Reusable skill management list, get, create, update, delete, import
learned-skills Agent-scoped learned skill review list, promote, dismiss, delete, review-counts
skill-suggestions AI-generated skill recommendations list, draft, approve, reject
external-agents External agent registration and heartbeat list, create, update, delete, heartbeat
delegation-jobs Cross-agent delegation job tracking list
portability Config import/export between installs export, import
settings App-level configuration get, update
runs Chat run queue and execution history list, get, events
activity Activity feed events list (supports --query entityType=, --query action=)
daemon Background daemon lifecycle status, start, stop, health-check
logs Application logs list (supports --query lines=200, --query level=INFO), clear
setup Diagnostics and provider validation doctor, check-provider
documents Document management and revisions list, get, create, update, delete, revisions
uploads Uploaded artifact management list, get, delete, delete-many
clawhub Browse and install ClawHub skills search, preview, install
openclaw OpenClaw gateway control, deploy, sync (30+ subcommands) discover, gateway-status, deploy-*, remote-*, skills, sync

Rules

  1. Always verify an agent ID exists by running agents list before creating tasks for it.
  2. Never pass the access key as a CLI argument in visible output — rely on the SWARMCLAW_ACCESS_KEY env var.
  3. If the SwarmClaw instance is unreachable, run swarmclaw setup doctor --json and report the findings before retrying.
  4. When the user says "dispatch work", "get X agent to do Y", or "assign this to", use tasks create to assign the work.
  5. When the user asks "what's running", "agent status", or "what are my agents doing", combine output from agents list and chats list to give a full picture.
  6. For complex multi-step orchestration, create individual tasks rather than chaining commands.
  7. Prefer --json output mode for all commands. Use --raw only for legacy commands that don't support --json.
  8. Do not run commands that modify or delete agents without explicit user confirmation.
  9. Use system status for quick health checks — it's lightweight and safe for repeated polling.
  10. Use search query --query q=<term> to discover resources across agents, tasks, chats, schedules, and skills.
  11. The CLI group chats = "sessions" in the SwarmClaw UI. The legacy sessions alias is no longer available; always use chats.
  12. Use autonomy estop-set to engage emergency stop across all autonomous agents when safety action is needed.

Examples

Dispatch work to another agent

User says: "Get my research agent to analyse competitor pricing"

swarmclaw agents list --json
# Find the research agent's ID from the output
swarmclaw tasks create --data '{"title":"Analyse competitor pricing","description":"Research and compare competitor pricing strategies, identify gaps and opportunities","agentId":"<research-agent-id>"}' --json

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 --json
swarmclaw chats list --json
swarmclaw tasks list --json --query status=in_progress

Then summarize which agents are idle, which have active chats, and any tasks in progress.

Run diagnostics

User says: "Something seems wrong with SwarmClaw"

swarmclaw system status --json
swarmclaw setup doctor --json

Check the health summary first (fast), then run full diagnostics if issues are found.

Multi-agent chatroom collaboration

User says: "Get my strategy and research agents to brainstorm Q2 plans together"

swarmclaw agents list --json
# Identify the strategy and research agent IDs
swarmclaw chatrooms create --data '{"name":"Q2 Strategy Brainstorm"}' --json
swarmclaw chatrooms add-member <chatroomId> --data '{"agentId":"<strategy-agent-id>"}' --json
swarmclaw chatrooms add-member <chatroomId> --data '{"agentId":"<research-agent-id>"}' --json
swarmclaw chatrooms chat <chatroomId> --data '{"message":"Brainstorm our Q2 growth strategy. Consider market trends, competitor moves, and our current strengths."}' --json
Schedule recurring work

User says: "Have my reporting agent send a daily summary every morning at 9am"

swarmclaw agents list --json
# Find the reporting agent's ID
swarmclaw schedules create --data '{"name":"Daily Morning Summary","agentId":"<reporting-agent-id>","cron":"0 9 * * *","message":"Generate and send the daily summary report covering key metrics, alerts, and action items from the last 24 hours"}' --json
Emergency stop all autonomous agents

User says: "Stop everything now!"

swarmclaw autonomy estop-set --data '{"engaged":true}' --json

Then confirm the emergency stop is engaged and all autonomous execution has halted.

Set up a goal hierarchy

User says: "Create a Q2 revenue goal and link my sales agent's tasks to it"

swarmclaw goals create --data '{"title":"Increase Q2 revenue 20%","level":"organization","description":"Hit $1.2M ARR by end of Q2"}' --json
# Use the returned goalId to link agent tasks
swarmclaw tasks list --json --query agentId=<sales-agent-id>
swarmclaw tasks update <taskId> --data '{"goalId":"<goalId>"}' --json

Discovery

This skill covers the most-used commands. The full CLI has 50+ command groups. To explore:

swarmclaw --help                    # List all command groups
swarmclaw <group> --help            # List commands in a group
swarmclaw <group> <action> --help   # Show flags for a specific command
1---
2name: swarmclaw
3description: Manage your SwarmClaw agent fleet — agents, tasks, chats, chatrooms, goals, schedules, memory, wallets, connectors, autonomy, and 40+ more command groups. Use when asked to dispatch work, check agent status, coordinate multi-agent work, run diagnostics, manage schedules, set goals, or orchestrate across a SwarmClaw dashboard instance.
4version: 2.2.0
5metadata:
6 openclaw:
7 requires:
8 env:
9 - SWARMCLAW_ACCESS_KEY
10 bins:
11 - swarmclaw
12 primaryEnv: SWARMCLAW_ACCESS_KEY
13emoji: "🦞"
14homepage: https://github.com/swarmclawai/swarmclaw
15---
16 
17## Overview
18 
19SwarmClaw is a self-hosted AI agent orchestration platform. This skill gives you CLI access to manage agents, tasks, chats, chatrooms, goals, schedules, memory, wallets, connectors, autonomy controls, webhooks, extensions, and more across one or many SwarmClaw instances.
20 
21The CLI maps 1:1 to the SwarmClaw REST API. Every command follows the pattern:
22 
23```
24swarmclaw <group> <action> [id] [--flags]
25```
26 
27Install the CLI:
28 
29```bash
30npm i -g @swarmclawai/swarmclaw
31```
32 
33## Setup
34 
351. Install: `npm i -g @swarmclawai/swarmclaw`
362. Set env var: `export SWARMCLAW_ACCESS_KEY=<your-key>` (shown in terminal on first run)
373. Default URL: `http://localhost:3456` — override with `SWARMCLAW_URL` or `--base-url`
384. Full docs: https://swarmclaw.ai/docs
39 
40## Output Modes
41 
42Use machine-readable output when parsing results:
43 
44- **`--json`** — structured JSON output (preferred for all API-mapped commands)
45- **`--raw`** — plain text output (legacy commands)
46 
47Filter results with `--query key=value`:
48 
49```bash
50swarmclaw tasks list --json --query status=in_progress
51swarmclaw memory list --json --query agentId=abc123 --query q=pricing
52swarmclaw runs list --json --query sessionId=xyz --query limit=10
53```
54 
55## Core Commands
56 
57### Agents
58 
59Manage your agent fleet — create, configure, monitor, and clone agents.
60 
61```bash
62# List all agents
63swarmclaw agents list --json
64 
65# Get full agent details
66swarmclaw agents get <agentId> --json
67 
68# Create an agent (pass JSON body via --data)
69swarmclaw agents create --data '{"name":"Research Bot","provider":"anthropic","model":"claude-sonnet-4-20250514"}' --json
70 
71# Update agent config
72swarmclaw agents update <agentId> --data '{"name":"Updated Name","soul":"You are a research assistant"}' --json
73 
74# Get live agent status (running chats, current task, etc.)
75swarmclaw agents status <agentId> --json
76 
77# Clone an agent with all its config
78swarmclaw agents clone <agentId> --json
79 
80# Bulk update multiple agents
81swarmclaw agents bulk-update --data '{"ids":["id1","id2"],"changes":{"provider":"openai"}}' --json
82```
83 
84Other: `delete`, `trash`, `restore`, `purge`, `thread`
85 
86### Tasks
87 
88Create, assign, and track work items on the task board.
89 
90```bash
91# List all tasks (filterable by status, agent, project)
92swarmclaw tasks list --json
93swarmclaw tasks list --json --query status=in_progress --query agentId=<id>
94 
95# Create and assign a task
96swarmclaw tasks create --data '{"title":"Analyse competitor pricing","description":"Research and compare competitor pricing strategies","agentId":"<agentId>"}' --json
97 
98# Get task details
99swarmclaw tasks get <taskId> --json
100 
101# Update task status or fields
102swarmclaw tasks update <taskId> --data '{"status":"completed"}' --json
103 
104# Get task board metrics (24h, 7d, or 30d)
105swarmclaw tasks metrics --json --query range=7d
106 
107# Import GitHub issues as tasks
108swarmclaw tasks import-github --data '{"repo":"owner/repo","labels":["bug"],"agentId":"<id>"}' --json
109 
110# Bulk update tasks
111swarmclaw tasks bulk --data '{"ids":["id1","id2"],"changes":{"status":"todo"}}' --json
112```
113 
114Other: `delete`, `approve`, `claim`, `purge`
115 
116### Chats
117 
118Manage agent chat sessions — create, send messages, stream responses, and control execution.
119 
120> **Terminology:** `chats` in the CLI = "sessions" in the SwarmClaw UI. Both refer to the same thing.
121 
122```bash
123# List chats
124swarmclaw chats list --json
125 
126# Create a new chat for an agent
127swarmclaw chats create --data '{"agentId":"<agentId>"}' --json
128 
129# Send a message and stream the agent response (SSE)
130swarmclaw chats chat <chatId> --data '{"message":"Give me a status update"}' --json
131 
132# Get chat message history
133swarmclaw chats messages <chatId> --json
134 
135# Stop a running chat
136swarmclaw chats stop <chatId> --json
137 
138# Clear chat history
139swarmclaw chats clear <chatId> --json
140 
141# Append a user message without triggering a response
142swarmclaw chats messages-send <chatId> --data '{"role":"user","content":"Note: budget is $5000"}' --json
143```
144 
145Other: `get`, `update`, `delete`, `delete-many`, `edit-resend`, `retry`, `queue`, `queue-add`, `queue-clear`, `heartbeat-disable-all`, `deploy`, `devserver`, `checkpoints`
146 
147### Chatrooms
148 
149Multi-agent collaborative spaces where multiple agents discuss and work together.
150 
151```bash
152# List chatrooms
153swarmclaw chatrooms list --json
154 
155# Create a chatroom
156swarmclaw chatrooms create --data '{"name":"Strategy Room","description":"Multi-agent planning"}' --json
157 
158# Add agents to a chatroom
159swarmclaw chatrooms add-member <chatroomId> --data '{"agentId":"<agent1>"}' --json
160swarmclaw chatrooms add-member <chatroomId> --data '{"agentId":"<agent2>"}' --json
161 
162# Send a message — all member agents respond
163swarmclaw chatrooms chat <chatroomId> --data '{"message":"What should our Q2 strategy be?"}' --json
164 
165# Remove an agent from the chatroom
166swarmclaw chatrooms remove-member <chatroomId> --data '{"agentId":"<agentId>"}' --json
167```
168 
169Other: `get`, `update`, `delete`, `react`, `pin`, `moderate`
170 
171### Schedules
172 
173Automate recurring agent work on a cron schedule.
174 
175```bash
176# List schedules
177swarmclaw schedules list --json
178 
179# Create a schedule (cron syntax)
180swarmclaw schedules create --data '{"name":"Daily Report","agentId":"<id>","cron":"0 9 * * *","message":"Generate the daily summary report"}' --json
181 
182# Update schedule
183swarmclaw schedules update <scheduleId> --data '{"enabled":false}' --json
184 
185# Trigger a schedule immediately
186swarmclaw schedules run <scheduleId> --json
187 
188# Delete a schedule
189swarmclaw schedules delete <scheduleId> --json
190```
191 
192### Memory
193 
194Store and retrieve long-term agent memories for context persistence.
195 
196```bash
197# List memories (searchable)
198swarmclaw memory list --json
199swarmclaw memory list --json --query q=pricing --query agentId=<id>
200 
201# Create a memory entry
202swarmclaw memory create --data '{"agentId":"<id>","content":"Client prefers formal tone","type":"preference"}' --json
203 
204# Update a memory
205swarmclaw memory update <memoryId> --data '{"content":"Updated content"}' --json
206 
207# Delete a memory
208swarmclaw memory delete <memoryId> --json
209 
210# Analyse memory for dedup/prune candidates
211swarmclaw memory maintenance --json
212 
213# Run the maintenance (dedupe/prune)
214swarmclaw memory maintenance-run --json
215```
216 
217Other: `get`, `graph`
218 
219### Goals
220 
221Hierarchical goal management — organization, team, project, agent, and task-level goals with parent-child chains.
222 
223```bash
224# List all goals
225swarmclaw goals list --json
226 
227# Create a goal
228swarmclaw goals create --data '{"title":"Increase revenue 20%","level":"organization","description":"Q2 revenue target"}' --json
229 
230# Get goal details
231swarmclaw goals get <goalId> --json
232 
233# Update a goal
234swarmclaw goals update <goalId> --data '{"status":"in_progress"}' --json
235 
236# Delete a goal
237swarmclaw goals delete <goalId> --json
238```
239 
240### Knowledge
241 
242Manage knowledge sources — manual text, files, and URLs that ground agent responses with citations.
243 
244```bash
245# List all knowledge entries
246swarmclaw knowledge list --json
247 
248# Search knowledge
249swarmclaw knowledge list --json --query q=pricing
250 
251# Create a manual knowledge entry
252swarmclaw knowledge create --data '{"title":"Pricing Policy","content":"Standard pricing is...","kind":"manual","tags":["pricing"]}' --json
253 
254# Upload a file as knowledge
255swarmclaw knowledge upload ./docs/handbook.pdf --json
256 
257# Get full source detail (metadata + indexed chunks)
258swarmclaw knowledge source-get <sourceId> --json
259 
260# List knowledge sources with summaries
261swarmclaw knowledge sources --json
262 
263# Re-sync a file/URL source
264swarmclaw knowledge source-sync <sourceId> --json
265 
266# Archive a source
267swarmclaw knowledge source-archive <sourceId> --data '{"reason":"outdated"}' --json
268 
269# Restore an archived source
270swarmclaw knowledge source-restore <sourceId> --json
271 
272# Mark a source as superseded by another
273swarmclaw knowledge source-supersede <sourceId> --data '{"supersededBySourceId":"<newSourceId>"}' --json
274 
275# Get knowledge hygiene summary (stale, duplicate, broken sources)
276swarmclaw knowledge hygiene --json
277 
278# Run hygiene maintenance (auto-sync stale, archive duplicates)
279swarmclaw knowledge hygiene-run --json
280```
281 
282Other: `get`, `update`, `delete`, `source-create`, `source-update`, `source-delete`
283 
284### Search
285 
286Global cross-resource search across agents, tasks, chats, schedules, webhooks, and skills.
287 
288```bash
289swarmclaw search query --json --query q=pricing
290```
291 
292### System
293 
294System health, version, and usage information.
295 
296```bash
297# Health check (lightweight, safe for polling)
298swarmclaw system status --json
299 
300# Check current version and updates
301swarmclaw system version --json
302 
303# View resource usage
304swarmclaw system usage --json
305```
306 
307## More Commands
308 
309These groups are available but used less frequently by agents. Use `swarmclaw <group> --help` for full details.
310 
311| Group | Description | Key commands |
312|-------|-------------|-------------|
313| **connectors** | Chat connectors (Discord, Slack, Telegram, etc.) | `list`, `get`, `create`, `update`, `delete`, `start`, `stop`, `repair`, `health`, `doctor` |
314| **autonomy** | Supervisor incidents, reflections, emergency stop | `incidents`, `reflections`, `estop`, `estop-set`, `guardian-restore` |
315| **approvals** | Human-in-the-loop approval gates | `list`, `resolve` |
316| **webhooks** | Inbound webhook triggers and delivery history | `list`, `get`, `create`, `update`, `delete`, `trigger`, `history` |
317| **wallets** | Agent wallets and transaction management | `list`, `get`, `create`, `update`, `delete`, `send`, `approve`, `transactions`, `balance-history` |
318| **providers** | LLM provider configs and model overrides | `list`, `get`, `create`, `update`, `delete`, `configs`, `ollama`, `models`, `models-set` |
319| **gateways** | OpenClaw gateway profiles and health checks | `list`, `create`, `update`, `delete`, `health` |
320| **credentials** | Encrypted provider credentials | `list`, `get`, `create`, `delete` |
321| **secrets** | Encrypted secret vault | `list`, `get`, `create`, `update`, `delete` |
322| **notifications** | In-app notification center | `list`, `create`, `clear`, `mark-read`, `delete` |
323| **extensions** | Extension marketplace and config | `list`, `set`, `install`, `marketplace`, `settings-get`, `settings-set`, `builtins` |
324| **knowledge** | Knowledge source management and hygiene | `list`, `get`, `create`, `update`, `delete`, `upload`, `sources`, `source-get`, `source-create`, `source-update`, `source-delete`, `source-archive`, `source-restore`, `source-supersede`, `source-sync`, `hygiene`, `hygiene-run` |
325| **skills** | Reusable skill management | `list`, `get`, `create`, `update`, `delete`, `import` |
326| **learned-skills** | Agent-scoped learned skill review | `list`, `promote`, `dismiss`, `delete`, `review-counts` |
327| **skill-suggestions** | AI-generated skill recommendations | `list`, `draft`, `approve`, `reject` |
328| **external-agents** | External agent registration and heartbeat | `list`, `create`, `update`, `delete`, `heartbeat` |
329| **delegation-jobs** | Cross-agent delegation job tracking | `list` |
330| **portability** | Config import/export between installs | `export`, `import` |
331| **settings** | App-level configuration | `get`, `update` |
332| **runs** | Chat run queue and execution history | `list`, `get`, `events` |
333| **activity** | Activity feed events | `list` (supports `--query entityType=`, `--query action=`) |
334| **daemon** | Background daemon lifecycle | `status`, `start`, `stop`, `health-check` |
335| **logs** | Application logs | `list` (supports `--query lines=200`, `--query level=INFO`), `clear` |
336| **setup** | Diagnostics and provider validation | `doctor`, `check-provider` |
337| **documents** | Document management and revisions | `list`, `get`, `create`, `update`, `delete`, `revisions` |
338| **uploads** | Uploaded artifact management | `list`, `get`, `delete`, `delete-many` |
339| **clawhub** | Browse and install ClawHub skills | `search`, `preview`, `install` |
340| **openclaw** | OpenClaw gateway control, deploy, sync (30+ subcommands) | `discover`, `gateway-status`, `deploy-*`, `remote-*`, `skills`, `sync` |
341 
342## Rules
343 
3441. Always verify an agent ID exists by running `agents list` before creating tasks for it.
3452. Never pass the access key as a CLI argument in visible output — rely on the `SWARMCLAW_ACCESS_KEY` env var.
3463. If the SwarmClaw instance is unreachable, run `swarmclaw setup doctor --json` and report the findings before retrying.
3474. When the user says "dispatch work", "get X agent to do Y", or "assign this to", use `tasks create` to assign the work.
3485. When the user asks "what's running", "agent status", or "what are my agents doing", combine output from `agents list` and `chats list` to give a full picture.
3496. For complex multi-step orchestration, create individual tasks rather than chaining commands.
3507. Prefer `--json` output mode for all commands. Use `--raw` only for legacy commands that don't support `--json`.
3518. Do not run commands that modify or delete agents without explicit user confirmation.
3529. Use `system status` for quick health checks — it's lightweight and safe for repeated polling.
35310. Use `search query --query q=<term>` to discover resources across agents, tasks, chats, schedules, and skills.
35411. The CLI group `chats` = "sessions" in the SwarmClaw UI. The legacy `sessions` alias is no longer available; always use `chats`.
35512. Use `autonomy estop-set` to engage emergency stop across all autonomous agents when safety action is needed.
356 
357## Examples
358 
359### Dispatch work to another agent
360 
361User says: "Get my research agent to analyse competitor pricing"
362 
363```bash
364swarmclaw agents list --json
365# Find the research agent's ID from the output
366swarmclaw tasks create --data '{"title":"Analyse competitor pricing","description":"Research and compare competitor pricing strategies, identify gaps and opportunities","agentId":"<research-agent-id>"}' --json
367```
368 
369Then confirm the task was created and the agent will pick it up.
370 
371### Check fleet status
372 
373User says: "What are all my agents doing right now?"
374 
375```bash
376swarmclaw agents list --json
377swarmclaw chats list --json
378swarmclaw tasks list --json --query status=in_progress
379```
380 
381Then summarize which agents are idle, which have active chats, and any tasks in progress.
382 
383### Run diagnostics
384 
385User says: "Something seems wrong with SwarmClaw"
386 
387```bash
388swarmclaw system status --json
389swarmclaw setup doctor --json
390```
391 
392Check the health summary first (fast), then run full diagnostics if issues are found.
393 
394### Multi-agent chatroom collaboration
395 
396User says: "Get my strategy and research agents to brainstorm Q2 plans together"
397 
398```bash
399swarmclaw agents list --json
400# Identify the strategy and research agent IDs
401swarmclaw chatrooms create --data '{"name":"Q2 Strategy Brainstorm"}' --json
402swarmclaw chatrooms add-member <chatroomId> --data '{"agentId":"<strategy-agent-id>"}' --json
403swarmclaw chatrooms add-member <chatroomId> --data '{"agentId":"<research-agent-id>"}' --json
404swarmclaw chatrooms chat <chatroomId> --data '{"message":"Brainstorm our Q2 growth strategy. Consider market trends, competitor moves, and our current strengths."}' --json
405```
406 
407### Schedule recurring work
408 
409User says: "Have my reporting agent send a daily summary every morning at 9am"
410 
411```bash
412swarmclaw agents list --json
413# Find the reporting agent's ID
414swarmclaw schedules create --data '{"name":"Daily Morning Summary","agentId":"<reporting-agent-id>","cron":"0 9 * * *","message":"Generate and send the daily summary report covering key metrics, alerts, and action items from the last 24 hours"}' --json
415```
416 
417### Emergency stop all autonomous agents
418 
419User says: "Stop everything now!"
420 
421```bash
422swarmclaw autonomy estop-set --data '{"engaged":true}' --json
423```
424 
425Then confirm the emergency stop is engaged and all autonomous execution has halted.
426 
427### Set up a goal hierarchy
428 
429User says: "Create a Q2 revenue goal and link my sales agent's tasks to it"
430 
431```bash
432swarmclaw goals create --data '{"title":"Increase Q2 revenue 20%","level":"organization","description":"Hit $1.2M ARR by end of Q2"}' --json
433# Use the returned goalId to link agent tasks
434swarmclaw tasks list --json --query agentId=<sales-agent-id>
435swarmclaw tasks update <taskId> --data '{"goalId":"<goalId>"}' --json
436```
437 
438## Discovery
439 
440This skill covers the most-used commands. The full CLI has 50+ command groups. To explore:
441 
442```bash
443swarmclaw --help # List all command groups
444swarmclaw <group> --help # List commands in a group
445swarmclaw <group> <action> --help # Show flags for a specific command
446```
447 

Discussion