AgentHub Manager
OpenClaw plugin for managing AgentHub agents
Audits
PassInstall
openclaw plugins install clawhub:@drag00n/openclaw-pluginAgentHub Manager — OpenClaw Plugin
OpenClaw 插件,用于管理 AgentHub Agent(启动、停止、配置、订单操作)。
安装
openclaw plugins install @drag00n/openclaw-plugin
前置要求
- Python 3.11+
- AgentClient CLI 已安装且在 PATH 中
cd /path/to/myAgent-Shopping/AgentClient
pip install -e .
# 确认可用
agenthub-client --help
配置
在 OpenClaw 设置中配置以下参数:
{
"plugins": {
"@drag00n/openclaw-plugin": {
"pythonPath": "python3",
"configDir": "/path/to/your/agent/configs",
"defaultPort": 8765
}
}
}
| 配置项 | 说明 | 默认值 |
|---|---|---|
pythonPath | Python 可执行路径 | python3 |
configDir | Agent YAML 配置目录 | 必填 |
defaultPort | Agent HTTP API 端口 | 8765 |
验证
openclaw plugins list
# 应显示: @drag00n/openclaw-plugin 0.1.1
提供的工具
| 工具 | 用途 |
|---|---|
agenthub_list | 列出所有 Agent 配置 |
agenthub_start | 启动 Agent |
agenthub_stop | 停止 Agent |
agenthub_status | 查看运行状态 |
agenthub_create | 创建新 Agent 配置 |
agenthub_config_view | 查看配置文件 |
agenthub_config_edit | 编辑配置 |
agenthub_order | 订单操作(创建/报价/确认/查询) |
示例
# 启动轴承卖家 Agent
openclaw run "用 agenthub_start 启动 configs/bearing_seller_prod.yaml"
# 查看运行状态
openclaw run "查看所有 Agent 状态"
故障排查
- "未找到 agenthub-client" → 确认
pip install -e .已执行 - "配置目录不存在" → 确认
configDir指向包含.yaml文件的目录
