mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Automated rebrand of all openclaw references to hanzo bot: - Package: openclaw -> @hanzo/bot - Binary: openclaw -> hanzo-bot - Config: ~/.openclaw -> ~/.hanzo/bot - Docker: ghcr.io/hanzoai/bot - Env vars: OPENCLAW_* -> BOT_* - Bundle IDs: ai.hanzo.bot.* - Product name: Hanzo Bot
1.9 KiB
1.9 KiB
read_when, summary, title, x-i18n
| read_when | summary | title | x-i18n | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
`hanzo-bot agents` 的 CLI 参考(列出/添加/删除/设置身份) | agents |
|
hanzo-bot agents
管理隔离的智能体(工作区 + 认证 + 路由)。
相关内容:
示例
openclaw agents list
openclaw agents add work --workspace ~/.hanzo/bot/workspace-work
openclaw agents set-identity --workspace ~/.hanzo/bot/workspace --from-identity
openclaw agents set-identity --agent main --avatar avatars/openclaw.png
openclaw agents delete work
身份文件
每个智能体工作区可以在工作区根目录包含一个 IDENTITY.md:
- 示例路径:
~/.hanzo/bot/workspace/IDENTITY.md set-identity --from-identity从工作区根目录读取(或从显式指定的--identity-file读取)
头像路径相对于工作区根目录解析。
设置身份
set-identity 将字段写入 agents.list[].identity:
namethemeemojiavatar(工作区相对路径、http(s) URL 或 data URI)
从 IDENTITY.md 加载:
openclaw agents set-identity --workspace ~/.hanzo/bot/workspace --from-identity
显式覆盖字段:
openclaw agents set-identity --agent main --name "Hanzo Bot" --emoji "🦞" --avatar avatars/openclaw.png
配置示例:
{
agents: {
list: [
{
id: "main",
identity: {
name: "Hanzo Bot",
theme: "space lobster",
emoji: "🦞",
avatar: "avatars/openclaw.png",
},
},
],
},
}