openclaw agents
अलग-थलग agents प्रबंधित करें (workspaces + auth + routing).
संबंधित:
- Multi-agent routing
- Agent workspace
- Skills config: skill दृश्यता कॉन्फ़िगरेशन।
उदाहरण
Routing bindings
इनबाउंड channel traffic को किसी खास agent से पिन करने के लिए routing bindings का उपयोग करें। यदि आप प्रति agent अलग-अलग दिखने वाली skills भी चाहते हैं, तोopenclaw.json में agents.defaults.skills और agents.list[].skills कॉन्फ़िगर करें। Skills config और Configuration reference देखें।
bindings सूचीबद्ध करें:
accountId (--bind <channel>) छोड़ देते हैं, तो OpenClaw इसे plugin setup hooks, forced account binding, या channel के कॉन्फ़िगर किए गए account count से हल करता है।
यदि आप bind या unbind के लिए --agent छोड़ देते हैं, तो OpenClaw मौजूदा default agent को target करता है।
--bind format
| Format | अर्थ |
|---|---|
--bind <channel>:* | channel पर सभी accounts से मिलान करें। |
--bind <channel>:<account> | एक account से मिलान करें। |
--bind <channel> | केवल default account से मिलान करें, जब तक CLI सुरक्षित रूप से plugin-specific account scope हल न कर सके। |
Binding scope behavior
accountIdके बिना stored binding केवल channel default account से मिलान करती है।accountId: "*"channel-wide fallback (सभी accounts) है और explicit account binding से कम specific है।- यदि उसी agent के पास पहले से
accountIdके बिना matching channel binding है, और आप बाद में explicit या resolvedaccountIdके साथ bind करते हैं, तो OpenClaw duplicate जोड़ने के बजाय उसी existing binding को inplace upgrade करता है।
telegram:alerts तक scoped होती है। यदि आप default-account routing भी चाहते हैं, तो उसे स्पष्ट रूप से जोड़ें (उदाहरण के लिए --bind telegram:default)।
bindings हटाएँ:
unbind या तो --all स्वीकार करता है या एक या अधिक --bind values, दोनों नहीं।
Command surface
agents
बिना subcommand के openclaw agents चलाना openclaw agents list के बराबर है।
agents list
Options:
--json--bindings: केवल per-agent counts/summaries नहीं, बल्कि पूरी routing rules शामिल करें
agents add [name]
Options:
--workspace <dir>--model <id>--agent-dir <dir>--bind <channel[:accountId]>(दोहराने योग्य)--non-interactive--json
- कोई भी explicit add flags पास करने से command non-interactive path में चला जाता है।
- Non-interactive mode के लिए agent name और
--workspaceदोनों आवश्यक हैं। mainreserved है और नए agent id के रूप में उपयोग नहीं किया जा सकता।- interactive mode में, auth seeding केवल portable static profiles
(
api_keyऔर default रूप से statictoken) कॉपी करती है। OAuth refresh-token profiles realmainagent store से read-through inheritance के जरिए ही उपलब्ध रहती हैं। यदि configured default agentmainनहीं है, तो नए agent पर OAuth profiles के लिए अलग से sign in करें।
agents bindings
Options:
--agent <id>--json
agents bind
Options:
--agent <id>(मौजूदा default agent पर default होता है)--bind <channel[:accountId]>(दोहराने योग्य)--json
agents unbind
Options:
--agent <id>(मौजूदा default agent पर default होता है)--bind <channel[:accountId]>(दोहराने योग्य)--all--json
agents delete <id>
Options:
--force--json
maindelete नहीं किया जा सकता।--forceके बिना, interactive confirmation आवश्यक है।- Workspace, agent state, और session transcript directories को Trash में move किया जाता है, hard-delete नहीं किया जाता।
- जब Gateway reachable होता है, deletion Gateway के जरिए भेजा जाता है ताकि config और session-store cleanup runtime traffic वाले writer को ही साझा करें। यदि Gateway तक नहीं पहुँचा जा सकता, तो CLI offline local path पर fallback करता है।
- यदि किसी अन्य agent का workspace वही path है, इस workspace के अंदर है, या इस workspace को contain करता है,
तो workspace retain किया जाता है और
--jsonworkspaceRetained,workspaceRetainedReason, औरworkspaceSharedWithreport करता है।
Identity files
हर agent workspace में workspace root पर एकIDENTITY.md शामिल हो सकता है:
- Example path:
~/.openclaw/workspace/IDENTITY.md set-identity --from-identityworkspace root (या explicit--identity-file) से पढ़ता है
Set identity
set-identity fields को agents.list[].identity में लिखता है:
namethemeemojiavatar(workspace-relative path, http(s) URL, या data URI)
--agent <id>--workspace <dir>--identity-file <path>--from-identity--name <name>--theme <theme>--emoji <emoji>--avatar <value>--json
- target agent चुनने के लिए
--agentया--workspaceका उपयोग किया जा सकता है। - यदि आप
--workspaceपर निर्भर करते हैं और कई agents वह workspace साझा करते हैं, तो command fail होती है और आपसे--agentपास करने को कहती है। - Local workspace-relative avatar image files 2 MB तक सीमित हैं। HTTP(S) URLs और
data:URIs को local file-size limit से check नहीं किया जाता। - जब कोई explicit identity fields प्रदान नहीं किए जाते, तो command
IDENTITY.mdसे identity data पढ़ती है।
IDENTITY.md से load करें: