Agent Swarm
Skill by austindixson
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/austindixson/agent-swarmname: agent-swarm displayName: Agent Swarm | OpenClaw Skill description: IMPORTANT: OpenRouter is required. Routes tasks to the right model and always delegates work through sessions_spawn. Rejects prompt-injection patterns in task strings (v1.7.6+). version: 1.7.8
Agent Swarm | OpenClaw Skill
Description
IMPORTANT: OpenRouter is required. Routes tasks to the right model and always delegates work through sessions_spawn.
Before installing
- OPENCLAW_HOME: Not required. The skill uses
OPENCLAW_HOMEonly if set; otherwise it defaults to~/.openclaw. This is consistent in both metadata (_meta.json: listed inoptionalEnv, not inenv) and behavior. - openclaw.json read access: The skill reads the local file
openclaw.json(at$OPENCLAW_HOME/openclaw.jsonor~/.openclaw/openclaw.json). Only the fieldstools.exec.hostandtools.exec.nodeare used; no gateway secrets or API keys are read. Verify you are comfortable granting read access to that file before installing.
Examples
Single task
Router output:
{"task":"write a poem","model":"openrouter/moonshotai/kimi-k2.5","sessionTarget":"isolated"}
Then call:
sessions_spawn(task="write a poem", model="openrouter/moonshotai/kimi-k2.5", sessionTarget="isolated")
Parallel tasks
python3 workspace/skills/agent-swarm/scripts/router.py spawn --json --multi "fix bug and write poem"
This returns multiple spawn configs. Start one sub-agent per config.
Commands
Manual/CLI use only. The examples below pass the task as a single argument; for programmatic use with untrusted user input, always invoke the router via subprocess.run(..., [..., user_message], ...) with a list of arguments (see Security). Do not build a shell command string from user input.
python scripts/router.py default
python scripts/router.py classify "fix lint errors"
python scripts/router.py spawn --json "write a poem"
python scripts/router.py spawn --json --multi "fix bug and write poem"
python scripts/router.py models
What this skill does
Agent Swarm is a traffic cop for AI models. It picks the best model for each task, then starts a sub-agent to do the work.
IMPORTANT: OpenRouter is required
Required Platform Configuration:
- OpenRouter API key: Must be configured in OpenClaw platform settings (not provided by this skill)
- OPENCLAW_HOME (optional): Environment variable pointing to OpenClaw workspace root. If not set, defaults to
~/.openclaw - openclaw.json access: The router reads
tools.exec.hostandtools.exec.nodefromopenclaw.json(located at$OPENCLAW_HOME/openclaw.jsonor~/.openclaw/openclaw.json). Only these two fields are accessed; no gateway secrets or API keys are read.
Model Requirements:
- Model IDs must use
openrouter/...prefix - If OpenRouter is not configured in OpenClaw, delegation will fail
Why this helps
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-austindixson-agent-swarm": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
what-just-happened
When the gateway comes back online, check recent logs and post a short message about what happened (restart, SIGUSR1, auth change, reconnect). User sees the response in TUI or Telegram.
agent-loops
Multi-agent workflow orchestrator. Use when the user asks to build, create, make, ship, develop, or launch any software (apps, webapps, websites, mobile apps, APIs, tools, bots, dashboards, SaaS, MVPs); fix or debug bugs; review or audit code; research topics; refactor code; or publish skills.
composio-composer-xskill
Enables posting tweets to Twitter/X through Composio's integration platform via HTTP and BeautifulSoup. Use when posting tweets or integrating with Composio.
creative-agents
Integration scripts for the creative agent swarm managed by overstory (Claude Code). Use when configuring or running researcher, social media, blog, or scribe agents.
skill-doc-formatter
Formats SKILL.md (OpenClaw/Cursor skill docs) for optimal display on ClawHub. Produces a consistent structure—Description, Installation, Usage with benefit-focused examples, and Commands—so skill pages are clear and scannable.