| name | agentteams-hiclaw-multi-agent-orchestration |
| description | Build and orchestrate collaborative multi-agent teams using HiClaw's Manager-Workers architecture on Matrix with Kubernetes-native control. |
| triggers | ["set up HiClaw multi-agent collaboration platform","create agent teams with HiClaw manager and workers","deploy collaborative AI agents using HiClaw","orchestrate multiple agents with HiClaw on Kubernetes","configure HiClaw workers with custom skills","build human-in-the-loop agent workflows with HiClaw","manage agent collaboration rooms in HiClaw","integrate MCP servers with HiClaw agents"] |
AgentTeams HiClaw Multi-Agent Orchestration
Skill by ara.so — AI Agent Skills collection.
HiClaw is an open-source collaborative multi-agent runtime platform that enables multiple AI agents to work together in Matrix-based rooms with full human visibility and control. Built on a Manager-Workers architecture, it orchestrates Agent containers (Manager + Workers) for enterprise multi-agent collaboration scenarios.
Key capabilities:
- Manager-Workers architecture for hierarchical agent coordination
- Multi-runtime support (OpenClaw, QwenPaw, Hermes)
- Matrix protocol for transparent human-in-the-loop collaboration
- Kubernetes-native declarative resource management
- Shared MinIO file system for efficient inter-agent data exchange
- Higress AI Gateway for secure credential management
- Skills marketplace integration (skills.sh)
Installation
Docker Desktop / Docker Engine
macOS / Linux:
bash <(curl -sSL https://higress.ai/hiclaw/install.sh)
Windows (PowerShell 7+):
Set-ExecutionPolicy Bypass -Scope Process -Force
$wc=New-Object Net.WebClient
$wc.Encoding=[Text.Encoding]::UTF8
iex $wc.DownloadString('https://higress.ai/hiclaw/install.ps1')
Requirements: 2 CPU cores + 4 GB RAM minimum (4 cores + 8 GB for multiple Workers)
The installer prompts for:
- LLM provider selection
- API key (stored securely in environment)
- Network mode (local-only or external access)
Access: Navigate to http://127.0.0.1:18088 for Element Web client.
Kubernetes (Helm)
Prerequisites:
- Kubernetes 1.24+
- Helm 3.7+
- Default StorageClass configured
Install with OpenAI:
helm repo add higress.io https://higress.io/helm-charts
helm repo update
helm install hiclaw higress.io/hiclaw \
-n hiclaw-system --create-namespace \
--render-subchart-notes \
--set credentials.llmApiKey=$OPENAI_API_KEY \
--set credentials.adminPassword=$ADMIN_PASSWORD \
--set gateway.publicURL=http://localhost:18080
Install with OpenAI-compatible provider:
helm install hiclaw higress.io/hiclaw \
-n hiclaw-system --create-namespace \
--render-subchart-notes \
--set credentials.llmApiKey=$LLM_API_KEY \
--set credentials.llmBaseUrl=https://api.deepseek.com/v1 \
--set credentials.defaultModel=deepseek-chat \
--set credentials.adminPassword=$ADMIN_PASSWORD \
--set gateway.publicURL=http://localhost:18080
Install with Qwen (通义千问):
helm install hiclaw higress.io/hiclaw \
-n hiclaw-system --create-namespace \
--render-subchart-notes \
--set credentials.llmApiKey=$QWEN_API_KEY \
--set credentials.llmProvider=qwen \
--set credentials.defaultModel=qwen3.5-plus \
--set credentials.adminPassword=$ADMIN_PASSWORD \
--set gateway.publicURL=http://localhost:18080
Custom runtime configuration:
helm install hiclaw higress.io/hiclaw \
-n hiclaw-system --create-namespace \
--set manager.runtime=copaw \
--set worker.defaultRuntime=hermes \
--set credentials.llmApiKey=$LLM_API_KEY \
--set credentials.adminPassword=$ADMIN_PASSWORD \
--set gateway.publicURL=http://localhost:18080
Core Concepts
Manager-Workers Architecture
- Manager: Central orchestrator that coordinates Workers, delegates tasks, manages rooms
- Workers: Specialized agents that execute specific tasks
- Team: Declarative group of Workers coordinated by Manager
- Human: Human participant with full visibility and intervention rights
Runtime Options
- OpenClaw: Original Lobster-based agent runtime
- QwenPaw (formerly CoPaw): Optimized runtime with 80% less memory
- Hermes: Autonomous coding agent runtime
Declarative Resource Management
HiClaw uses Kubernetes-style CRDs (Custom Resource Definitions) for declarative agent management.
Worker Definition
worker-example.yaml:
apiVersion: hiclaw.io/v1alpha1
kind: Worker
metadata:
name: code-reviewer
namespace: hiclaw-system
spec:
runtime: hermes
model: gpt-4o
description: "Expert code reviewer with focus on Go and Python best practices"
env:
- name: HERMES_MAX_ITERATIONS
value: "10"
- name: LOG_LEVEL
value: "debug"
mcp:
- name: github
type: nacos
config:
serviceName: mcp-github
namespace: default
- name: filesystem
type: stdio
command: npx
args:
- -y
- "@modelcontextprotocol/server-filesystem"
- /workspace
skills:
- source: nacos
serviceName: skill-code-review
namespace: default
- source: nacos
serviceName: skill-security-scan
namespace: default
Apply Worker:
kubectl apply -f worker-example.yaml
Team Definition
team-example.yaml:
apiVersion: hiclaw.io/v1alpha1
kind: Team
metadata:
name: backend-dev-team
namespace: hiclaw-system
spec:
description: "Backend development team for microservices"
leader:
runtime: copaw
model: qwen3.5-plus
mcp:
- name: jira
type: nacos
config:
serviceName: mcp-jira
namespace: tools
workers:
- name: go-developer
runtime: hermes
model: gpt-4o
skills:
- source: nacos
serviceName: skill-golang-expert
- name: db-specialist
runtime: openclaw
model: claude-3.5-sonnet
skills:
- source: nacos
serviceName: skill-postgres-admin
humans:
- matrix_id: "@alice:matrix.example.com"
role: tech-lead
- matrix_id: "@bob:matrix.example.com"
role: reviewer
Apply Team:
kubectl apply -f team-example.yaml
Human Definition
human-example.yaml:
apiVersion: hiclaw.io/v1alpha1
kind: Human
metadata:
name: senior-engineer
namespace: hiclaw-system
spec:
matrix_id: "@engineer:matrix.example.com"
display_name: "Senior Engineer"
teams:
- backend-dev-team
- frontend-dev-team
permissions:
- interrupt_workflows
- approve_deployments
- access_credentials
CLI Commands (hiclaw)
Worker Management
List Workers:
kubectl get workers -n hiclaw-system
Get Worker details:
kubectl describe worker code-reviewer -n hiclaw-system
Delete Worker:
kubectl delete worker code-reviewer -n hiclaw-system
Team Management
List Teams:
kubectl get teams -n hiclaw-system
Scale Team (add Worker):
spec:
workers:
- name: go-developer
- name: db-specialist
- name: api-tester
runtime: hermes
model: gpt-4o
kubectl apply -f team-example.yaml
Logs and Debugging
View Manager logs:
kubectl logs -n hiclaw-system deployment/hiclaw-manager -f
View Worker logs:
kubectl get pods -n hiclaw-system -l worker=code-reviewer
kubectl logs -n hiclaw-system <pod-name> -f
View controller logs:
kubectl logs -n hiclaw-system deployment/hiclaw-controller -f
MCP Server Integration
HiClaw supports two types of MCP servers:
1. Nacos-based MCP (Recommended)
Register MCP server in Nacos:
Use in Worker/Manager:
mcp:
- name: github
type: nacos
config:
serviceName: mcp-github
namespace: default
group: DEFAULT_GROUP
Benefits:
- Centralized credential management
- Workers use consumer tokens only
- Zero credential exposure to agents
- Dynamic service discovery
2. Stdio MCP
Direct command execution:
mcp:
- name: filesystem
type: stdio
command: npx
args:
- -y
- "@modelcontextprotocol/server-filesystem"
- /workspace
- name: git
type: stdio
command: python
args:
- -m
- mcp_server_git
- --repository
- /workspace/repo
Skills Integration
Using Nacos Skills Registry
Worker with remote skills:
apiVersion: hiclaw.io/v1alpha1
kind: Worker
metadata:
name: devops-engineer
spec:
runtime: hermes
skills:
- source: nacos
serviceName: skill-docker-compose
namespace: devops
- source: nacos
serviceName: skill-kubernetes-deploy
namespace: devops
Custom Skills Package
Directory structure:
my-worker-package/
├── SOUL.md # Optional: Worker personality/behavior
├── skill-1.sh
├── skill-2.py
└── README.md
Deploy custom Worker with skills:
apiVersion: hiclaw.io/v1alpha1
kind: Worker
metadata:
name: custom-worker
spec:
runtime: openclaw
volumeMounts:
- name: custom-skills
mountPath: /skills
volumes:
- name: custom-skills
configMap:
name: custom-worker-skills
Configuration Patterns
Multi-Model Strategy
Use different models for different Workers:
apiVersion: hiclaw.io/v1alpha1
kind: Team
metadata:
name: cost-optimized-team
spec:
leader:
runtime: copaw
model: gpt-4o-mini
workers:
- name: code-generator
runtime: hermes
model: claude-3.5-sonnet
- name: code-reviewer
runtime: openclaw
model: gpt-4o-mini
- name: test-writer
runtime: hermes
model: deepseek-coder
Environment-Specific Configuration
Development Team:
apiVersion: hiclaw.io/v1alpha1
kind: Team
metadata:
name: dev-team
namespace: hiclaw-dev
spec:
leader:
env:
- name: LOG_LEVEL
value: debug
- name: MAX_ITERATIONS
value: "20"
workers:
- name: dev-worker
env:
- name: ENVIRONMENT
value: development
- name: ENABLE_EXPERIMENTAL
value: "true"
Production Team:
apiVersion: hiclaw.io/v1alpha1
kind: Team
metadata:
name: prod-team
namespace: hiclaw-prod
spec:
leader:
env:
- name: LOG_LEVEL
value: info
- name: MAX_ITERATIONS
value: "5"
workers:
- name: prod-worker
env:
- name: ENVIRONMENT
value: production
- name: ENABLE_EXPERIMENTAL
value: "false"
Shared File System Usage
Workers automatically share files via MinIO:
apiVersion: hiclaw.io/v1alpha1
kind: Worker
metadata:
name: data-analyst
spec:
runtime: hermes
description: "Generate analysis reports and save to /workspace/reports/"
---
apiVersion: hiclaw.io/v1alpha1
kind: Worker
metadata:
name: report-formatter
spec:
runtime: hermes
description: "Read reports from /workspace/reports/ and format as PDF"
In Matrix room:
@manager: data-analyst, generate quarterly sales report
data-analyst: Report saved to /workspace/reports/q4-2026.json
@manager: report-formatter, convert q4-2026.json to PDF
report-formatter: PDF saved to /workspace/reports/q4-2026.pdf
Troubleshooting
Worker Not Responding
Check Worker status:
kubectl get worker my-worker -n hiclaw-system -o yaml
Look for status conditions:
status:
conditions:
- type: Ready
status: "False"
reason: ImagePullError
message: "Failed to pull image"
Common fixes:
- Verify runtime image is available
- Check resource limits (CPU/memory)
- Inspect logs:
kubectl logs -n hiclaw-system <worker-pod>
MCP Server Connection Failed
Verify Nacos registration:
curl http://nacos-server:8848/nacos/v1/ns/instance/list?serviceName=mcp-github
Test MCP connectivity:
kubectl exec -it <worker-pod> -n hiclaw-system -- \
curl http://mcp-github.default.svc.cluster.local:8080/health
Check credentials:
- Ensure STS scope
sts-hiclaw or ai-registry is configured in Higress
- Verify consumer tokens have access to MCP services
- Review gateway logs:
kubectl logs -n higress-system deployment/higress-gateway
Manager Cannot Create Room
Check Matrix server status:
kubectl get pods -n hiclaw-system -l app=synapse
Verify Matrix credentials:
kubectl get secret -n hiclaw-system hiclaw-credentials -o yaml
Test Matrix API:
ADMIN_TOKEN=$(kubectl get secret -n hiclaw-system hiclaw-credentials \
-o jsonpath='{.data.matrix-admin-token}' | base64 -d)
curl -H "Authorization: Bearer $ADMIN_TOKEN" \
http://matrix.hiclaw-system.svc.cluster.local:8008/_matrix/client/v3/account/whoami
High Token Consumption
Enable MinIO file sharing:
- Ensure Workers save large outputs to
/workspace/ instead of Matrix messages
- Configure Workers to reference file paths in messages
Optimize model selection:
spec:
workers:
- name: log-parser
model: gpt-4o-mini
Limit context:
spec:
workers:
- name: focused-worker
env:
- name: MAX_CONTEXT_MESSAGES
value: "10"
Team Leader Not Coordinating
Verify Team CR status:
kubectl get team backend-dev-team -n hiclaw-system -o yaml
Check leader logs:
kubectl logs -n hiclaw-system deployment/hiclaw-manager -f | grep backend-dev-team
Common issues:
- Leader MCP servers not accessible
- Workers not in Ready state
- Insufficient permissions for humans in team
Upgrade Issues
Backup before upgrade:
kubectl get workers,teams,humans -n hiclaw-system -o yaml > backup.yaml
kubectl exec -n hiclaw-system synapse-0 -- tar czf /tmp/matrix-backup.tar.gz /data
kubectl cp hiclaw-system/synapse-0:/tmp/matrix-backup.tar.gz ./matrix-backup.tar.gz
Upgrade Helm chart:
helm upgrade hiclaw higress.io/hiclaw \
-n hiclaw-system \
--reuse-values \
--render-subchart-notes
Restore if needed:
kubectl apply -f backup.yaml
Best Practices
- Start with simple Workers — Test with one Worker before creating complex Teams
- Use Nacos MCP for production — Avoid stdio MCP for security-sensitive operations
- Leverage file sharing — Save large outputs to
/workspace/ to reduce token costs
- Monitor resource usage — Set appropriate CPU/memory limits for Workers
- Human oversight — Always include humans in Teams for critical workflows
- Version control CRDs — Store Worker/Team YAMLs in Git for reproducibility
- Test locally first — Use Docker installation for development, Kubernetes for production
Example: Complete Development Workflow
1. Define Team:
apiVersion: hiclaw.io/v1alpha1
kind: Team
metadata:
name: microservice-team
namespace: hiclaw-system
spec:
description: "Build and deploy microservices"
leader:
runtime: copaw
model: gpt-4o
mcp:
- name: jira
type: nacos
config:
serviceName: mcp-jira
workers:
- name: backend-dev
runtime: hermes
model: claude-3.5-sonnet
mcp:
- name: github
type: nacos
config:
serviceName: mcp-github
skills:
- source: nacos
serviceName: skill-go-microservice
- name: devops
runtime: hermes
model: gpt-4o
mcp:
- name: kubernetes
type: nacos
config:
serviceName: mcp-k8s
skills:
- source: nacos
serviceName: skill-helm-deploy
humans:
- matrix_id: "@tech-lead:matrix.example.com"
role: lead
2. Apply and verify:
kubectl apply -f microservice-team.yaml
kubectl get team microservice-team -n hiclaw-system
3. Interact in Matrix:
@manager: Create a new Go microservice for user authentication
manager: I'll coordinate backend-dev and devops for this task.
backend-dev, please create the authentication service.
backend-dev: Created auth-service with:
- JWT token handling
- PostgreSQL user store
- gRPC API
Code pushed to /workspace/auth-service/
manager: devops, please containerize and prepare for deployment.
devops: Created:
- Dockerfile saved to /workspace/auth-service/Dockerfile
- Helm chart in /workspace/auth-service/chart/
Ready for deployment.
@tech-lead: Looks good! Deploy to staging.
manager: devops, deploy auth-service to staging environment.
devops: Deployed successfully to staging.
Service URL: https://auth-staging.example.com
This workflow demonstrates:
- Manager delegation to specialized Workers
- Shared file system for code artifacts
- MCP integration (GitHub, Kubernetes)
- Human oversight and approval
- End-to-end microservice delivery