openclaw agents
Manage multiple agents.
Usage
bash
openclaw agents <action> [options]Actions
| Action | Description |
|---|---|
list | List all agents |
create | Create a new agent |
delete | Delete an agent |
switch | Switch active agent |
show | Show agent details |
Examples
bash
# List all agents
openclaw agents list
# Create a new agent
openclaw agents create coding-assistant
# Switch to an agent
openclaw agents switch coding-assistant
# Delete an agent
openclaw agents delete old-agent
# Show agent details
openclaw agents show coding-assistantCreating Specialized Agents
Create agents for different tasks:
bash
# Coding assistant
openclaw agents create coding --model claude-3-5-sonnet \
--prompt "You are a coding assistant..."
# Writing assistant
openclaw agents create writer --model gpt-4 \
--prompt "You are a creative writer..."
# Research assistant
openclaw agents create research --model claude-3-opus \
--prompt "You are a research assistant..."Multi-Agent Routing
Configure routing rules to automatically select agents:
bash
# Set routing rules
openclaw agents routing editSee Also
- agent - Default agent
- Concepts: Multi-Agent