skip to content

As the lead for a team's OpenClaw Gateway, what rules would you set for which third-party plugins may be installed and enabled?

level: principalimportance: should knowfreq 5%

answer

  1. in-process means full trust
  2. an exclusive allowlist in config
  3. pinned versions, reviewed updates
  4. an operator install policy command
  5. prefer a skill or tool server

basics

~20 s

Treat every OpenClaw plugin as code running with the Gateway's privileges. In 2026.9.9 that means an exclusive plugins.allow list in reviewed config, pinned versions, a security.installPolicy check, re-review when an update declares new capabilities, and a skill or MCP server whenever one would do.

solid answer

~50 s

Native plugins run in-process with the Gateway and are not sandboxed, so a malicious one is arbitrary code execution with everything the Gateway holds. I'd keep a short approved list: bundled and official plugins by default, ClawHub or other third-party packages only after someone reads the code. Enforce it with an explicit `plugins.allow` list in version-controlled `openclaw.json`, exact pinned versions (`--pin` for npm, `clawhub:[email protected]`, a git tag), and a `security.installPolicy` command that can warn or block installs. Updates get the same review, and OpenClaw asks for capability consent again when an update declares more. I'd run `openclaw security audit --deep` as a diagnostic scan, grant `hooks.allowConversationAccess` only where needed, and decide whether the owner-only `plugins` tool may install from chat. The tradeoff is speed of adoption against blast radius, and the blast radius is the whole Gateway.

go deeper

for a junior

Recall that an OpenClaw plugin is code running inside the Gateway, so installing one is a trust decision, not a settings change.

for a middle

Explain the controls: plugins.allow and plugins.deny, pinned versions per source, and what security.installPolicy and capability consent each check.

for a senior

Show where each control stops: allowlists name ids not provenance, --force approves no policy, the sandbox never covers plugins, and audits are diagnostics.

for a principal

Own the stance: core-only, curated or open, who reviews and re-reviews, when a skill or tool server replaces a plugin, and when to split Gateways.

## Why this is a policy question OpenClaw supports **one trust boundary per Gateway**: a single operator or a mutually trusting team. Native plugins sit inside that boundary. They run **in-process** with the Gateway, are not sandboxed, and can register tools, network handlers, hooks and services; a buggy one can destabilise the Gateway and a malicious one is equivalent to arbitrary code execution in the OpenClaw process, with access to the credentials and channels it holds. The tool sandbox does not help here: sandbox backends isolate tool execution, not native plugins. And the plugin SDK is marked experimental, so every OpenClaw upgrade can break a plugin. A lead has to decide how much third-party code the team will carry, knowing there is no technical fence around it. The controls below describe OpenClaw 2026.9.9. ## The options a team picks from | Stance | Sources allowed | Review cost | Risk | | --- | --- | --- | --- | | Core only | bundled and official catalog plugins | lowest | lowest; you trust the OpenClaw project | | Curated | the above plus named ClawHub packages after code review | moderate, repeated on every update | moderate | | Open | any npm, git or local source after review | high | highest; easy to skip the review | Most small teams land on **curated**: the core set plus a short list of reviewed packages, each with a named owner. ## Controls that enforce the rule - **`plugins.allow`** is an exclusive allowlist of plugin ids, kept in version-controlled `openclaw.json`. When it is unset, discovered non-bundled plugins may auto-load, and startup logs a line saying so. Note its limit: it permits ids to load and does not verify where a copy came from. - **`plugins.deny`** wins over the allowlist and per-plugin enablement, for anything banned outright. - **`security.installPolicy`** (off unless enabled) runs a trusted local command after the source is staged and before install continues, returning `allow`, `warn` or `block` for plugin and skill installs. A `warn` stops before commit until an operator acknowledges it; `--force` never overrides it. - **Source trust**: ClawHub and the official catalog are trusted sources, and community ClawHub releases are checked against ClawHub's trust record. Arbitrary npm, git and local sources warn and require `--force` noninteractively. OpenClaw does not run its own dangerous-code blocking at install time, so a person or your policy command has to. - **Capability consent**: third-party plugins show their declared channels, providers, tools, hooks, MCP servers and other surfaces before install or enable, and an update that declares more needs fresh consent. - **Hook grants**: only give `plugins.entries.<id>.hooks.allowConversationAccess` to plugins that must read conversation content. ## Update discipline - Pin exact versions: `--pin` for npm, `clawhub:<package>@1.2.3`, a tag or commit in a `git:` spec. - Treat `openclaw plugins update` as a new install for review purposes; read the diff, not just the changelog. - Run `openclaw security audit --deep` after changes; its plugin code-safety checks are a diagnostic scan, not a guarantee. - Decide whether agents keep the owner-only `plugins` tool, which can install official or ClawHub plugins from a conversation. ## When not to add a plugin at all Many requests do not need Gateway code. If the agent already has the tools, a skill supplies the workflow. If the integration already exists as a tool server, connecting it under `mcp.servers` keeps its code outside the Gateway process, and its tools still pass through tool policy. A plugin is justified for a new channel, a new provider, or a hook that must enforce something inside the Gateway. ## A baseline to propose 1. Set `plugins.allow` explicitly and review every change to it like a code change. 2. Allow bundled and official plugins; admit a third-party plugin only with a named owner, a code review and a pinned version. 3. Enable `security.installPolicy` with a command that blocks unpinned or unlisted sources. 4. Re-review on update and whenever capability consent is requested again. 5. Split into separate Gateways when users stop trusting each other; per-plugin settings do not create tenants.

  • Does `plugins.allow` prove a plugin came from a trusted source?
    No. It permits plugin ids to load; it does not verify provenance or choose which same-id copy loads. Provenance comes from how the plugin was installed: the install record, the ClawHub or catalog source and integrity data. When diagnostics say a plugin loaded without install provenance, inspect it and reinstall from a trusted source.
  • When does OpenClaw ask for capability consent again on a plugin update?
    When the updated artifact declares more capabilities than were accepted, such as new tools, hooks, channels or MCP servers. Unchanged or narrower surfaces can reuse the existing acceptance. Sources without recorded integrity, notably local paths, ask on every install because OpenClaw cannot prove the bytes match what was approved.
  • What would make you split one team Gateway into several?
    Users who do not trust each other. OpenClaw supports one trust boundary per Gateway, and any loaded plugin acts with the Gateway's full power over everything it holds. Separate Gateways, with their own credentials and plugin sets, are the isolation unit; per-agent and per-plugin settings only reduce leakage inside one boundary.

  • A ClawHub listing guarantees the plugin's code is safe to run.
  • OpenClaw blocks dangerous plugin code automatically at install time.
  • The tool sandbox contains what a native plugin can do.
  • plugins.allow verifies where each plugin was installed from.
  • Untrusted teams can share one Gateway if each gets its own plugins.

Assumes OpenClaw 2026.9.9; capability consent, security.installPolicy and source-trust rules for plugin installs arrived or changed in recent releases.