← 返回 Skills 市场
279
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install agent-manager-hxx
功能描述
管理 OpenClaw 系统中的 Agent 生命周期,包括 Agent 配置、Matrix 账号注册、账号绑定等操作。
使用说明 (SKILL.md)
Agent Manager
用于管理 OpenClaw 系统中 Agent 的完整生命周期,包括 Agent 配置、Matrix 账号注册、账号绑定等操作。
功能概述
- Agent 配置管理: 添加、移除、列出 Agent 配置
- Matrix 账号管理: 注册新账号、添加、移除 Matrix 账号
- 绑定管理: 建立 Agent 与 Matrix 账号的关联
- 一键设置: 自动化完成整个 Agent 设置流程
脚本说明
1. setup_agent.sh - 一键设置脚本
完整设置流程,自动完成以下步骤:
- 添加 Agent 配置到 openclaw.json
- 在 Matrix 服务器注册账号
- 将账号添加到 openclaw.json 配置
- 绑定 Agent 与 Matrix 账号
用法:
bash scripts/setup_agent.sh \x3Cagent_id> \x3Cagent_name>
参数:
agent_id: Agent 的唯一标识(如: juezhi)agent_name: Agent 的显示名称(如: 货绝知)
环境变量:
HOMESERVER_URL: Matrix 服务器地址(默认: http://localhost:8008)CONFIG_PATH: openclaw.json 配置文件路径(默认: ~/.openclaw/openclaw.json)
示例:
# 默认设置
bash scripts/setup_agent.sh "huojuezhi" "货绝知"
# 指定 Matrix 服务器
HOMESERVER_URL=http://192.168.1.100:8008 bash scripts/setup_agent.sh "huojuezhi" "货绝知"
2. config_manager.py - 配置管理器
用于直接管理 openclaw.json 配置文件。
用法:
python3 scripts/config_manager.py \x3Ccommand> [options]
Agent 管理
# 列出所有 Agent
python3 scripts/config_manager.py agents list
# 添加 Agent
python3 scripts/config_manager.py agents add \x3Cname> [id] [workspace] [model]
# 移除 Agent
python3 scripts/config_manager.py agents remove \x3Cname>
Matrix 账号管理
# 列出所有 Matrix 账号
python3 scripts/config_manager.py accounts list
# 添加 Matrix 账号
python3 scripts/config_manager.py accounts add \x3Cname> \x3Caccesstoken> [id] [homeserver] [userId] [dm_policy]
# 移除 Matrix 账号
python3 scripts/config_manager.py accounts remove \x3Cname>
绑定管理
# 列出所有绑定
python3 scripts/config_manager.py bindings list
# 添加绑定
python3 scripts/config_manager.py bindings add \x3CagentId> \x3CaccountId> [channel]
# 移除绑定
python3 scripts/config_manager.py bindings remove \x3CagentId> \x3CaccountId>
3. matrix_register.sh - Matrix 账号注册
用于在 Matrix 服务器上注册新账号并获取 Access Token。
用法:
bash scripts/matrix_register.sh \x3Cusername> \x3Cpassword>
环境变量:
HOMESERVER_URL: Matrix 服务器地址(默认: http://localhost:8008)
输出格式:
RESULT_USER_ID: @username:homeserver
RESULT_ACCESS_TOKEN: syt_xxxxx...
示例:
# 注册账号
HOMESERVER_URL=http://192.168.1.100:8008 bash scripts/matrix_register.sh "huojuezhi" "password123"
配置文件
配置文件默认路径: ~/.openclaw/openclaw.json
配置文件结构:
agents: Agent 列表配置channels.matrix.accounts: Matrix 账号配置bindings: Agent 与账号的绑定关系
依赖
- Python 3
- pypinyin (用于将中文名转为拼音 ID)
- curl (用于 Matrix API 调用)
安全使用建议
This skill appears to do what it says: create/manage agents, register Matrix accounts, store tokens and bind agents. Before running it: (1) verify the HOMESERVER_URL points to a trusted Matrix server; (2) inspect ~/.openclaw/tmp-workspace (and any files it will copy) to avoid installing unwanted files; (3) be aware that Matrix access tokens will be written in plaintext to your openclaw.json—restrict file permissions or encrypt the file if needed; (4) consider overriding the default predictable password used by setup_agent.sh with a stronger secret; and (5) back up your openclaw.json before mass changes. If you need the skill to avoid persisting secrets, request or modify the scripts to use a secure credential store instead of plain JSON.
功能分析
Type: OpenClaw Skill
Name: agent-manager-hxx
Version: 1.0.0
The skill bundle automates OpenClaw agent setup and Matrix account management but contains security vulnerabilities. Specifically, `setup_agent.sh` implements a predictable hardcoded password pattern for account registration, and `matrix_register.sh` uses brittle JSON parsing via `sed` (lack of input sanitization). While the scripts' behaviors are aligned with the stated purpose of managing agent lifecycles, the combination of weak authentication defaults and the handling of sensitive Matrix access tokens in plaintext configuration files constitutes a high-risk profile.
能力评估
Purpose & Capability
Name/description (agent lifecycle, Matrix account registration, bindings) match the included scripts and SKILL.md: scripts add/remove agents, register/login to Matrix, write accounts and bindings into openclaw.json. No unrelated services or credentials are requested.
Instruction Scope
Instructions operate on the OpenClaw config (default ~/.openclaw/openclaw.json) and a Matrix homeserver (HOMESERVER_URL). They read/write local config and call the Matrix API only; SKILL.md mentions HOMESERVER_URL and CONFIG_PATH although the registry metadata declared no required env vars (these are optional). The one-scripts flow (setup_agent.sh) copies a local tmp-workspace into a new workspace which could introduce unwanted files if that directory is untrusted—user should inspect tmp-workspace before running.
Install Mechanism
No install spec; this is a script/python-based bundle. No network-based installers or third-party package downloads are performed by the skill itself. Dependencies are standard (python3, curl, pypinyin).
Credentials
The skill handles Matrix access tokens (it obtains them via the homeserver and writes them into openclaw.json). Although no required secrets are declared in registry metadata, this behavior is expected for a manager that stores account credentials. Important security note: access tokens are persisted in plaintext within the JSON config file and the setup script generates a predictable password pattern (agent_id + fixed suffix). Users should be aware and may want to supply stronger passwords and secure the config file (filesystem permissions, encryption).
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide agent settings. It writes to its own application config (openclaw.json) and creates agent workspace directories—this is expected for its purpose.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-manager-hxx - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-manager-hxx触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of agent-manager skill for OpenClaw system.
- Manage the full lifecycle of Agents, including configuration, Matrix account registration, and account binding.
- Provides one-click setup with setup_agent.sh for automating Agent configuration and Matrix integration.
- Includes config_manager.py for direct management of openclaw.json: add/remove/list Agents, Matrix accounts, and bindings.
- Adds matrix_register.sh for registering new Matrix accounts via command line.
- Supports environment variables for server address and config file location.
- Requires Python 3, pypinyin, and curl.
元数据
常见问题
agent-manager 是什么?
管理 OpenClaw 系统中的 Agent 生命周期,包括 Agent 配置、Matrix 账号注册、账号绑定等操作。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 279 次。
如何安装 agent-manager?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-manager-hxx」即可一键安装,无需额外配置。
agent-manager 是免费的吗?
是的,agent-manager 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
agent-manager 支持哪些平台?
agent-manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 agent-manager?
由 货又星(@cxlhyx)开发并维护,当前版本 v1.0.0。
推荐 Skills