Each agent in a multi-agent setup can override the global sandbox and tool policy. This page covers per-agent configuration, precedence rules, and examples.Documentation Index
Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
Sandboxing
Backends and modes — full sandbox reference.
Sandbox vs tool policy vs elevated
Debug “why is this blocked?”
Elevated mode
Elevated exec for trusted senders.
Configuration examples
Example 1: Personal + restricted family agent
Example 1: Personal + restricted family agent
mainagent: runs on host, full tool access.familyagent: runs in Docker (one container per agent), onlyreadand current-conversation message sends.
Example 2: Work agent with shared sandbox
Example 2: Work agent with shared sandbox
Example 2b: Global coding profile + messaging-only agent
Example 2b: Global coding profile + messaging-only agent
- default agents get coding tools.
supportagent is messaging-only (+ Slack tool).
Example 3: Different sandbox modes per agent
Example 3: Different sandbox modes per agent
Configuration precedence
When both global (agents.defaults.*) and agent-specific (agents.list[].*) configs exist:
Sandbox config
Agent-specific settings override global:agents.list[].sandbox.{docker,browser,prune}.* overrides agents.defaults.sandbox.{docker,browser,prune}.* for that agent (ignored when sandbox scope resolves to "shared").Tool restrictions
The filtering order is:Provider tool profile
tools.byProvider[provider].profile or agents.list[].tools.byProvider[provider].profile.Precedence rules
Precedence rules
- Each level can further restrict tools, but cannot grant back denied tools from earlier levels.
- If
agents.list[].tools.sandbox.toolsis set, it replacestools.sandbox.toolsfor that agent. - If
agents.list[].tools.profileis set, it overridestools.profilefor that agent. - Provider tool keys accept either
provider(e.g.google-antigravity) orprovider/model(e.g.openai/gpt-5.4).
Empty allowlist behavior
Empty allowlist behavior
If any explicit allowlist in that chain leaves the run with no callable tools, OpenClaw stops before submitting the prompt to the model. This is intentional: an agent configured with a missing tool such as
agents.list[].tools.allow: ["query_db"] should fail loudly until the plugin that registers query_db is enabled, not continue as a text-only agent.group:* shorthands that expand to multiple tools. See Tool groups for the full list.
Per-agent elevated overrides (agents.list[].tools.elevated) can further restrict elevated exec for specific agents. See Elevated mode for details.
الترحيل من وكيل واحد
- قبل (وكيل واحد)
- بعد (وكلاء متعددون)
تُرحَّل إعدادات
agent.* القديمة بواسطة openclaw doctor؛ ويفضَّل استخدام agents.defaults + agents.list من الآن فصاعدًا.أمثلة تقييد الأدوات
- وكيل للقراءة فقط
- تنفيذ Shell مع تعطيل أدوات نظام الملفات
- الاتصال فقط
خطأ شائع: “non-main”
الاختبار
بعد تكوين صندوق العزل والأدوات للوكلاء المتعددين:اختبر قيود الأدوات
- أرسل رسالة تتطلب أدوات مقيدة.
- تحقق من أن الوكيل لا يستطيع استخدام الأدوات الممنوعة.
استكشاف الأخطاء وإصلاحها
الوكيل غير موضوع في صندوق العزل رغم `mode: 'all'`
الوكيل غير موضوع في صندوق العزل رغم `mode: 'all'`
- تحقق مما إذا كان هناك
agents.defaults.sandbox.modeعام يتجاوزه. - تكون للإعدادات الخاصة بالوكيل الأولوية، لذلك اضبط
agents.list[].sandbox.mode: "all".
الأدوات لا تزال متاحة رغم قائمة المنع
الأدوات لا تزال متاحة رغم قائمة المنع
- تحقق من ترتيب تصفية الأدوات: عام → وكيل → صندوق عزل → وكيل فرعي.
- يمكن لكل مستوى أن يزيد التقييد فقط، ولا يمكنه إعادة المنح.
- تحقق من ذلك عبر السجلات:
[tools] filtering tools for agent:${agentId}.
الحاوية غير معزولة لكل وكيل
الحاوية غير معزولة لكل وكيل
- اضبط
scope: "agent"في تكوين صندوق العزل الخاص بالوكيل. - الافتراضي هو
"session"، وهو ما ينشئ حاوية واحدة لكل جلسة.
ذات صلة
- وضع الامتيازات المرتفعة
- التوجيه متعدد الوكلاء
- تكوين بيئة العزل
- بيئة العزل مقابل سياسة الأدوات مقابل الامتيازات المرتفعة — تصحيح أخطاء “لماذا تم حظر هذا؟”
- العزل — مرجع بيئة العزل الكامل (الأوضاع، النطاقات، الخلفيات، الصور)
- إدارة الجلسات