mcpField
O
openclaw-control

openclaw-control

github.com/rtgs2017Agent 工作流1.5k59 次安装11 周前更新
代码仓库

关于 openclaw-control

openclaw-control 是一项通过 Naga 的 Agent Server API 管理 OpenClaw AI 助手的技能,面向 OpenClaw 用户。它支持发送任务、查看状态,以及管理 Gateway 和配置。

主要功能

  1. 01通过 API 向 OpenClaw 发送任务
  2. 02检查健康、运行状态与会话信息
  3. 03启动、停止或重启 Gateway
  4. 04获取配置并设置模型与 Hooks
  5. 05通过历史记录查看执行结果

适用场景

  1. 01向 OpenClaw 派发任务
  2. 02检查 OpenClaw 是否可用及当前状态
  3. 03管理 Gateway 的运行状态
  4. 04调整模型或 Hooks 配置

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/rtgs2017/nagaagent --skill openclaw-control

安装后在 Claude Code 中输入/openclaw-control确认已加载。

README 原文English

来自项目 README

README 暂无中文译文,以下为英文原文;中文介绍见上方。

OpenClaw 控制技能

本技能让你能够控制和管理 OpenClaw AI 助手。

核心能力

1. 发送消息给 OpenClaw

通过 Naga 的 Agent Server API 向 OpenClaw 发送任务:

POST /openclaw/send
{
  "message": "你的消息内容",
  "wake_mode": "now"  // 立即执行
}
2. 检查 OpenClaw 状态
  • GET /openclaw/health - 健康检查
  • GET /openclaw/status - 运行状态
  • GET /openclaw/session - 会话信息
3. 管理 Gateway
  • POST /openclaw/gateway/start - 启动
  • POST /openclaw/gateway/stop - 停止
  • POST /openclaw/gateway/restart - 重启
  • GET /openclaw/gateway/status - 状态
4. 配置管理
  • GET /openclaw/config - 获取配置
  • POST /openclaw/config/model - 设置模型
  • POST /openclaw/config/hooks - 配置 Hooks

使用流程

  1. 检查连接: 先调用健康检查确认 OpenClaw 可用
  2. 发送任务: 使用 /openclaw/send 发送消息
  3. 监控结果: 通过 /openclaw/history 查看执行结果

注意事项

  • OpenClaw 默认运行在 http://127.0.0.1:18789
  • 需要配置 Hooks Token 才能发送消息
  • 建议使用免费的 GLM-4.7 模型进行测试

示例

让 OpenClaw 执行任务
{
  "message": "帮我整理桌面上的文件,按类型分类",
  "wake_mode": "now"
}
查询当前状态

调用 GET /openclaw/status 获取 OpenClaw 当前正在做什么。

评论

支持 Markdown