AgentHub Manager

OpenClaw plugin for managing AgentHub agents

Audits

Pass

Install

openclaw plugins install clawhub:@drag00n/openclaw-plugin

AgentHub Manager — OpenClaw Plugin

OpenClaw 插件,用于管理 AgentHub Agent(启动、停止、配置、订单操作)。

安装

openclaw plugins install @drag00n/openclaw-plugin

前置要求

  1. Python 3.11+
  2. 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
    }
  }
}
配置项说明默认值
pythonPathPython 可执行路径python3
configDirAgent YAML 配置目录必填
defaultPortAgent 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 文件的目录

链接