agents
openclaw agents
Section titled “openclaw agents”管理隔離的代理程式(工作區 + 驗證 + 路由)。
相關連結:
- 多代理程式路由:Multi-Agent Routing
- 代理程式工作區:Agent workspace
openclaw agents listopenclaw agents add work --workspace ~/.openclaw/workspace-workopenclaw agents bindingsopenclaw agents bind --agent work --bind telegram:opsopenclaw agents unbind --agent work --bind telegram:opsopenclaw agents set-identity --workspace ~/.openclaw/workspace --from-identityopenclaw agents set-identity --agent main --avatar avatars/openclaw.pngopenclaw agents delete work使用路由綁定將傳入通道流量固定到特定代理程式。
列出綁定:
openclaw agents bindingsopenclaw agents bindings --agent workopenclaw agents bindings --json新增綁定:
openclaw agents bind --agent work --bind telegram:ops --bind discord:guild-a如果您省略 accountId (--bind <channel>),OpenClaw 會在可用時從通道預設值和外掛程式設定掛鉤解析它。
綁定範圍行為
Section titled “綁定範圍行為”- 沒有
accountId的綁定僅符合通道預設帳戶。 accountId: "*"是通道範圍的後備選項(所有帳戶),且比明確的帳戶綁定更不具體。- 如果同一個代理程式已經有一個沒有
accountId的相符通道綁定,而您後來使用明確或解析出的accountId進行綁定,OpenClaw 會就地升級該現有綁定,而不是新增重複項目。
範例:
# initial channel-only bindingopenclaw agents bind --agent work --bind telegram
# later upgrade to account-scoped bindingopenclaw agents bind --agent work --bind telegram:ops升級後,該綁定的路由範圍限定於 telegram:ops。如果您也想要預設帳戶路由,請明確新增(例如 --bind telegram:default)。
移除綁定:
openclaw agents unbind --agent work --bind telegram:opsopenclaw agents unbind --agent work --all身分識別檔案
Section titled “身分識別檔案”每個代理程式工作區都可以在工作區根目錄包含一個 IDENTITY.md:
- 範例路徑:
~/.openclaw/workspace/IDENTITY.md set-identity --from-identity從工作區根目錄(或明確的--identity-file)讀取
頭像路徑是相對於工作區根目錄解析的。
設定身分識別
Section titled “設定身分識別”set-identity 將欄位寫入 agents.list[].identity:
namethemeemojiavatar(相對於工作區的路徑、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", }, }, ], },}