Use skill if you are configuring an OpenClaw agent workspace or runtime policy: workspace files, tool profiles, allow/deny lists, skills loading, memory, or security settings.
From init-openclaw-agentnpx claudepluginhub yigitkonur/skills-by-yigitkonurThis skill uses the workspace's default tool permissions.
references/agent-identity.mdreferences/security-patterns.mdreferences/skills-loading.mdreferences/tool-profiles.mdreferences/tool-restrictions.mdreferences/workspace-files.mdConfigure OpenClaw agents from the real runtime layout, not from assumptions. The executor should always know which machine owns the runtime, which workspace belongs to the target agent, and which file controls each behavior.
Use this skill when the task involves:
AGENTS.md, SOUL.md, IDENTITY.md, USER.md, TOOLS.md, or memory filesfull, coding, messaging, minimal) for an agentDo NOT use this skill for:
AGENTS.md or CLAUDE.md outside OpenClawAGENTS.md and memory files hold operating rules, SOUL.md holds persona and boundaries, IDENTITY.md holds name/theme/emoji/avatar, and TOOLS.md is guidance only.agents.list[].workspace, agents.list[].tools, and agents.list[].sandbox for the target agent unless the user explicitly wants a global default.openclaw.json, but host exec approvals and allowlists live in exec-approvals.json on the execution host.~/.openclaw on host installs/home/node/.openclaw; edit the mounted host directory or the in-container path that maps thereopenclaw.json in that OpenClaw home and uses JSON5 syntax; if the CLI is available, confirm the active file with openclaw config file or the runtime's OPENCLAW_CONFIG_PATHexec-approvals.json in that same OpenClaw home on the machine that actually executes host commandsagents.defaults.workspace and defaults to ~/.openclaw/workspaceagents.list[].workspace~/.openclaw/skills; workspace-specific skills live at <workspace>/skillsagents.defaults and agents.list; legacy agent.* keys may still exist and can be migrated with openclaw doctorIf the gateway runs remotely, all of these paths refer to the gateway host, not the laptop you are currently using.
What part of the OpenClaw agent needs work?
|
+-- "Create or revise the agent workspace"
| +-- Read references/workspace-files.md
| +-- If name/theme/avatar only ---------- Read references/agent-identity.md
| +-- Then follow: New Agent Setup workflow (below)
|
+-- "Choose or customize tool access"
| +-- Read references/tool-profiles.md
| +-- Need fine-grained restrictions? ---- Read references/tool-restrictions.md
|
+-- "Configure allow/deny lists"
| +-- Global single-agent policy --------- tools.allow / tools.deny
| +-- Multi-agent per-agent policy ------- agents.list[].tools.*
| +-- Provider-specific limits ----------- tools.byProvider / agents.list[].tools.byProvider
| +-- Read references/tool-restrictions.md
|
+-- "Set up skill loading"
| +-- extraDirs / watch / allowBundled --- Read references/skills-loading.md
| +-- Per-skill env or apiKey ------------ Read references/skills-loading.md
| +-- Sandbox env mismatch? -------------- Read references/security-patterns.md
|
+-- "Configure memory or durable behavior"
| +-- Workspace behavior files ----------- Read references/workspace-files.md
| +-- memory_search / memory_get tools --- Read references/tool-profiles.md
|
+-- "Harden exec, sandbox, or loop safety"
| +-- Host exec approvals ---------------- Read references/security-patterns.md
| +-- Elevated mode ---------------------- Read references/security-patterns.md
| +-- Sandbox boundaries ----------------- Read references/security-patterns.md
| +-- Tool-loop detection ---------------- Read references/security-patterns.md
|
+-- "Debug config issues"
+-- Tool blocked unexpectedly ---------- Read references/tool-restrictions.md
+-- Skill not loading ------------------ Read references/skills-loading.md
+-- Wrong workspace or agent ----------- Read references/workspace-files.md
+-- Sandbox/elevated confusion --------- Read references/security-patterns.md
Before you change anything:
openclaw.json for that runtimeagents.defaults.workspace for the default agent, oragents.list[] entry for a named agentAGENTS.mdSOUL.mdIDENTITY.mdUSER.mdTOOLS.mdMEMORY.md and memory/ if durable memory is in scopeexec-approvals.json on the execution host tooIf you cannot prove which runtime or workspace is active, stop and ask instead of inventing paths.
Before drafting config, answer these questions:
Read references/workspace-files.md.
AGENTS.mdSOUL.mdUSER.mdIDENTITY.mdTOOLS.mdMEMORY.md or daily memory filesIf the task is specifically about the agent's name, theme, emoji, or avatar, also read references/agent-identity.md.
Read references/tool-profiles.md.
Use the smallest fitting base profile:
| Profile | Includes | Best for |
|---|---|---|
full | no profile restriction | highly trusted agents that truly need broad access |
coding | filesystem, runtime, sessions, memory, image | developer-facing agents |
messaging | messaging plus session list/history/send/status | communication-only agents |
minimal | session_status only | agents that should start nearly tool-less |
For a new local config, onboarding may write tools.profile: "coding" when unset. Do not assume that means coding is universally correct for the agent you are configuring.
Read references/tool-restrictions.md.
Choose the right scope before editing:
tools.*agents.list[].tools.*tools.byProvider or agents.list[].tools.byProviderThen apply the restriction model in this order:
Read references/skills-loading.md.
skills.load.extraDirs for additional skill rootsskills.entries.<skillKey> for per-skill enabled, env, apiKey, and custom configskills.allowBundled if bundled skills need an allowlistmetadata.openclaw.skillKeyIf the agent runs inside a sandbox, do not assume skills.entries.*.env reaches the sandboxed skill process. Route sandbox env through the sandbox config or image instead.
Read references/security-patterns.md.
At minimum, decide all of the following explicitly:
tools.exec.*exec-approvals.jsontools.elevated is enabled and who may use itworkspaceAccesstools.loopDetection should be enabled for this agentAfter editing:
openclaw doctoropenclaw statusopenclaw agents list --bindingsopenclaw sandbox explain| Pitfall | Fix |
|---|---|
Writing persona, escalation rules, or tool policy in IDENTITY.md | Put persona/boundaries in SOUL.md, operating rules in AGENTS.md, and tool policy in openclaw.json |
Editing the local ~/.openclaw when the gateway runs elsewhere | Edit the gateway host or the mounted container path that owns the runtime |
Assuming minimal includes read or exec | minimal starts with session_status only; allow extra tools explicitly |
Using group:web to grant browser access | browser and canvas live in group:ui; group:web is only web_search and web_fetch |
Expecting skills.entries.*.env to reach sandboxed skills | Use sandbox docker env or a custom sandbox image |
Tightening tools.exec but leaving host approvals permissive | Update both openclaw.json and exec-approvals.json |
Restricting one agent by editing only global tools.* in a multi-agent gateway | Put agent-specific restrictions in agents.list[].tools.* |
| Do this | Not that |
|---|---|
| Confirm the active runtime host and workspace before editing | Assume ~/.openclaw on the current machine is authoritative |
| Keep workspace files split by purpose | Turn one file into a dumping ground for persona, policy, and secrets |
| Start with a restrictive profile and add only the missing tools | Use full for convenience and plan to tighten it later |
| Use agent-specific tool policy for named agents | Mutate global defaults when only one agent should change |
| Keep secrets in runtime config or secret refs, not workspace files | Put API keys in AGENTS.md, SOUL.md, or IDENTITY.md |
Verify with doctor, status, and a canary task | Assume a JSON edit took effect correctly |
Read the smallest reference set that unblocks the current decision:
| Need | Reference |
|---|---|
| Workspace file roles, where durable behavior belongs, memory file layout | references/workspace-files.md |
| Name/theme/emoji/avatar updates and identity sync | references/agent-identity.md |
| Choosing a base tool profile | references/tool-profiles.md |
| Allow/deny lists, tool groups, provider and agent precedence | references/tool-restrictions.md |
Skill precedence, extraDirs, skills.entries, sandbox env boundaries | references/skills-loading.md |
| Exec approvals, elevated mode, sandboxing, loop detection, verification | references/security-patterns.md |
IDENTITY.md as the place for rules or tool permissionstools.* is the right edit scope in a multi-agent gatewaySKILL.md focused and push durable detail into the routed references