Agent Control
Translate short chat commands into OpenClaw CLI agent operations.
Command grammar
Accept these commands (case-insensitive, trim extra spaces):
- - INLINECODE0
- INLINECODE1
- INLINECODE2
- INLINECODE3
- INLINECODE4
- INLINECODE5
- INLINECODE6
If input is ambiguous, ask one focused question.
Execution mapping
Run these exact command patterns:
-
openclaw agents list
-
openclaw agents add <name> --workspace <path> --model <id>
- Omit optional flags when missing.
- Default workspace when omitted:
~/clawd/agents/<name>.
- - Switch (route this channel/account to an agent):
-
openclaw agents bind --agent <name> --bind <channel[:accountId]>
- If channel is omitted, infer from current surface when possible (e.g.
webchat).
-
openclaw agents bind --agent <name> --bind <binding>
-
openclaw agents unbind --agent <name> --bind <binding>
- Require explicit confirmation in the same turn for destructive action.
- Then run:
openclaw agents delete <name>
- INLINECODE15
Response style
After each operation, return:
- 1. A one-line result (success/failure)
- The next useful command for the user
Keep it brief and practical.
Safety rules
- - Treat
agent delete as destructive: confirm before running. - Never run unrelated shell commands.
- If a command fails, show the error and one concrete fix.
scripts/
Use scripts/example.py as a deterministic helper wrapper for command parsing/execution when needed.
代理控制
将简短聊天指令转换为OpenClaw CLI代理操作。
指令语法
接受以下指令(不区分大小写,去除多余空格):
- - agent list
- agent create <名称> [workspace=<路径>] [model=]
- agent switch <名称> [channel=<频道[:账户ID]>]
- agent bind <名称> <频道[:账户ID]>
- agent unbind <名称> <频道[:账户ID]>
- agent delete <名称>
- agent identity <名称> [display=...] [emoji=🗡️] [avatar=<路径>]
若输入存在歧义,则提出一个聚焦性问题。
执行映射
运行以下精确指令模式:
- openclaw agents list
- openclaw agents add <名称> --workspace <路径> --model
- 缺失时省略可选标志。
- 省略时默认工作空间:~/clawd/agents/<名称>。
- openclaw agents bind --agent <名称> --bind <频道[:账户ID]>
- 若频道省略,则尽可能从当前界面推断(例如webchat)。
- openclaw agents bind --agent <名称> --bind <绑定信息>
- openclaw agents unbind --agent <名称> --bind <绑定信息>
- 对破坏性操作需在同一轮对话中获取明确确认。
- 然后运行:openclaw agents delete <名称>
- openclaw agents set-identity --agent <名称> [--name <显示名称>] [--emoji <表情符号>] [--avatar <路径>]
响应风格
每次操作后返回:
- 1. 一行结果(成功/失败)
- 用户下一步可用的指令
保持简洁实用。
安全规则
- - 将agent delete视为破坏性操作:执行前需确认。
- 绝不运行无关的shell指令。
- 若指令执行失败,显示错误信息及一个具体修复方案。
scripts/
必要时使用scripts/example.py作为指令解析/执行的确定性辅助封装器。