* feat(plugins): surface plugin capability consent in Control UI and CLI Adds plugins.inspect (declared manifest surface, operator grants, install provenance/integrity, ClawHub trust), a Control UI consent dialog on install and external-plugin enable, a server-side acceptance gate persisted on the install record, artifact-anchored widen diffing, and --accept-capabilities for non-interactive CLI use. NOT READY TO LAND: autoreview found critical gaps (see PR notes) — the declared surface omits 20 of 21 contract families, native plugins always report zero hooks, several install/enable paths bypass the gate, and the acknowledgment is not bound to the reviewed surface. * refactor(plugins): bind capability consent to the reviewed surface Collapses the consent error payload to the fields the client cannot fetch (reviewToken, widened, acceptedAt) and pulls identity/declared/grants/source/ trust from plugins.inspect, shrinking the registry-free protocol reader from 395 to 91 lines and removing its divergence from the closed schema. Acknowledgment now carries the SHA-256 reviewToken of the surface the operator saw; the server recomputes the final staged artifact's surface and rejects any mismatch before persisting acceptance. That closes review-then-swap, laundering of forged acceptance through an unchanged update, and cross-artifact replay. All 22 manifest contract families are now declared, hashed and diffed, so a privileged family such as gatewayMethodDispatch can no longer be added without re-consent. Consent reads the manifest runtime discovery will execute, ambiguous install ownership fails closed, integrity resolution has one owner and no longer labels npm SHA-1 shasums as SHA-256, and code plugins disclose that hooks register at runtime instead of rendering an empty "no hooks" row. * fix(gateway): register plugins.inspect in method inventories and regenerate protocol Adds plugins.inspect to the advertised-method inventories (widening the fixed-size slice windows so older indices stay stable), regenerates the Kotlin protocol bindings, drops an unused exported type, and replaces two nested conditional spreads with a plain conditional. * refactor(plugins): split oversized consent modules and clear lint findings Extracts the MCP controller out of the plugins page, unchanged-install reconciliation out of update-installed, and the install lifecycle suite out of the management-service tests, bringing all three back under the max-lines limit without suppressions. Also renames a shadowed binding, drops an unnecessary generic, removes a spread-to-modify in a map, and types catch callbacks as unknown. * chore(protocol): regenerate Kotlin bindings after rebase * feat(plugins): let chat /plugins install review and accept capabilities The consent gate applies to chat installs too, but the command had no way to give consent, so external installs dead-ended on a CLI-only flag. Chat now replies with the plugin's declared capability surface and the exact command to rerun, and accepts a trailing --accept-capabilities mirroring the existing --force acknowledgement. ClawHub trust acknowledgement stays CLI-only. Staged-artifact verification is unchanged: the reviewToken is still checked against the final artifact before acceptance is recorded. * refactor(plugins): single-source the declared-surface groups and manifest precedence The ordered capability group list was defined independently in the consent engine, the protocol error reader, the CLI formatter and the Control UI, so a new contract family had to be added in four places with nothing enforcing it. All four now derive from one canonical list in the protocol schema with a compile-time exhaustiveness guard. Native-versus-bundle manifest precedence is centralized in one helper that both discovery and staged consent call, so the two cannot drift again — that divergence was a real bug where consent read one manifest and the runtime executed another. Also documents that carrying acceptance forward requires pinned artifact integrity, so integrity-less sources such as local paths ask on every install. * fix(plugins): enforce reviewed consent across activation flows Route setup, repair, linked installs, updates, and chat activation through artifact-bound capability consent. Reuse canonical package discovery and recheck staged activation before config publication. Invalidate stale Control UI review requests on reconnect. Verified focused owner and sibling tests, runtime rebuild, and real isolated CLI/Gateway install, inspect, enable, widening, and stale-token rejection flows. * test(plugins): cover beta installs through capability consent * test(plugins): align consent fixtures with staged artifacts * fix(ui): review staged plugin capabilities once * test(ui): inline the remaining plugin consent confirmation * test(plugins): verify consent with deferred install transactions * refactor(setup): share inference execution plan construction * test(ui): settle applied config before deferring refresh * fix(plugins): protect consent provenance and reuse acceptance
17 KiB
summary, read_when, title, sidebarTitle, doc-schema-version
| summary | read_when | title | sidebarTitle | doc-schema-version | ||||
|---|---|---|---|---|---|---|---|---|
| Manage OpenClaw plugins from the Control UI or CLI |
|
Manage plugins | Manage plugins | 1 |
The Control UI covers the common discovery, install, enable, and disable
workflow. The CLI adds update, uninstall, advanced configuration, and explicit
install-source controls. For its full command contract, flags, source-selection
rules, and edge cases, see openclaw plugins.
Typical CLI workflow: find a package, install it from ClawHub, npm, git, or a local path, let the managed Gateway auto-restart (or restart it manually), then verify the plugin's runtime registrations.
Use the Control UI
Open Plugins in the Control UI, or use /settings/plugins relative to the
configured Control UI base path. For example, a base path of /openclaw uses
/openclaw/settings/plugins. The page has two tabs:
- Installed shows the full local inventory grouped by category (channels,
model providers, memory, tools). Each row opens a detail view; its overflow
(
…) menu enables or disables the plugin and, for externally installed plugins, offers Remove. The tab also lists the configured MCP servers with the same menu-driven enable, disable, and remove actions, editingmcp.serversin the Gateway configuration. - Discover is the store: featured plugins included with OpenClaw, official external plugins, and a curated connector shelf. Connector cards either add a hosted MCP server in one click (GitHub, Notion, Linear, Sentry, Home Assistant) or jump into a prefilled ClawHub search. Typing in the search box queries ClawHub inline and appends a From ClawHub section with download counts and source-verification badges.
Included plugins do not need a package install. Their menu action is Enable or Disable. Workboard, for example, is included with OpenClaw and disabled by default, so choose Enable to turn it on. Bundled plugins cannot be removed, only disabled.
Catalog and search access require operator.read. Install, enable, disable,
remove, and MCP server changes require operator.admin. A ClawHub install is
performed by the Gateway and preserves its trust, integrity, and plugin-install
policy checks. Enabling an installed plugin as an administrator also records
that explicit trust by adding the selected plugin to an existing restrictive
plugins.allow list. An explicit plugins.deny entry remains authoritative and
must be removed before enabling the plugin.
Installing or removing plugin code requires a Gateway restart. Enablement
changes can be applied without a restart when the installed plugin and current
Gateway runtime support it; otherwise the UI tells you a restart is required.
OAuth-backed MCP connectors still need a one-time openclaw mcp login <name>
from the CLI after they are added.
The Control UI does not install from arbitrary npm, git, or local-path sources, update plugins, or expose rich plugin configuration. Use the CLI workflows below for those operations.
List and search plugins
openclaw plugins list
openclaw plugins list --enabled
openclaw plugins list --verbose
openclaw plugins list --json
openclaw plugins search "calendar"
--json for scripts:
openclaw plugins list --json \
| jq '.plugins[] | {id, enabled, format, source, dependencyStatus}'
plugins list is a cold inventory check: what OpenClaw can discover from
config, manifests, and the persisted plugin registry. It does not prove an
already-running Gateway imported the plugin runtime. JSON output includes
registry diagnostics and each plugin's dependencyStatus (whether declared
dependencies/optionalDependencies resolve on disk).
plugins search queries ClawHub for installable plugin packages and prints
an install hint (openclaw plugins install clawhub:<package>) per result.
Enable and disable plugins
openclaw plugins enable <plugin-id>
openclaw plugins disable <plugin-id>
Toggles a plugin's config entry without touching installed files. Some
bundled plugins (bundled model/speech providers, the bundled browser plugin)
are enabled by default; others require enable after install.
Capability consent
OpenClaw asks you to review an external plugin's declared capabilities before installing or enabling it. The consent screen identifies the plugin, its version and source, artifact integrity, and available trust information. It also lists declared channels, providers, tools, hooks, MCP servers, CLI commands and backends, skills, and dangerous configuration flags, along with the operator grants that apply to hooks, model access, and subagents.
The review token hashes the exact declared capability surface, not the plugin's
executable files. Acceptance separately records installer-provided artifact
integrity when available. Re-enabling an installed plugin reuses acceptance
when its declared surface and recorded integrity are unchanged. Updates of
enabled plugins require fresh consent when the new artifact declares additional
capabilities; unchanged or narrower
surfaces can refresh an existing valid acceptance. Updating a disabled
plugin preserves disablement and defers any required consent until enablement.
Reinstalling through plugins install activates the plugin and must satisfy
consent before activation.
Already-enabled legacy installations remain usable without an initial review; disabling and re-enabling them requires consent. Setup rechecks consent when saving its final config, so a plugin update during login cannot activate a replacement with unaccepted capabilities.
Declining an update's capability review leaves the previous plugin enabled and unchanged. Repairing a missing or damaged artifact requires a fresh review; OpenClaw cannot carry acceptance forward from an artifact it cannot verify.
Carrying an earlier acceptance forward requires the install record to pin artifact integrity, which registry and ClawHub installs provide. Sources without recorded integrity — notably local paths — cannot prove the new bytes are the artifact you approved before, so they ask for consent on every install rather than inheriting it.
Interactive CLI commands, onboarding, and provider, search, or channel setup
prompt when consent is required, including automatic installs of required
runtime plugins. Noninteractive or silent setup cannot approve new capabilities.
Review and preinstall or enable the plugin with --accept-capabilities, then
retry setup. Noninteractive plugin install, update, and enable commands also
require the explicit flag when consent is needed:
openclaw plugins install clawhub:<package> --accept-capabilities
openclaw plugins update <plugin-id> --accept-capabilities
openclaw plugins enable <plugin-id> --accept-capabilities
Doctor uses the same review before installing or adopting a replacement plugin.
doctor --fix and --yes do not approve capabilities automatically. For
noninteractive repair, review and install the plugin with the explicit flag
above, then rerun doctor.
Chat installs and enablement use the same capability consent. When consent is
required, review the capabilities in the reply, then rerun the same command
with --accept-capabilities:
/plugins install clawhub:<package> --accept-capabilities
/plugins install npm:<package> --force --accept-capabilities
/plugins enable <plugin-id> --accept-capabilities
Bundled plugins are exempt because they ship with the OpenClaw release rather
than arriving as separately installed artifacts. Plugins discovered directly
in a workspace or through plugins.load.paths, without a managed install
record, cannot persist capability acceptance. Their details in the Control UI
still show declared capabilities.
openclaw plugins install --link <path> creates a managed install record and
requires capability consent even though it loads the plugin from its source
directory. It is not the same as adding a bare plugins.load.paths entry.
Install plugins
# Search ClawHub for plugin packages.
openclaw plugins search "calendar"
# Install from ClawHub.
openclaw plugins install clawhub:<package>
openclaw plugins install clawhub:<package>@1.2.3
openclaw plugins install clawhub:<package>@beta
# Install from npm.
openclaw plugins install npm:<package>
openclaw plugins install npm:@scope/openclaw-plugin@1.2.3
openclaw plugins install npm:@openclaw/codex
# Install from a local npm-pack artifact.
openclaw plugins install npm-pack:<path.tgz>
# Install from git or a local development checkout.
openclaw plugins install git:github.com/acme/openclaw-plugin@v1.0.0
openclaw plugins install ./my-plugin
openclaw plugins install --link ./my-plugin
Bare package specs install from npm during the launch cutover, unless the
name matches a bundled or official plugin id, in which case OpenClaw uses
that local/official copy instead. Use clawhub:, npm:, git:, or
npm-pack: for deterministic source selection. OpenClaw's bundled and official
catalog packages are trusted alongside ClawHub packages. New arbitrary npm,
git, local path/archive, npm-pack:, or marketplace sources require
--force in noninteractive installs after you review
and trust the source.
--force confirms a non-ClawHub source without prompting and overwrites an
existing install target when needed. For routine upgrades of a tracked npm,
ClawHub, or hook-pack install, use openclaw plugins update instead. With
--link, --force only confirms the source; the linked directory is not
copied or overwritten.
If a newly installed plugin requires configuration that is not present yet,
OpenClaw records the install but leaves the plugin disabled. Configure
plugins.entries.<id>.config, then run openclaw plugins enable <id>. If an
existing config entry is present but invalid, install fails without rewriting it.
A plugin package can expose multiple child entries. Installation tracks that
package once, enables each ready child entry, and preserves any child that you
explicitly disabled. Runtime policy remains child-addressable through
plugins.entries.<child-id>, allow/deny lists, channel config, exact child load
paths, and the memory and contextEngine slots.
Restart and inspect
A running managed Gateway with config reload enabled restarts automatically after installing, updating, or uninstalling plugin code. If the Gateway is unmanaged or reload is disabled, restart it yourself before checking live runtime surfaces:
openclaw gateway restart
openclaw plugins inspect <plugin-id> --runtime --json
inspect --runtime loads the plugin module and proves it registered runtime
surfaces (tools, hooks, services, Gateway methods, HTTP routes, plugin-owned
CLI commands). Plain inspect and list are cold manifest/config/registry
checks only.
Update plugins
openclaw plugins update <plugin-id>
openclaw plugins update <npm-package-or-spec>
openclaw plugins update --all
openclaw plugins update <plugin-id> --dry-run
Passing a plugin id reuses its tracked install spec: stored dist-tags
(@beta) and exact pinned versions carry over to later update <plugin-id>
runs. For a multi-entry package, any child id resolves to the one tracked
package install, so all siblings update together. Removed or renamed children
have their stale entries, allow/deny policy, exact load paths, channel config,
and memory/context slot selections reconciled before the new package/index
state commits; retained/new children and unrelated plugins are preserved.
If OpenClaw cannot prove exactly one package owner and a complete child list,
update and uninstall fail closed without changing package files, config, or the
installed index. Run openclaw plugins registry --refresh, inspect
openclaw plugins doctor, and use openclaw doctor --fix for repairable legacy
index state. If the ambiguity remains, reinstall the package before retrying.
openclaw plugins update --all is the bulk maintenance path. It still
respects ordinary tracked install specs, but trusted official OpenClaw
plugin records sync to the current official catalog target instead of
staying pinned to a stale exact official package. The canonical channel
resolver uses both update.channel and the installed core version, so an
installed beta core with no configured channel keeps official plugins on the
beta release line. Use a targeted update <plugin-id> to keep an exact or
tagged official spec untouched.
For npm installs, pass an explicit package spec to switch the tracked record:
openclaw plugins update @scope/openclaw-plugin@beta
openclaw plugins update @scope/openclaw-plugin
The second command moves a plugin back to the registry's default release line when it was previously pinned to an exact version or tag.
See openclaw plugins for the exact fallback and
pinning rules.
Uninstall plugins
openclaw plugins uninstall <plugin-id> --dry-run
openclaw plugins uninstall <plugin-id>
openclaw plugins uninstall <plugin-id> --keep-files
Uninstall removes the package's persisted install record and every owned child
entry from plugin config, allow/deny lists, memory/context slots, exact linked
plugins.load.paths, and channel config entries when applicable. You may address a multi-entry
package by any child id; the preview names the package owner and all siblings
that will be removed. The managed install directory is removed once unless you
pass --keep-files. A running managed Gateway restarts automatically when the
uninstall changes plugin source.
If an installed Claw references the plugin, preview and uninstall print the
affected Claw package names. Ordinary plugin uninstall can still proceed and
may break those Claws; use openclaw claws status to review ownership first.
Removing a Claw releases its plugin reference but retains the process-wide
plugin by default.
In Nix mode (OPENCLAW_NIX_MODE=1), plugin install, update, uninstall,
enable, and disable are all disabled; manage those choices in the Nix source
for the install instead.
Choose a source
| Source | Use when | Example |
|---|---|---|
| ClawHub | You want OpenClaw-native discovery, scan summaries, versions, and hints | openclaw plugins install clawhub:<package> |
| git | You want a branch, tag, or commit from a repository | openclaw plugins install git:github.com/<owner>/<repo>@<ref> |
| local path | You are developing or testing a plugin on the same machine | openclaw plugins install --link ./my-plugin |
| marketplace | You are installing a Claude-compatible marketplace plugin | openclaw plugins install <plugin> --marketplace <source> |
| npm pack | You are proving a local package artifact through npm install semantics | openclaw plugins install npm-pack:<path.tgz> |
| npmjs.com | You already ship JavaScript packages or need npm dist-tags/private registry | openclaw plugins install npm:@acme/openclaw-plugin |
Managed local path installs must be plugin directories or archives. Put
standalone plugin files in plugins.load.paths instead of installing them
with plugins install.
Publish plugins
ClawHub is the primary public discovery surface for OpenClaw plugins. Publish there when you want users to find plugin metadata, version history, registry scan results, and install hints before they install.
npm i -g clawhub
clawhub login
clawhub package publish your-org/your-plugin --dry-run
clawhub package publish your-org/your-plugin
clawhub package publish your-org/your-plugin@v1.0.0
Native npm plugins must ship a plugin manifest (openclaw.plugin.json) plus
package.json metadata before publishing:
{
"name": "@acme/openclaw-plugin",
"version": "1.0.0",
"type": "module",
"openclaw": {
"extensions": ["./dist/index.js"]
}
}
npm publish --access public
openclaw plugins install npm:@acme/openclaw-plugin
openclaw plugins install npm:@acme/openclaw-plugin@beta
openclaw plugins install npm:@acme/openclaw-plugin@1.0.0
Use these pages for the full publishing contract instead of treating this page as the publishing reference:
- ClawHub publishing explains owners, scopes, releases, review, package validation, and package transfer.
- Building plugins shows the full plugin
package shape (including
openclaw.plugin.json) and first publish workflow. - Plugin manifest defines native plugin manifest fields.
If the same package is available on both ClawHub and npm, use the explicit
clawhub: or npm: prefix to force one source.
Related
- Plugins - install, configure, restart, and troubleshoot
openclaw plugins- full CLI reference- Community plugins - public discovery and ClawHub publishing
- ClawHub - registry CLI operations
- Building plugins - create a plugin package
- Plugin manifest - manifest and package metadata