OpenClaw skill permissions explained
People coming from mobile apps often look for an "OpenClaw skill permissions" screen approved once at install. As far as the official OpenClaw documentation describes it, that screen does not exist. A skill is a folder with a SKILL.md file that teaches the agent how and when to use tools. It does not ship its own permission grant. Whatever a skill can make the agent do is set by the agent's tool policy, exec approvals, sandbox, and secrets. This guide explains each layer with links to the OpenClaw skills docs, says where the docs leave questions open, and shows which checks a scanner can and cannot do. For limits of our own tool, see limitations.
Why it matters: public research keeps finding hostile skills. Snyk's ToxicSkills study confirmed 76 malicious payloads across 3,984 skills, and Koi's ClawHavoc report found 341 malicious skills in one ClawHub audit. Assume no manifest fences a skill in.
The short answer: a skill borrows the agent's power
The OpenClaw docs describe skills as markdown instruction files. At the start of a run, eligible skills are compiled into a compact block in the system prompt, and the model reads the full SKILL.md when it decides to use one. The docs make two statements that frame everything else:
- An eligible skill "does not grant tool access." Plugins and tool policy still own what actions are available (skills docs, plugins section).
skills_searchandskills_readdo not "grant permission to execute" a skill's commands.
The reverse is also true. If the agent already has host exec with no approval prompts, a skill's instructions can ask the model to use it. The skill is text; the agent's tools are the reach. The docs' own advice is blunt: "Treat third-party skills as untrusted code. Read them before enabling."
What people think are permissions, and what they are
Several skill and config fields look like permissions. Most are not.
| Field or control | What the docs say it does | Is it a permission boundary? |
|---|---|---|
metadata.openclaw.requires (bins, env, config) | Load-time gating: the skill is only eligible if binaries, env vars, or config paths exist | No. It is readiness, not a grant or a restriction on what the skill asks for |
metadata.openclaw.install | Installer hints for dependencies (brew, node, go, uv, download) | No. It describes how to fetch code that runs on your host |
agents.defaults.skills / per-agent skills | Allowlist of which skills an agent can see | Visibility only. The docs say it "is not a host shell authorization boundary" |
disable-model-invocation | Hides a skill from model-initiated selection | No. An authorized user can still invoke it explicitly |
skills.entries.<name>.enabled: false | Disables a skill even when installed | Yes, for loading that skill |
tools.exec.mode, exec approvals | Decide whether host commands run, ask, or are denied | Yes, for host exec |
Sandbox (agents.defaults.sandbox) | Moves tool execution into Docker or another backend | Partly. The docs call it "not a perfect security boundary" |
So "permissions" for a skill really means three questions: which agents can see it, which tools those agents have, and where those tools run.
Layer 1: who can see the skill
OpenClaw loads skills from several roots, highest precedence first: workspace skills/, project .agents/skills, personal ~/.agents/skills, the shared managed ~/.openclaw/skills, Skill Workshop skills, bundled skills, then skills.load.extraDirs and plugin skills. A same-named skill in a higher root wins. Two practical points come out of this:
- Install scope is a permission choice.
openclaw skills install @owner/<slug>goes into the active workspace. Adding--globalputs it in~/.openclaw/skills, visible to all local agents unless allowlists narrow it. - Allowlists narrow visibility.
agents.entries.<id>.skills: []exposes no skills to that agent, and a non-empty list replaces the defaults. It does not stop that agent from running shell commands on its own.
Ironheights flags one visibility risk in config: IH-CFG-008 fires when skills.load.extraDirs or skills.load.allowSymlinkTargets is set, because those roots are trusted by the operator and easy to forget.
Layer 2: what tools the agent has
The tool layer is where the reach is set. According to the sandboxing docs, tool allow and deny policy applies before sandbox rules: a tool denied globally or per agent stays denied. To hard-disable shell access, the docs point to a tool policy deny on exec, not to approvals.
The exec approvals docs describe tools.exec.mode with five values:
| Mode | Behavior per the docs | Risk if a skill turns hostile |
|---|---|---|
deny | Block host exec | Lowest for shell; other tools still apply |
allowlist | Run only allowlisted commands | Limited to what you listed |
ask | Allowlist, and ask a human on misses | A person sees each new command |
auto | Allowlist matches run; misses go to a reviewer | Depends on the reviewer verdicts |
full | Host exec without ordinary prompts | Any instruction the model follows can run |
The docs note that the default exec security for gateway and node hosts is full with ask off, while a sandbox host defaults to deny. Check your effective policy with openclaw approvals get rather than assuming defaults.
One setting is directly about skills. With Auto-allow skill CLIs (autoAllowSkills), executables referenced by known skills are treated as allowlisted on nodes. The docs describe it as a convenience for trusted environments and say to keep it false if you need strict explicit trust. A skill that declares a binary in requires.bins is, in effect, nominating that binary for your allowlist.
tools.elevated is the explicit escape hatch: it runs exec outside the sandbox. Ironheights IH-CFG-007 reports exec security full, exec ask off while security is not deny, or elevated tools enabled.
Layer 3: where the tools run
Sandboxing is off by default per the sandboxing docs. When enabled, tool execution moves into a backend such as Docker while the Gateway stays on the host. Settings like mode: "non-main", scope: "session", and workspaceAccess: "none" decide which sessions are sandboxed and what they can see.
For skills this changes three things the docs call out:
- Sandboxed runs read materialized copies of skills, not the original host paths.
requires.binsis checked on the host at load time, so a binary must also exist inside the container.skills.entries.<name>.envandapiKeyinject secrets into the host process for that agent turn only, not into the sandbox.
Sandboxed code does not see that key; a host-side run does. Ironheights IH-CFG-009 flags configs where sandbox mode is off while host exec, elevated tools, or an open room are enabled.
Secrets: the permission most people forget
A skill config can carry an API key. The docs show skills.entries.<name>.apiKey accepting a plaintext string or a SecretRef object, and env values applied to process.env for the run, then restored. On a shared Gateway, the docs say skills attached to a session "are inputs to that session, not secret storage" and to keep credentials out of skill content.
What to do:
- Use
${ENV}references or SecretRef objects instead of literal keys. IH-CFG-005 flags literal tokens in OpenClaw config. - Never paste a secret into chat because a skill asked. IH-CRED-003 flags skills that request secrets in chat or memory.
- Give each skill its own narrowly scoped key, so revoking one does not break the rest. See Where OpenClaw agents leak credentials.
Install-time controls the docs describe
Two install-time controls in the skills docs behave like a permission gate:
openclaw skills verify @owner/<slug>asks ClawHub for the skill's trust envelope and exits non-zero when ClawHub marks verification failed. ClawHub skill pages also show scan state, with detail pages for VirusTotal, ClawScan, and static analysis.security.installPolicyruns a trusted local policy command before installs continue. It receives metadata and the staged source path, and blocks the install when the command cannot return a valid decision.
The docs do not give a full schema for installPolicy on that page, so we do not describe one here. Check the current OpenClaw docs before wiring a scanner into it.
Where the docs are unclear
We found no OpenClaw document that describes a per-skill capability manifest, such as "this skill may only reach these hosts" or "only read this folder." If one ships later, this post will need an update. Until then, treat these as open questions to test on your own install:
- How
autoAllowSkillsinteracts with theallowlistandautomodes on a given node. - What exactly ClawScan checks. The docs name it but do not define its rules.
What Ironheights checks, and what it cannot
A static scanner reads the skill's files and your config. It does not run anything. Ironheights maps to the layers above like this:
| Layer | Ironheights check |
|---|---|
| Instructions asking for more power | IH-INJ-003 (disable approvals, edit agent files), IH-PRIV-001 (sudo, broad chmod) |
| Install hints that fetch code | IH-EXEC-002, IH-EXEC-001; registry packages listed as dependency unscanned |
| Reach into credentials | IH-CRED-001, IH-NET-002 |
| MCP servers with a wide filesystem root | IH-MCP-003 |
| Config: exec, sandbox, skill roots, secrets | IH-CFG-005 to IH-CFG-009 via audit-config |
Two commands cover most of it:
npx ironheights scan ./path/to/skill
npx ironheights audit-config
The browser scanner runs pattern rules on a pasted skill in your browser without installing anything. The benchmark describes what our own tests measured.
What it cannot do: it does not see the effective runtime policy on a node, it cannot tell what a model will do with ambiguous wording, it does not fetch payloads behind links, and novel obfuscation can slip past fixed rules. audit-config does not replace openclaw security audit. A clean result is a signal, not a guarantee. Read what Ironheights cannot catch before relying on it.
Checklist: set skill permissions on purpose
- [ ] Install third-party skills per workspace, not
--global, unless every agent needs them - [ ] Set per-agent
skillsallowlists; give the agent with production keys the shortest list - [ ] Set
tools.exec.modetoallowlist,ask, ordenyfor agents that run untrusted skills - [ ] Keep
autoAllowSkillsoff unless Gateway and nodes share one trust boundary - [ ] Turn on sandboxing for sessions that touch untrusted input; avoid
tools.elevated - [ ] Use SecretRef or
${ENV}for skill keys; one scoped key per skill - [ ] Run
openclaw skills verifyand a local scan before install - [ ] Review
skills.load.extraDirsand symlink targets - [ ] Re-scan on every update; baseline installed files (guide)
For the full host checklist, see Hardening an OpenClaw install. For a quick per-skill read, use the 10-minute vetting checklist. Public reports of bad skills are on the tracker. An in-agent security skill borrows the same power; here is why it can be bypassed.
If you want a local check before each install, Ironheights is free to try at ironheights.dev.
FAQ
Do OpenClaw skills have their own permission manifest?
Not in the official docs we could find. A skill's frontmatter can declare requirements and installer hints, but the docs describe those as load-time gating. What a skill can make the agent do depends on the agent's tool policy, exec approvals, sandbox, and secrets.
Does a skill allowlist stop a skill from running shell commands?
No. Agent skill allowlists control which skills an agent sees. The OpenClaw docs state it is not a host shell authorization boundary. Restrict shell access with tool policy, exec approvals, sandboxing, and OS-user isolation.
Is sandboxing enough to contain a malicious skill?
It helps, but the OpenClaw docs call it not a perfect security boundary. Elevated tools can run outside it, host-side env injection still exposes secrets to host runs, and data the sandbox can see can still leave if network access is open.
Can Ironheights tell me a skill's effective permissions?
No. It reads skill files and your OpenClaw config and flags risky patterns and settings. It does not compute the live policy on a node or predict model behavior. Use openclaw approvals get and openclaw sandbox explain for the effective runtime view.