openclaw agents
管理隔离的 Agent(Workspace + 认证 + 路由)。
相关内容:
- 多 Agent 路由:Multi-Agent Routing
- Agent Workspace:Agent workspace
示例
openclaw agents list
openclaw agents add work --workspace ~/.openclaw/workspace-work
openclaw agents set-identity --workspace ~/.openclaw/workspace --from-identity
openclaw agents set-identity --agent main --avatar avatars/openclaw.png
openclaw agents delete work
Identity 文件
每个 Agent Workspace 可以在根目录包含一个 IDENTITY.md 文件:
- 示例路径:
~/.openclaw/workspace/IDENTITY.md set-identity --from-identity会从 Workspace 根目录读取(或从明确指定的--identity-file读取)
Avatar 路径相对于 Workspace 根目录解析。
设置身份
set-identity 会将字段写入 agents.list[].identity:
namethemeemojiavatar(Workspace 相对路径、http(s) URL 或 data URI)
从 IDENTITY.md 加载:
openclaw agents set-identity --workspace ~/.openclaw/workspace --from-identity
显式覆盖字段:
openclaw agents set-identity --agent main --name "OpenClaw" --emoji "🦞" --avatar avatars/openclaw.png
配置示例:
{
agents: {
list: [
{
id: "main",
identity: {
name: "OpenClaw",
theme: "space lobster",
emoji: "🦞",
avatar: "avatars/openclaw.png",
},
},
],
},
}