Skip to content
Prev Previous commit
Next Next commit
docs(openclaw): use managed plugin installation flow
  • Loading branch information
XnLemon committed Aug 19, 2026
commit 597c9383b59e29c4f12202bf7019e71182cf7445
31 changes: 19 additions & 12 deletions docs/en/docs/how-to/configure-openclaw.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,38 @@ lives in this repository, while OpenClaw continues to own session identity,
authorization, transcripts, and lifecycle hooks. No OpenClaw source changes
are required.

## Install from a local checkout
## Install from a source directory

Use OpenClaw 2026.8.1-beta.2 or newer. Earlier releases do not expose the
memory-provider plugin API used by this integration. From the PowerContext
checkout, build the plugin and link it:
checkout, build the plugin and install it through OpenClaw's normal managed
local-plugin flow:

~~~bash
cd integrations/openclaw/plugins/memory-powercontext
pnpm install
pnpm build
openclaw plugins install --link . --force
openclaw plugins install . --force
~~~

The link keeps the OpenClaw installation pointed at the checkout, so rebuilding
the plugin updates the linked runtime. Remove the link with:
OpenClaw copies the plugin into its managed installation directory and records
the install source. After source changes, run pnpm build and the install
command again to update the runtime. Uninstall it with:

~~~bash
openclaw plugins uninstall memory-powercontext
~~~

## Install a local npm package
## Install the npm package

After publishing to npm, use OpenClaw's normal upstream npm-plugin installation
flow:

~~~bash
openclaw plugins install npm:@oceanbase/openclaw-memory-powercontext
~~~

For offline validation of an unpublished version, build a local npm tarball:

Build an npm tarball when the OpenClaw host should install a managed copy:

Expand All @@ -40,12 +51,8 @@ pnpm pack:local
openclaw plugins install npm-pack:./artifacts/oceanbase-openclaw-memory-powercontext-0.0.1.tgz --force
~~~

The package includes the compiled dist/index.js runtime and
openclaw.plugin.json. After publishing a version to npm, install it with:

~~~bash
openclaw plugins install npm:@oceanbase/openclaw-memory-powercontext
~~~
The tarball includes the compiled dist/index.js runtime and
openclaw.plugin.json.

## Configure the memory slot

Expand Down
28 changes: 15 additions & 13 deletions docs/zh/docs/how-to/configure-openclaw.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,44 @@ PowerContext 通过外部 Memory 插件接入 OpenClaw。插件代码由本仓
OpenClaw 继续负责会话身份、授权、transcript 和生命周期钩子,不需要修改
OpenClaw 源码。

## 从本地 checkout 安装
## 从源码目录安装

请使用 OpenClaw 2026.8.1-beta.2 或更高版本。更早的版本未提供本集成需要的
Memory provider Plugin API。在 PowerContext checkout 中构建插件并链接到 OpenClaw:
Memory provider Plugin API。在 PowerContext checkout 中构建插件,然后让 OpenClaw
按标准的本地插件安装流程托管它:

~~~bash
cd integrations/openclaw/plugins/memory-powercontext
pnpm install
pnpm build
openclaw plugins install --link . --force
openclaw plugins install . --force
~~~

链接会让 OpenClaw 直接指向当前 checkout,重新构建后即可使用最新运行时。
移除链接:
该命令会把插件复制到 OpenClaw 的托管安装目录,并记录安装来源。源码更新后,
重新执行 pnpm build 和安装命令即可更新运行时。移除插件:

~~~bash
openclaw plugins uninstall memory-powercontext
~~~

## 安装本地 npm 包
## 安装 npm 包

需要让 OpenClaw 管理一份复制后的插件时,构建本地 npm tarball:
发布到 npm 后,使用 OpenClaw upstream 的标准 npm 插件安装方式:

~~~bash
cd integrations/openclaw/plugins/memory-powercontext
pnpm pack:local
openclaw plugins install npm-pack:./artifacts/oceanbase-openclaw-memory-powercontext-0.0.1.tgz --force
openclaw plugins install npm:@oceanbase/openclaw-memory-powercontext
~~~

该包包含编译后的 dist/index.js 运行时和 openclaw.plugin.json。发布到 npm
后,可以直接安装:
需要在未发布版本上做离线验证时,构建本地 npm tarball:

~~~bash
openclaw plugins install npm:@oceanbase/openclaw-memory-powercontext
cd integrations/openclaw/plugins/memory-powercontext
pnpm pack:local
openclaw plugins install npm-pack:./artifacts/oceanbase-openclaw-memory-powercontext-0.0.1.tgz --force
~~~

该包包含编译后的 dist/index.js 运行时和 openclaw.plugin.json。

## 配置 Memory slot

将插件设为 OpenClaw 的唯一 Memory provider,并指向运行中的 PowerContext Server:
Expand Down
6 changes: 3 additions & 3 deletions integrations/openclaw/plugins/memory-powercontext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ pnpm install
pnpm build
```

Then link the package into the OpenClaw installation:
Then install the plugin through OpenClaw's managed local-plugin flow:

```bash
openclaw plugins install --link .
openclaw plugins install . --force
```

The link is local and reversible. Remove it with:
The install is managed by OpenClaw and reversible. Remove it with:

```bash
openclaw plugins uninstall memory-powercontext
Expand Down
Loading