Repository navigation
docs: add OpenClaw plugin install guide (Fixes #2538) #2587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,113 @@ | ||
| --- | ||
| title: | ||
| page: "Install OpenClaw Plugins" | ||
| nav: "OpenClaw Plugins" | ||
| description: | ||
| main: "How to install OpenClaw plugins in a NemoClaw-managed sandbox today." | ||
| agent: "Explains the difference between OpenClaw plugins and agent skills, and shows the current Dockerfile-based workflow for baking a plugin into a NemoClaw sandbox. Use when users ask how to install, build, or configure OpenClaw plugins under NemoClaw." | ||
| keywords: ["nemoclaw plugins", "openclaw plugins", "install openclaw plugin", "nemoclaw onboard from dockerfile"] | ||
| topics: ["generative_ai", "ai_agents"] | ||
| tags: ["nemoclaw", "openclaw", "plugins", "sandbox"] | ||
| content: | ||
| type: how_to | ||
| difficulty: technical_intermediate | ||
| audience: ["developer", "engineer"] | ||
| status: published | ||
| --- | ||
|
|
||
| <!-- | ||
| SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| SPDX-License-Identifier: Apache-2.0 | ||
| --> | ||
|
|
||
| # Install OpenClaw Plugins | ||
|
|
||
| OpenClaw plugins extend the OpenClaw runtime with hooks, services, tools, or | ||
| provider integrations. They are different from NemoClaw-managed agent skills: | ||
|
|
||
| - **Plugins** are code packages loaded by OpenClaw. | ||
| - **Skills** are `SKILL.md` directories that teach an agent how to perform a task. | ||
| - **Policy presets** are network-egress rules that control what sandboxed code can reach. | ||
|
|
||
| Today, the supported NemoClaw path for OpenClaw plugins is to bake the plugin | ||
| into a custom sandbox image and onboard from that Dockerfile. | ||
|
|
||
| ## Prepare a Build Directory | ||
|
|
||
| Put the Dockerfile and everything it needs to `COPY` in one directory. | ||
| `nemoclaw onboard --from <Dockerfile>` uses the Dockerfile's parent directory as | ||
| the Docker build context. | ||
|
|
||
| ```text | ||
| my-plugin-sandbox/ | ||
| ├── Dockerfile | ||
| └── my-plugin/ | ||
| ├── package.json | ||
| └── src/ | ||
| ``` | ||
|
|
||
| ## Example Dockerfile | ||
|
|
||
| Use the custom image to copy the plugin into the OpenClaw extensions directory | ||
| and let OpenClaw refresh its config before NemoClaw starts the sandbox. | ||
|
|
||
| ```dockerfile | ||
| ARG SANDBOX_BASE=ghcr.io/nvidia/nemoclaw/sandbox-base:latest | ||
| FROM ${SANDBOX_BASE} | ||
|
|
||
| COPY my-plugin/ /opt/my-plugin/ | ||
| WORKDIR /opt/my-plugin | ||
| RUN npm ci --no-audit --no-fund && npm run build | ||
|
|
||
| RUN mkdir -p /sandbox/.openclaw-data/extensions \ | ||
| && cp -a /opt/my-plugin /sandbox/.openclaw-data/extensions/my-plugin \ | ||
| && openclaw doctor --fix | ||
|
|
||
| WORKDIR /opt/nemoclaw | ||
| ``` | ||
|
|
||
| If the plugin needs configuration in `openclaw.json`, apply it after | ||
| `openclaw doctor --fix` so the base config exists first. | ||
|
|
||
| ## Create the Sandbox | ||
|
|
||
| Point `nemoclaw onboard --from` at the Dockerfile in the build directory. | ||
|
|
||
| ```console | ||
| $ nemoclaw onboard --from ./my-plugin-sandbox/Dockerfile | ||
| ``` | ||
|
|
||
| If you need a second sandbox alongside an existing one, use a dedicated build | ||
| directory and rerun onboarding with the sandbox name and ports you intend to | ||
| use. | ||
|
|
||
| ## Network Access | ||
|
|
||
| Plugins still run inside the sandbox policy boundary. If a plugin needs network | ||
| egress, add or update a policy preset for the required hostnames and binaries | ||
| before rebuilding the sandbox. | ||
|
|
||
| For example, see [Network Policies](../reference/network-policies.md) for | ||
| policy concepts and [Customize Network Policy](../network-policy/customize-network-policy.md) | ||
| for custom preset workflows. | ||
|
|
||
| ## Common Mistakes | ||
|
|
||
| These are the most common places where plugin installation gets mixed up with | ||
| other NemoClaw extension paths. | ||
|
|
||
| - Do not use `nemoclaw <sandbox> skill install` for OpenClaw plugins. That | ||
| command only installs `SKILL.md` agent skills. | ||
| - Do not put a Dockerfile in a broad directory such as `/tmp` unless you intend | ||
| to send that whole directory as the Docker build context. | ||
| - Keep plugin dependencies in the build stage or plugin directory; avoid copying | ||
| unrelated host files into the sandbox image. | ||
|
|
||
| ## Next Steps | ||
|
|
||
| - Review [Sandbox Hardening](sandbox-hardening.md) before adding plugin code to a | ||
| shared or long-lived sandbox. | ||
| - Review [Network Policies](../reference/network-policies.md) to plan plugin | ||
| egress rules. | ||
| - Follow [Customize Network Policy](../network-policy/customize-network-policy.md) | ||
| if the plugin needs a custom preset. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.