@openviking/openclaw-plugin 2026.5.8 → 2026.5.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/INSTALL-AGENT.md CHANGED
@@ -13,10 +13,10 @@ This package is the OpenClaw plugin `@openviking/openclaw-plugin`.
13
13
 
14
14
  | User intent | Command |
15
15
  | --- | --- |
16
- | Fresh install, latest | `openclaw plugins install @openviking/openclaw-plugin` |
17
- | Upgrade plugin to latest | `openclaw plugins install @openviking/openclaw-plugin` |
16
+ | Fresh install, latest | `openclaw plugins install clawhub:@openviking/openclaw-plugin` |
17
+ | Upgrade plugin to latest | `openclaw plugins install clawhub:@openviking/openclaw-plugin` |
18
18
  | Install or upgrade a specific release | Use the published ClawHub package selector if available; otherwise ask before using backup `ov-install --plugin-version=<REF>` |
19
- | Upgrade only the plugin | `openclaw plugins install @openviking/openclaw-plugin` |
19
+ | Upgrade only the plugin | `openclaw plugins install clawhub:@openviking/openclaw-plugin` |
20
20
  | Show installed plugins | `openclaw plugins list` |
21
21
  | Backup install when ClawHub is unavailable | `npx -y openclaw-openviking-setup-helper@latest --base-url <URL> [--api-key <KEY>]` |
22
22
  | Operate on a specific OpenClaw instance | add `--workdir <path>` |
@@ -31,7 +31,7 @@ clawhub install openviking
31
31
  That installs an AgentSkill, not the plugin. The plugin install command is:
32
32
 
33
33
  ```bash
34
- openclaw plugins install @openviking/openclaw-plugin
34
+ openclaw plugins install clawhub:@openviking/openclaw-plugin
35
35
  ```
36
36
 
37
37
  ## Required Inputs
@@ -53,7 +53,7 @@ Never silently replace another context engine.
53
53
  Use this workflow for normal installs and upgrades from published packages.
54
54
 
55
55
  ```bash
56
- openclaw plugins install @openviking/openclaw-plugin
56
+ openclaw plugins install clawhub:@openviking/openclaw-plugin
57
57
  openclaw openviking setup --base-url <OPENVIKING_URL> --api-key <API_KEY> --json
58
58
  openclaw gateway restart
59
59
  openclaw openviking status --json
@@ -220,7 +220,7 @@ openclaw plugins list
220
220
  Fresh install:
221
221
 
222
222
  ```bash
223
- openclaw plugins install @openviking/openclaw-plugin
223
+ openclaw plugins install clawhub:@openviking/openclaw-plugin
224
224
  openclaw openviking setup --base-url <OPENVIKING_URL> --api-key <API_KEY> --json
225
225
  openclaw gateway restart
226
226
  openclaw openviking status --json
@@ -307,7 +307,7 @@ Same plugin ID (openviking, >= 0.3.x):
307
307
 
308
308
  ```bash
309
309
  rm -rf ~/.openclaw/extensions/openviking/
310
- openclaw plugins install @openviking/openclaw-plugin
310
+ openclaw plugins install clawhub:@openviking/openclaw-plugin
311
311
  openclaw openviking setup --reconfigure
312
312
  openclaw gateway restart
313
313
  openclaw openviking status --json
@@ -319,7 +319,7 @@ Old plugin ID (memory-openviking, < 0.3.x):
319
319
  openclaw plugins uninstall memory-openviking 2>/dev/null || true
320
320
  openclaw config set plugins.slots.memory none
321
321
  rm -rf ~/.openclaw/extensions/memory-openviking/
322
- openclaw plugins install @openviking/openclaw-plugin
322
+ openclaw plugins install clawhub:@openviking/openclaw-plugin
323
323
  openclaw openviking setup --base-url <OPENVIKING_URL> --api-key <API_KEY> --json
324
324
  openclaw gateway restart
325
325
  openclaw openviking status --json
@@ -333,7 +333,7 @@ Existing config fields are preserved during migration. The new plugin reads old
333
333
 
334
334
  ## Backup Path: ov-install
335
335
 
336
- `ov-install` is the backup path, not the primary user install path. Use it when `openclaw plugins install @openviking/openclaw-plugin` cannot reach ClawHub, is rate-limited, or when the user explicitly wants a source ref / Git branch install.
336
+ `ov-install` is the backup path, not the primary user install path. Use it when `openclaw plugins install clawhub:@openviking/openclaw-plugin` cannot reach ClawHub, is rate-limited, or when the user explicitly wants a source ref / Git branch install.
337
337
 
338
338
  Backup install:
339
339
 
@@ -352,4 +352,4 @@ Backup/source commands:
352
352
  | Show helper-tracked version | `ov-install --current-version` |
353
353
  | Update helper-managed install | `ov-install --update` |
354
354
 
355
- For user installs, always try `openclaw plugins install @openviking/openclaw-plugin` first. Choose `ov-install` only as the backup path.
355
+ For user installs, always try `openclaw plugins install clawhub:@openviking/openclaw-plugin` first. Choose `ov-install` only as the backup path.
package/INSTALL-ZH.md CHANGED
@@ -19,7 +19,7 @@ clawhub install openviking
19
19
  安装插件应使用:
20
20
 
21
21
  ```bash
22
- openclaw plugins install @openviking/openclaw-plugin
22
+ openclaw plugins install clawhub:@openviking/openclaw-plugin
23
23
  ```
24
24
 
25
25
  ## 前置要求
@@ -36,7 +36,7 @@ OpenClaw 插件包版本边界:
36
36
  - `2026.4.8` 是当前插件支持的最低 OpenClaw 版本。
37
37
  - `2026.5.3` 开始,OpenClaw 在安装包时会校验 TypeScript 插件入口是否有编译后的 JavaScript 产物。
38
38
  - `2026.5.4` 及之后,已安装/全局插件如果缺少编译后的 JavaScript,运行时不再回退加载 `.ts` 源码,插件可能被跳过。
39
- - 推荐的 `openclaw plugins install @openviking/openclaw-plugin` 会安装已经发布并包含 `dist/*.js` 的插件包,普通用户不需要本地编译。
39
+ - 推荐的 `openclaw plugins install clawhub:@openviking/openclaw-plugin` 会安装已经发布并包含 `dist/*.js` 的插件包,普通用户不需要本地编译。
40
40
  - `ov-install` 是备用/源码安装路径。当 ClawHub 或 OpenClaw 插件管理器路径不可用、被限流,或者明确需要测试源码 ref 时才使用。目标 OpenClaw `>= 2026.5.3` 时,它会在安装过程中编译插件。
41
41
 
42
42
  快速检查:
@@ -87,7 +87,7 @@ curl http://127.0.0.1:1933/health
87
87
  ### 1. 安装插件
88
88
 
89
89
  ```bash
90
- openclaw plugins install @openviking/openclaw-plugin
90
+ openclaw plugins install clawhub:@openviking/openclaw-plugin
91
91
  ```
92
92
 
93
93
  如果你的 OpenClaw 环境需要显式 registry 前缀,使用:
@@ -271,7 +271,7 @@ python examples/openclaw-plugin/health_check_tools/ov-healthcheck.py
271
271
 
272
272
  ## 备用路径:ov-install
273
273
 
274
- `ov-install` 是备用路径,不是主安装方式。仅当 `openclaw plugins install @openviking/openclaw-plugin` 无法访问 ClawHub、被限流,或者你明确需要从 Git 分支/源码 ref 安装测试时使用。
274
+ `ov-install` 是备用路径,不是主安装方式。仅当 `openclaw plugins install clawhub:@openviking/openclaw-plugin` 无法访问 ClawHub、被限流,或者你明确需要从 Git 分支/源码 ref 安装测试时使用。
275
275
 
276
276
  先尝试 OpenClaw 插件管理器。如果该路径不可用,再执行:
277
277
 
@@ -285,14 +285,14 @@ ov-install
285
285
  | 参数 | 含义 |
286
286
  | --- | --- |
287
287
  | `--workdir PATH` | 指定 OpenClaw state 目录 |
288
- | `--version REF` | 指定 Git ref、tag、branch 或发布版本 |
288
+ | `--plugin-version=REF` | 指定插件版本:npm 版本、npm dist-tag 或 Git ref |
289
289
  | `--current-version` | 查看 helper 记录的当前版本 |
290
290
  | `--base-url URL` | OpenViking 服务器地址(启用非交互模式) |
291
291
  | `--api-key KEY` | OpenViking API key |
292
292
  | `--agent-prefix PREFIX` | Agent 路由前缀 |
293
293
  | `--update` | 更新 helper 管理的安装 |
294
294
 
295
- 面向用户的安装,请先使用 `openclaw plugins install @openviking/openclaw-plugin`。只有作为备用路径时才选择 `ov-install`。
295
+ 面向用户的安装,请先使用 `openclaw plugins install clawhub:@openviking/openclaw-plugin`。只有作为备用路径时才选择 `ov-install`。
296
296
 
297
297
  ## 从 ov-install 迁移到 openclaw plugin install
298
298
 
@@ -307,7 +307,7 @@ ov-install 的 context-engine 部署会将文件写入 `~/.openclaw/extensions/o
307
307
  rm -rf ~/.openclaw/extensions/openviking/
308
308
 
309
309
  # 通过 OpenClaw 插件管理器安装
310
- openclaw plugins install @openviking/openclaw-plugin
310
+ openclaw plugins install clawhub:@openviking/openclaw-plugin
311
311
 
312
312
  # 重新配置(openclaw.json 中的已有配置会保留)
313
313
  openclaw openviking setup --reconfigure
@@ -330,7 +330,7 @@ openclaw config set plugins.slots.memory none
330
330
  rm -rf ~/.openclaw/extensions/memory-openviking/
331
331
 
332
332
  # 安装新插件
333
- openclaw plugins install @openviking/openclaw-plugin
333
+ openclaw plugins install clawhub:@openviking/openclaw-plugin
334
334
  openclaw openviking setup --base-url <OPENVIKING_URL> --api-key <API_KEY> --json
335
335
  openclaw gateway restart
336
336
  openclaw openviking status --json
package/INSTALL.md CHANGED
@@ -19,7 +19,7 @@ That command installs an AgentSkill named `openviking`, not the OpenClaw plugin.
19
19
  Use this plugin command instead:
20
20
 
21
21
  ```bash
22
- openclaw plugins install @openviking/openclaw-plugin
22
+ openclaw plugins install clawhub:@openviking/openclaw-plugin
23
23
  ```
24
24
 
25
25
  ## Requirements
@@ -36,7 +36,7 @@ OpenClaw plugin package boundaries:
36
36
  - `2026.4.8` is the minimum supported OpenClaw version for the current plugin.
37
37
  - `2026.5.3` starts validating package installs so TypeScript plugin entries need compiled JavaScript output.
38
38
  - `2026.5.4` and later stop falling back to `.ts` source for installed/global plugin runtime loading when compiled JavaScript is missing.
39
- - The recommended `openclaw plugins install @openviking/openclaw-plugin` path installs a published package that already includes `dist/*.js`.
39
+ - The recommended `openclaw plugins install clawhub:@openviking/openclaw-plugin` path installs a published package that already includes `dist/*.js`.
40
40
  - `ov-install` is the backup/source install path. Use it when ClawHub or the OpenClaw plugin manager path is unavailable/rate-limited, or when explicitly testing a source ref. For OpenClaw `>= 2026.5.3`, it builds the plugin during installation.
41
41
 
42
42
  Quick check:
@@ -87,7 +87,7 @@ Use this path for normal users, production installs, and agent-assisted installs
87
87
  ### 1. Install The Plugin
88
88
 
89
89
  ```bash
90
- openclaw plugins install @openviking/openclaw-plugin
90
+ openclaw plugins install clawhub:@openviking/openclaw-plugin
91
91
  ```
92
92
 
93
93
  If your OpenClaw installation requires an explicit registry prefix, use:
@@ -253,7 +253,7 @@ This checks the Gateway to OpenViking path by injecting a real conversation and
253
253
 
254
254
  ## Backup Path: ov-install
255
255
 
256
- `ov-install` is the backup path, not the primary install path. Use it when `openclaw plugins install @openviking/openclaw-plugin` cannot reach ClawHub, is rate-limited, or when you explicitly need to install/test plugin files from a Git branch or source ref.
256
+ `ov-install` is the backup path, not the primary install path. Use it when `openclaw plugins install clawhub:@openviking/openclaw-plugin` cannot reach ClawHub, is rate-limited, or when you explicitly need to install/test plugin files from a Git branch or source ref.
257
257
 
258
258
  Try the OpenClaw plugin manager first. If that path is unavailable, run:
259
259
 
@@ -267,14 +267,14 @@ Useful backup/source flags:
267
267
  | Flag | Meaning |
268
268
  | --- | --- |
269
269
  | `--workdir PATH` | Target OpenClaw state directory |
270
- | `--version REF` | Git ref, tag, branch, or release version to install |
270
+ | `--plugin-version=REF` | Plugin version: npm version, npm dist-tag, or Git ref to install |
271
271
  | `--current-version` | Print the version tracked by the helper |
272
272
  | `--base-url URL` | OpenViking server URL (enables non-interactive mode) |
273
273
  | `--api-key KEY` | OpenViking API key |
274
274
  | `--agent-prefix PREFIX` | Agent routing prefix |
275
275
  | `--update` | Update an existing helper-managed install |
276
276
 
277
- For user-facing installs, use `openclaw plugins install @openviking/openclaw-plugin` first. Choose `ov-install` only as the backup path.
277
+ For user-facing installs, use `openclaw plugins install clawhub:@openviking/openclaw-plugin` first. Choose `ov-install` only as the backup path.
278
278
 
279
279
  ## Migrate From ov-install To openclaw plugin install
280
280
 
@@ -289,7 +289,7 @@ The ov-install context-engine deployment writes files to `~/.openclaw/extensions
289
289
  rm -rf ~/.openclaw/extensions/openviking/
290
290
 
291
291
  # Install via the OpenClaw plugin manager
292
- openclaw plugins install @openviking/openclaw-plugin
292
+ openclaw plugins install clawhub:@openviking/openclaw-plugin
293
293
 
294
294
  # Reconfigure (your existing config in openclaw.json is preserved)
295
295
  openclaw openviking setup --reconfigure
@@ -347,7 +347,7 @@ openclaw config set plugins.slots.memory none
347
347
  rm -rf ~/.openclaw/extensions/memory-openviking/
348
348
 
349
349
  # Install new plugin
350
- openclaw plugins install @openviking/openclaw-plugin
350
+ openclaw plugins install clawhub:@openviking/openclaw-plugin
351
351
  openclaw openviking setup --base-url <OPENVIKING_URL> --api-key <API_KEY> --json
352
352
  openclaw gateway restart
353
353
  openclaw openviking status --json
package/README.md CHANGED
@@ -1,59 +1,78 @@
1
- # @openviking/openclaw-plugin — OpenViking OpenClaw Plugin
1
+ # OpenViking for OpenClaw
2
2
 
3
- OpenClaw context-engine plugin for OpenViking remote memory, context database, RAG and semantic retrieval.
3
+ Use [OpenViking](https://github.com/volcengine/OpenViking) as OpenClaw's long-term context engine: automatic recall, session archive, memory extraction, semantic search, and RAG over a remote OpenViking server.
4
4
 
5
- ## Important: Plugin vs Skill
5
+ ## Quick Start
6
6
 
7
- This page is for the **OpenClaw plugin package**:
8
-
9
- ```
10
- @openviking/openclaw-plugin
7
+ ```bash
8
+ openclaw plugins install clawhub:@openviking/openclaw-plugin
9
+ openclaw openviking setup --base-url http://my-server:1933 --api-key sk-xxx --json
10
+ openclaw gateway restart
11
+ openclaw openviking status --json
11
12
  ```
12
13
 
13
- **Do NOT** install the plugin with `clawhub install openviking` — that installs the `openviking` AgentSkill (under `skills/openviking`), which is a different thing.
14
+ That's it. The `setup` command activates the context-engine slot and validates the connection.
14
15
 
15
- For **agent-assisted plugin setup**, ask the agent to follow [INSTALL-AGENT.md](./INSTALL-AGENT.md). The primary install path is still `openclaw plugins install @openviking/openclaw-plugin`.
16
+ ### Or ask your agent
16
17
 
17
- ## Install (Natural Language)
18
+ > Install the OpenClaw plugin @openviking/openclaw-plugin for OpenViking remote memory. My server is at `http://my-server:1933` and my API key is `sk-xxx`.
18
19
 
19
- Ask your agent:
20
+ The agent runs install → setup → restart → verify automatically. See [INSTALL-AGENT.md](./INSTALL-AGENT.md).
20
21
 
21
- > Install the OpenClaw plugin @openviking/openclaw-plugin for OpenViking remote memory. My server is at `http://my-server:1933` and my API key is `sk-xxx`.
22
+ ## How It Works
22
23
 
23
- Or in Chinese:
24
+ | Stage | What happens |
25
+ |-------|-------------|
26
+ | **Every turn** (`afterTurn`) | Your messages are archived into an OpenViking session |
27
+ | **On `/compact`** (`compact`) | Archived messages are extracted into long-term memories |
28
+ | **Before each reply** (`assemble`) | Relevant memories are auto-retrieved and injected into context |
24
29
 
25
- > 帮我安装 OpenViking 远程记忆插件 @openviking/openclaw-plugin。我的服务器地址是 `http://my-server:1933`,API key 是 `sk-xxx`。
30
+ ## Tools
26
31
 
27
- The agent will automatically run install → setup → restart → verify. No manual steps needed.
32
+ Once installed, the plugin provides these agent tools:
28
33
 
29
- ## Install (Command Line)
34
+ | Tool | Purpose |
35
+ |------|---------|
36
+ | `memory_recall` | Explicit long-term memory search |
37
+ | `memory_store` | Persist important information immediately |
38
+ | `memory_forget` | Delete memories by URI or query |
39
+ | `ov_archive_search` | Search across archives by keyword |
40
+ | `ov_archive_expand` | Expand an archive back to raw messages |
41
+ | `add_resource` | Import documents, URLs, or Git repos |
42
+ | `add_skill` | Import agent skills |
43
+ | `memory_search` | Search imported resources and skills |
30
44
 
31
- ```bash
32
- openclaw plugins install @openviking/openclaw-plugin
33
- openclaw openviking setup --base-url http://my-server:1933 --api-key sk-xxx --json
34
- openclaw gateway restart
35
- openclaw openviking status --json
36
- ```
45
+ ## Data Flow & Privacy
37
46
 
38
- The `setup` command automatically activates the context-engine slot and validates the server connection.
47
+ - **What is sent**: User/assistant message text from each turn (after stripping injected memory blocks and metadata noise).
48
+ - **Where it goes**: Your configured OpenViking server (`baseUrl`). The plugin only sends data to that server; downstream model/provider data handling (embedding, VLM) depends on the server's configuration.
49
+ - **Storage**: All data lives on your OpenViking server under `viking://user/*`, `viking://agent/*`, and `viking://session/*`.
50
+ - **API Key**: Sent as `X-OpenViking-Key` header over your configured connection. Never logged or forwarded.
51
+ - **Multi-tenant isolation**: Supports `accountId`, `userId`, and `agent_prefix` for per-tenant scoping.
39
52
 
40
- ## Search Keywords
53
+ ## Verify
41
54
 
42
- @openviking/openclaw-plugin, openclaw openviking plugin, openviking remote memory plugin, OpenViking Context Database plugin, install-openviking-memory.
55
+ ```bash
56
+ openclaw openviking status --json # one-shot health check
57
+ openclaw config get plugins.slots.contextEngine # should output: openviking
58
+ ```
43
59
 
44
60
  ## Documentation
45
61
 
46
- - Install and upgrade: [INSTALL.md](./INSTALL.md)
47
- - Chinese design and install guide: [INSTALL-ZH.md](./INSTALL-ZH.md)
48
- - Agent-oriented operator guide: [INSTALL-AGENT.md](./INSTALL-AGENT.md)
62
+ | Doc | Description |
63
+ |-----|-------------|
64
+ | [INSTALL.md](./INSTALL.md) | Full install, upgrade, and uninstall guide |
65
+ | [INSTALL-ZH.md](./INSTALL-ZH.md) | Chinese install guide |
66
+ | [INSTALL-AGENT.md](./INSTALL-AGENT.md) | Agent-oriented operator guide |
49
67
 
50
- ---
68
+ > **Plugin vs Skill**: This page is for `@openviking/openclaw-plugin` (the context-engine plugin). Do **not** use `clawhub install openviking` — that installs a different AgentSkill.
51
69
 
52
- ## Technical Overview
70
+ ---
53
71
 
54
- Use [OpenViking](https://github.com/volcengine/OpenViking) as the long-term memory backend for [OpenClaw](https://github.com/openclaw/openclaw). In OpenClaw, this plugin is registered as the `openviking` context engine.
72
+ <details>
73
+ <summary><b>Technical Overview (for integrators and engineers)</b></summary>
55
74
 
56
- The remainder of this document is an implementation-focused design note for integrators and engineers.
75
+ This plugin is registered as the `openviking` context engine in OpenClaw.
57
76
 
58
77
  ## Design Positioning
59
78
 
@@ -197,13 +216,14 @@ So `afterTurn()` is closer to "incremental append plus threshold-triggered async
197
216
 
198
217
  ## Tools and Expandability
199
218
 
200
- Beyond automatic behavior, the plugin exposes six tools directly:
219
+ Beyond automatic behavior, the plugin exposes seven tools directly:
201
220
 
202
221
  - `memory_recall`: explicit long-term memory search
203
222
  - `memory_store`: write text into an OpenViking session and trigger commit
204
223
  - `memory_forget`: delete by URI, or search first and remove a single strong match
205
224
  - `ov_archive_expand`: expand a concrete archive back into raw messages
206
- - `ov_import`: import a resource or skill; defaults to resource and uses `kind: "skill"` for skills
225
+ - `add_resource`: import a document, directory, URL, or Git repository as an OpenViking resource
226
+ - `add_skill`: import or register an OpenViking agent skill
207
227
  - `memory_search`: search OpenViking resources and skills, especially after importing them
208
228
 
209
229
  They serve different roles:
@@ -212,7 +232,8 @@ They serve different roles:
212
232
  - `memory_recall` gives the model an explicit follow-up search path
213
233
  - `memory_store` is for immediately persisting clearly important information
214
234
  - `ov_archive_expand` is the "go back to archive detail" escape hatch when summaries are not enough
215
- - `ov_import` lets the agent complete explicit import requests without asking the user to remember slash commands
235
+ - `add_resource` lets the agent save explicit document or repository import requests without asking the user to remember slash commands
236
+ - `add_skill` imports skills into OpenViking, while `add_resource` imports resources
216
237
  - `memory_search` closes the loop after import by letting the user or agent confirm and consume resources and skills
217
238
 
218
239
  `ov_archive_expand` is especially important because `assemble()` normally returns archive summaries and indexes, not the full raw transcript.
@@ -227,8 +248,8 @@ Resource and skill imports are intentionally separate because they land in diffe
227
248
  The plugin also registers explicit slash commands for manual imports:
228
249
 
229
250
  ```text
230
- /ov-import ./README.md --to viking://resources/openviking-readme --wait
231
- /ov-import ./skills/install-openviking-memory --kind skill --wait
251
+ /add-resource ./README.md --to viking://resources/openviking-readme --wait
252
+ /add-skill ./skills/install-openviking-memory --wait
232
253
  /memory-search "OpenViking install" --uri viking://resources/openviking-readme
233
254
  /memory-search "memory install skill" --uri viking://agent/skills
234
255
  ```
@@ -313,3 +334,5 @@ ov tui
313
334
  ---
314
335
 
315
336
  For installation, upgrade, and uninstall operations, use [INSTALL.md](./INSTALL.md).
337
+
338
+ </details>