← Back to Skills Marketplace
linqiang391

Install OpenViking Memory

by LinQiang391 · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ⚠ suspicious
37
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install install-openviking-memory
Description
Install and configure the OpenViking long-term memory plugin for OpenClaw via natural conversation. Once installed, the plugin automatically captures importa...
README (SKILL.md)

\r \r

Install OpenViking Memory — Agent Installation & Reference Skill\r

\r You are about to help a user install and configure the OpenViking memory plugin for OpenClaw.\r The user does NOT know how to use a terminal. You will collect a few values through natural conversation, then run all commands yourself using your shell tool.\r \r Read this entire document before starting. Follow every step in order. Do NOT skip steps.\r \r This skill is split into two halves:\r \r

  • Part 1 (STEP 0–10): Natural-language installation walkthrough. Use this on first install or reconfigure.\r
  • Part 2: Reference. Tools, config schema, multi-tenant, multi-instance, daily ops, uninstall, error recovery. Read on demand.\r \r

Server scope. This skill does not install the OpenViking server itself. It assumes the server is already running locally on 127.0.0.1:1933 or on another machine. If the user has no server, see "Server not ready" handling in STEP 5.\r \r ---\r \r

Part 1 — Natural-Language Installation Walkthrough\r

\r

STEP 0: Detect Language\r

\r If the user's first message contains Chinese characters, respond in Chinese throughout.\r Otherwise respond in English.\r All user-facing messages below have (CN)/(EN) variants — use the matching one.\r \r Do NOT show this step to the user.\r \r ---\r \r

STEP 1: Detect Operating System (silently)\r

\r Run this command and remember the result. Do NOT show it to the user.\r \r

uname -s 2>/dev/null || echo WINDOWS\r
```\r
\r
- Output contains `Darwin` → `OS=mac`\r
- Output contains `Linux` → `OS=linux`\r
- Output is `WINDOWS` or the command fails → `OS=windows`\r
\r
---\r
\r
## STEP 2: Check Prerequisites (silently)\r
\r
Run silently:\r
\r
```bash\r
node -v\r
openclaw --version\r
```\r
\r
**If `node` is missing:**\r
\r
> (CN) 你的系统没有安装 Node.js。OpenClaw 和 OpenViking 插件需要 Node.js >= 22。请先安装 Node.js,然后再回来找我。\r
> (EN) Node.js is not installed. OpenClaw and the OpenViking plugin require Node.js >= 22. Please install Node.js first, then come back.\r
\r
**Stop. Do NOT continue.**\r
\r
**If `openclaw` is missing:**\r
\r
> (CN) 你的系统没有安装 OpenClaw。请先安装 OpenClaw(>= 2026.3.7),然后再回来找我。\r
> (EN) OpenClaw is not installed. Please install OpenClaw (>= 2026.3.7) first, then come back.\r
\r
**Stop. Do NOT continue.**\r
\r
If both exist, proceed to STEP 3 silently.\r
\r
---\r
\r
## STEP 3: Greet and Ask for 3 Values\r
\r
Send this message:\r
\r
> (CN) 好,我来帮你接入 OpenViking 长期记忆。装好之后,我会自动记住对话里的重要信息,下次聊也能回忆起来。\r
>\r
> 我需要 3 条信息,不知道的可以问你的管理员:\r
> 1. **OpenViking 服务地址** —— 例如 `https://ov.example.com` 或 `http://192.168.1.100:1933`,本机服务可以直接说"本机"\r
> 2. **API Key** —— 用来鉴权;服务没开认证可以说"没有"\r
> 3. **Agent 标识前缀**(可选) —— 用于区分多个 agent 的记忆命名空间,留空就用默认\r
>\r
> 先告诉我服务地址吧?\r
\r
> (EN) I'll set up OpenViking long-term memory for you. Once configured, I'll automatically remember important info from our chats and recall it later.\r
>\r
> I need 3 things (ask your admin if unsure):\r
> 1. **OpenViking server URL** — e.g. `https://ov.example.com` or `http://192.168.1.100:1933`. For a local server, just say "local".\r
> 2. **API Key** — for auth. Say "none" if the server has no auth.\r
> 3. **Agent prefix** (optional) — used to namespace memories across agents. Leave blank for default.\r
>\r
> What's the server URL?\r
\r
---\r
\r
## STEP 4: Collect Values\r
\r
Collect 3 values through natural conversation. Be flexible: if the user gives several at once, parse them all. If they correct something, accept the new value.\r
\r
### 4a. `BASE_URL` (REQUIRED)\r
\r
- "local" / "本机" / "localhost" → use `http://127.0.0.1:1933`.\r
- `ov.example.com` without protocol → prepend `https://`.\r
- Strip trailing `/`, `/health`, or `/api`.\r
- After normalization must start with `http://` or `https://`.\r
- If the user says they don't know, ask them to check with the admin or look at how the server was started. **Do NOT make up a URL.**\r
\r
### 4b. `API_KEY` (OPTIONAL)\r
\r
> (CN) API Key 是什么?服务没开认证就直接说"没有"。\r
> (EN) What's the API Key? Say "none" if the server has no auth.\r
\r
- "no" / "none" / "没有" / "空" / empty → `API_KEY=""` (you will skip the flag later).\r
- Otherwise store as-is.\r
\r
### 4c. `AGENT_PREFIX` (OPTIONAL)\r
\r
> (CN) 想给这个 agent 一个记忆前缀吗?留空就用默认。只能用字母、数字、`_`、`-`。\r
> (EN) Want to set an agent prefix? Leave blank for the default. Letters, digits, `_`, `-` only.\r
\r
- Empty / "default" / "默认" → leave unset (plugin defaults to `""`).\r
- Otherwise validate against `/^[A-Za-z0-9_-]+$/`. If invalid, ask again.\r
\r
### 4d. (Conditional) Multi-Tenant Root-Key Fields\r
\r
Only ask for these if STEP 7 detects a root key (`Root API key detected. Missing: --account-id, --user-id`). Don't ask up front.\r
\r
- `ACCOUNT_ID`\r
- `USER_ID`\r
\r
See **Reference: Multi-Tenant** for what these mean.\r
\r
---\r
\r
## STEP 5: Pre-flight Connectivity Check (silently)\r
\r
Tell the user briefly:\r
\r
> (CN) 我先测一下能不能连上服务……\r
> (EN) Let me test the connection to your server...\r
\r
Run:\r
\r
**If OS=windows:**\r
\r
```powershell\r
try { (Invoke-WebRequest -Uri "BASE_URL/health" -TimeoutSec 10 -UseBasicParsing -ErrorAction Stop).StatusCode } catch { $_.Exception.Response.StatusCode.value__ }\r
```\r
\r
**If OS=mac or OS=linux:**\r
\r
```bash\r
curl -sS -o /dev/null -w "%{http_code}" --connect-timeout 10 "BASE_URL/health"\r
```\r
\r
Replace `BASE_URL` with the actual value.\r
\r
| Status | Meaning | Action |\r
|---|---|---|\r
| `200` | Server reachable, no auth on `/health` | Proceed to STEP 6. |\r
| `401` / `403` | Server reachable but `/health` requires auth | Proceed to STEP 6 — the wizard's key probe will sort it out. |\r
| `000` / timeout / connection refused | Server unreachable | **Server-not-ready handling** below. |\r
| Anything else | Unexpected | Show status code to the user, go back to STEP 4a. |\r
\r
### Server-not-ready handling\r
\r
This skill **does not install or operate the OpenViking server**. If the user's server is unreachable, present the situation honestly and offer two paths:\r
\r
> (CN) ❌ 我连不上 `BASE_URL`。可能是:\r
> 1) 服务还没启动 —— 请联系你的 OpenViking 服务管理员把它起起来;如果是你自己负责,请参考 OpenViking 官方文档(`https://github.com/volcengine/OpenViking`)的 server 启动指引。\r
> 2) 地址不对 —— 你可以重新告诉我正确的地址。\r
> 3) 网络不通(防火墙 / VPN / 内网)—— 你确认一下网络。\r
>\r
> 也可以选择"先把配置写下来",等服务起来就自动生效,要这么办吗?\r
\r
> (EN) ❌ Cannot reach `BASE_URL`. Likely cause:\r
> 1) **Server isn't running** — please ask your OpenViking admin to start it. If you own the server, follow the OpenViking official docs (`https://github.com/volcengine/OpenViking`) to start it. **This skill does not install or run the server.**\r
> 2) **Wrong URL** — give me the correct URL.\r
> 3) **Network blocked** (firewall / VPN / private network) — please verify connectivity.\r
>\r
> Or I can save the config now (`--allow-offline`) so it will activate automatically once the server is up. Want me to do that?\r
\r
If the user fixes the URL → back to STEP 4a.\r
If the user wants `--allow-offline` → remember `ALLOW_OFFLINE=true` and continue to STEP 6.\r
If the user gives up / cannot fix → stop here. Do NOT continue with a broken state.\r
\r
---\r
\r
## STEP 6: Install the Plugin\r
\r
The plugin can be installed two ways. **Always try Path A first.** If it fails — especially due to ClawHub rate limiting / login required — fall back to Path B.\r
\r
### Path A — Primary: `openclaw plugins install` (uses ClawHub)\r
\r
Tell the user:\r
\r
> (CN) 现在开始装插件……\r
> (EN) Installing the plugin now...\r
\r
Run:\r
\r
```bash\r
openclaw plugins install @openclaw/openviking\r
```\r
\r
Trigger fallback to Path B if the output contains any of these strings:\r
\r
- `429`\r
- `rate limit` / `rate-limited` / `Too Many Requests`\r
- `not logged in` / `please log in` / `please login` / `unauthorized` / `401` / `403` together with `clawhub`\r
- `ETIMEDOUT` / `ECONNRESET` on a `clawhub`-related host\r
- generic message indicating the registry refused an anonymous client\r
\r
Before falling back, also try the explicit registry prefix once:\r
\r
```bash\r
openclaw plugins install clawhub:@openclaw/openviking\r
```\r
\r
If the install **succeeds**, jump to STEP 7.\r
\r
If both attempts fail — even with non-rate-limit errors (version conflict, missing dep, etc.) — go to Path B. `ov-install` deploys the plugin from GitHub raw and bypasses ClawHub entirely, so it usually still works.\r
\r
### Path B — Fallback: `ov-install` (bypasses ClawHub)\r
\r
Tell the user:\r
\r
> (CN) ClawHub 现在好像被限流或者你没登录账号,我换一种方式装,直接从 GitHub 下载,应该会更稳。\r
> (EN) ClawHub looks rate-limited or unavailable. Let me install via the direct-from-GitHub path instead — it's more reliable.\r
\r
Run the installer with `npx` (no global install needed):\r
\r
```bash\r
npx -y openclaw-openviking-setup-helper@latest --base-url BASE_URL [--api-key API_KEY] [--agent-prefix AGENT_PREFIX] [--account-id ACCOUNT_ID] [--user-id USER_ID]\r
```\r
\r
Build the flag list according to what the user gave you:\r
\r
- Always pass `--base-url BASE_URL`.\r
- Pass `--api-key API_KEY` only if `API_KEY` is non-empty.\r
- Pass `--agent-prefix AGENT_PREFIX` only if the user gave one.\r
- `--account-id` / `--user-id` only if the root-key path requires them.\r
\r
`ov-install` will, in one shot:\r
1. Download plugin sources from `raw.githubusercontent.com` into the OpenClaw `extensions/` dir.\r
2. Run `npm install --omit=dev` inside the staging dir.\r
3. Register the plugin in `openclaw.json` (via `openclaw plugins enable` or direct write).\r
4. Run `openclaw openviking setup --json --base-url … [--api-key …] --force-slot` for the user.\r
5. Fall back to direct config write if `setup --json` fails.\r
\r
This means **STEP 7 is effectively done by `ov-install`**. After `ov-install` exits 0, jump straight to **STEP 9** (gateway restart) and **STEP 10** (verify).\r
\r
If `ov-install` exits non-zero, capture the last 30 lines of its output, show them to the user, and stop. Don't retry blindly.\r
\r
---\r
\r
## STEP 7: Configure (only on Path A — Path B did this for you)\r
\r
Run the setup wizard non-interactively. Build flags from collected values:\r
\r
```bash\r
openclaw openviking setup --base-url BASE_URL --json [--api-key API_KEY] [--agent-prefix AGENT_PREFIX] [--account-id ACCOUNT_ID] [--user-id USER_ID] [--allow-offline] [--force-slot]\r
```\r
\r
Rules:\r
\r
- `--base-url BASE_URL` is **required** under `--json`. Without it, the wizard prints `--json requires --base-url for non-interactive mode`.\r
- `--api-key` only if `API_KEY` is non-empty.\r
- `--agent-prefix` only if the user gave one. Use **`--agent-prefix`**, not `--agent-id` (deprecated and removed).\r
- `--account-id` / `--user-id` only after STEP 7 root-key detection (see below).\r
- `--allow-offline` only if the user explicitly approved it in STEP 5.\r
- `--force-slot` **never** in the first attempt. Add only after the user confirms (see slot_blocked handling below).\r
\r
### Parse the JSON output\r
\r
The wizard prints a single JSON object:\r
\r
```json\r
{\r
  "success": true | false,\r
  "action": "configured" | "existing" | "error" | "slot_blocked",\r
  "config": { "mode": "remote", "baseUrl": "...", "apiKey": "...", "agent_prefix": "...", "accountId": "...", "userId": "..." },\r
  "health": { "ok": true, "status": 200 },\r
  "keyProbe": { "keyType": "user_key" | "root_key" | "none", "ok": true },\r
  "slot": { "ok": true, "owner": "openviking" },\r
  "error": "..."\r
}\r
```\r
\r
### Decision matrix\r
\r
| Condition | Action |\r
|---|---|\r
| `success: true` and `action: "configured"` or `"existing"` | Done. Proceed to STEP 9. |\r
| `success: false` and `action: "slot_blocked"` | **Slot conflict — see below.** |\r
| `success: false` and `error` contains `"Server unreachable"` | Connectivity broke between STEP 5 and STEP 7. Offer `--allow-offline`; if accepted, retry. Otherwise back to STEP 4a. |\r
| `success: false` and `error` contains `"Root API key detected"` and `"Missing: --account-id, --user-id"` | **Root-key path — see below.** |\r
| `success: false` and `error` contains `"Invalid API key"` / `keyProbe.keyType: "none"` with `ok: false` | API key wrong. Back to STEP 4b. |\r
| `success: false` and any other `action: "error"` | Show `error` to the user, stop. Do NOT pretend success. |\r
\r
### Slot conflict (`slot_blocked`)\r
\r
The error text looks like:\r
\r
> `contextEngine slot is owned by "\x3Cother-plugin>". Config was saved but slot was NOT changed. Use --force-slot to replace.`\r
\r
**Do NOT silently use `--force-slot`.** Ask the user:\r
\r
> (CN) 你的 OpenClaw 当前 contextEngine 槽被 `\x3Cother-plugin>` 占着。如果用 OpenViking 替换它,`\x3Cother-plugin>` 就不再生效。要替换吗?\r
> (EN) Your `contextEngine` slot is currently owned by `\x3Cother-plugin>`. Activating OpenViking will disable it. Replace?\r
\r
If the user agrees, retry the same setup command with `--force-slot` appended. If they decline, tell them config has been saved but the slot is unchanged, and stop.\r
\r
### Root-key path\r
\r
The error text looks like:\r
\r
> `Root API key detected. Missing: --account-id, --user-id. Provide both to enable multi-tenant scoping.`\r
\r
Ask the user:\r
\r
> (CN) 你给的是 root 级 API Key,需要再补两个值才能用:账户 ID(accountId)和用户 ID(userId)。这两个一般是 OpenViking 服务管理员配的,不知道就问他们。\r
> (EN) Your API key is a root key, which needs two more values: `accountId` and `userId`. Both come from your OpenViking server admin — ask them if unsure.\r
\r
After collecting, retry the setup command with `--account-id` and `--user-id` appended.\r
\r
---\r
\r
## STEP 8: (Reserved — done inside STEP 7 or by `ov-install`)\r
\r
The setup wizard already wrote `plugins.entries.openviking.config.*` and (if successful) set `plugins.slots.contextEngine = "openviking"`. There is no separate STEP 8 — go to STEP 9.\r
\r
---\r
\r
## STEP 9: Restart the Gateway\r
\r
```bash\r
openclaw gateway restart\r
```\r
\r
If it fails, try once more with:\r
\r
```bash\r
openclaw gateway --force\r
```\r
\r
If both fail:\r
\r
> (CN) Gateway 没能自动重启。请你手动跑一下 `openclaw gateway restart`。重启完告诉我,我来验证。\r
> (EN) Gateway didn't restart cleanly. Please run `openclaw gateway restart` manually, then tell me when it's done so I can verify.\r
\r
Wait ~3 seconds before STEP 10.\r
\r
---\r
\r
## STEP 10: Verify\r
\r
```bash\r
openclaw openviking status --json\r
```\r
\r
Expected output:\r
\r
```json\r
{\r
  "configured": true,\r
  "slotActive": true,\r
  "health": { "ok": true },\r
  "config": { "baseUrl": "...", "agent_prefix": "..." }\r
}\r
```\r
\r
### Decision\r
\r
- `configured: true` **and** `slotActive: true` **and** `health.ok: true` → **success.** Send the success message below.\r
- `configured: true` but `slotActive: false` → if you previously skipped `--force-slot`, ask the user about replacing now and retry STEP 7 with `--force-slot`. Otherwise it's a gateway restart issue — back to STEP 9.\r
- `configured: true` but `health.ok: false` → server became unreachable. Tell the user; the config will start working as soon as the server is back.\r
- `configured: false` → setup didn't actually persist. Show full status JSON to the user and stop.\r
\r
### Success message\r
\r
> (CN) 🎉 全部搞定!OpenViking 长期记忆已经接好了。\r
>\r
> 从现在起:\r
> - **自动记忆**:对话里的重要信息会被自动抽取并保存\r
> - **自动回忆**:我每轮回复前会先搜一下相关记忆并带进上下文\r
> - **跨会话**:下次开新对话也能记得之前讲过的事\r
>\r
> 你可以试试说"记住我的邮箱是 [email protected]"来验证。\r
\r
> (EN) 🎉 All set! OpenViking long-term memory is connected.\r
>\r
> From now on:\r
> - **Auto-capture**: important info from our chats is extracted and stored\r
> - **Auto-recall**: relevant memories are searched and injected before each of my replies\r
> - **Cross-session**: I'll remember things from earlier conversations\r
>\r
> Try saying "Remember my email is [email protected]" to test it.\r
\r
---\r
\r
# Part 2 — Reference\r
\r
## How It Works\r
\r
- **Auto-Capture**: at the end of each user turn, the plugin extracts memories from user/assistant messages.\r
  - `semantic` mode (default): captures all qualifying user text, relying on OpenViking's extraction pipeline to filter.\r
  - `keyword` mode: only captures text matching trigger words (e.g. "remember", "preference", etc.).\r
- **Auto-Recall**: before each prompt build, the plugin searches relevant memories and injects them into context.\r
\r
## Available Tools\r
\r
These are the plugin tools the agent can call once installed.\r
\r
### `memory_recall` — Search Memories\r
\r
| Parameter | Required | Description |\r
|---|---|---|\r
| `query` | Yes | Search query text |\r
| `limit` | No | Maximum number of results (defaults to plugin config) |\r
| `scoreThreshold` | No | Minimum relevance score 0–1 (defaults to plugin config) |\r
| `targetUri` | No | Search scope URI (defaults to plugin config) |\r
\r
Example: user asks "What programming language did I say I like?"\r
\r
### `memory_store` — Manual Store\r
\r
| Parameter | Required | Description |\r
|---|---|---|\r
| `text` | Yes | Information text to store |\r
| `role` | No | Session role (default `user`) |\r
| `sessionId` | No | Existing OpenViking session ID |\r
\r
Example: user says "Remember my email is [email protected]".\r
\r
### `memory_forget` — Delete Memories\r
\r
| Parameter | Required | Description |\r
|---|---|---|\r
| `uri` | No | Exact memory URI (direct delete) |\r
| `query` | No | Search query (find then delete) |\r
| `targetUri` | No | Search scope URI |\r
| `limit` | No | Search limit (default 5) |\r
| `scoreThreshold` | No | Minimum relevance score |\r
\r
Example: user says "Forget my phone number".\r
\r
## Configuration Schema\r
\r
These are the keys under `plugins.entries.openviking.config` in `openclaw.json`. The setup wizard / `ov-install` sets the first few; the rest are tunables.\r
\r
| Field | Default | Description |\r
|---|---|---|\r
| `mode` | `"remote"` (forced by plugin) | Always remote in this skill. Don't set manually. |\r
| `baseUrl` | `http://127.0.0.1:1933` | OpenViking server URL. |\r
| `apiKey` | — | API key. Optional if server has no auth. |\r
| `agent_prefix` | `""` | Prefix for routing memories per agent. Letters / digits / `_` / `-`. |\r
| `accountId` | — | Required when `apiKey` is a root key. |\r
| `userId` | — | Required when `apiKey` is a root key. |\r
| `targetUri` | `viking://user/memories` | Default search scope URI. |\r
| `timeoutMs` | (plugin default) | HTTP timeout for OpenViking calls. |\r
| `autoCapture` | `true` | Auto-capture memories at end of turn. |\r
| `captureMode` | `"semantic"` | `semantic` or `keyword`. |\r
| `captureMaxLength` | `24000` | Max text length captured per turn. |\r
| `autoRecall` | `true` | Auto-recall and inject memories before reply. |\r
| `recallLimit` | `6` | Max memories injected per recall. |\r
| `recallScoreThreshold` | `0.15` | Min relevance score to inject. |\r
| `recallMaxInjectedChars` | (plugin default) | Hard cap on injected character count. |\r
| `recallPreferAbstract` | (plugin default) | Prefer abstract memories over raw. |\r
| `recallTokenBudget` | (plugin default) | Token budget for injected memories. |\r
| `isolateUserScopeByAgent` | (plugin default) | Multi-tenant scoping toggle. |\r
| `isolateAgentScopeByUser` | (plugin default) | Multi-tenant scoping toggle. |\r
| `agentScopeMode` | (plugin default) | Agent scope strategy. |\r
| `bypassSessionPatterns` | — | Glob patterns for sessions skipped by capture. |\r
| `ingestReplyAssist` | (plugin default) | Reply-assist ingestion toggle. |\r
| `emitStandardDiagnostics` | (plugin default) | Verbose diagnostic logs. |\r
| `logFindRequests` | (plugin default) | Log retrieval requests. |\r
\r
To change a value:\r
\r
```bash\r
openclaw config set plugins.entries.openviking.config.\x3Cfield> \x3Cvalue>\r
openclaw gateway restart\r
```\r
\r
## Multi-Tenant (Root API Keys)\r
\r
Some OpenViking deployments use a single **root** API key shared across tenants. In that case the plugin needs both `accountId` and `userId` so it can scope memories correctly. The setup wizard detects this automatically and returns:\r
\r
```\r
Root API key detected. Missing: --account-id, --user-id\r
```\r
\r
When you see this:\r
\r
1. Ask the user for both values (they come from the OpenViking admin).\r
2. Retry STEP 7 with both flags:\r
\r
```bash\r
openclaw openviking setup --base-url BASE_URL --api-key API_KEY --account-id ACCOUNT_ID --user-id USER_ID --json\r
```\r
\r
A **user key** (issued per tenant) does not need these flags.\r
\r
## Multi-Instance (`--workdir` / `OPENCLAW_STATE_DIR`)\r
\r
If the user runs multiple OpenClaw instances (e.g. testing several agents in parallel), each has its own state dir.\r
\r
To target a non-default instance:\r
\r
```bash\r
npx -y openclaw-openviking-setup-helper@latest --workdir ~/.openclaw-second --base-url ... --api-key ...\r
```\r
\r
`ov-install` writes a helper env file when the state dir is non-default:\r
\r
- Unix: `~/.openclaw/openviking.env` containing `export OPENCLAW_STATE_DIR='...'`\r
- Windows: `~/.openclaw/openviking.env.bat` and `.ps1` setting the same variable\r
\r
Source it before running `openclaw` commands so they hit the correct state:\r
\r
**Unix:**\r
```bash\r
source ~/.openclaw/openviking.env\r
openclaw status\r
```\r
\r
**Windows (PowerShell):**\r
```powershell\r
. "$HOME/.openclaw/openviking.env.ps1"\r
openclaw status\r
```\r
\r
Or pass `--workdir` directly to each `openclaw` invocation (note: not all `openclaw` subcommands honor `--workdir` consistently — when in doubt, prefer the env var).\r
\r
## Daily Operations\r
\r
```bash\r
# Start or restart OpenClaw gateway after config changes\r
openclaw gateway restart\r
\r
# Check overall status\r
openclaw status\r
openclaw openviking status --json\r
\r
# Read current OpenViking slot\r
openclaw config get plugins.slots.contextEngine\r
\r
# Disable OpenViking memory (keep config, deactivate slot)\r
openclaw config set plugins.slots.contextEngine legacy\r
openclaw gateway restart\r
\r
# Re-enable\r
openclaw config set plugins.slots.contextEngine openviking\r
openclaw gateway restart\r
```\r
\r
## Uninstall\r
\r
### Preferred: via `ov-install`\r
\r
```bash\r
npx -y openclaw-openviking-setup-helper@latest --uninstall\r
```\r
\r
This will:\r
\r
1. Stop the OpenClaw gateway.\r
2. Back up `openclaw.json`.\r
3. Remove all OpenViking plugin config from `openclaw.json` (`plugins.entries.openviking`, `plugins.allow`, `plugins.installs.openviking`, `plugins.slots.contextEngine`).\r
4. Move the plugin directory to `disabled-extensions/` as backup.\r
5. Remove the helper env files (`openviking.env`, `.bat`, `.ps1`).\r
\r
Add `--base-url dummy` for fully non-interactive mode (skips the confirmation prompt).\r
\r
### Manual\r
\r
```bash\r
openclaw gateway stop\r
openclaw config set plugins.slots.contextEngine legacy\r
# Then edit ~/.openclaw/openclaw.json and remove openviking from\r
#   plugins.entries\r
#   plugins.allow\r
#   plugins.installs\r
openclaw gateway restart\r
```\r
\r
## Error Recovery Reference\r
\r
Match against actual stderr / JSON `error` strings.\r
\r
| Symptom (exact string) | Likely cause | Fix |\r
|---|---|---|\r
| `command not found: openclaw` | OpenClaw not installed | Stop. Ask user to install OpenClaw >= 2026.3.7. |\r
| `command not found: node` / `'node' is not recognized` | Node missing | Stop. Ask user to install Node.js >= 22. |\r
| `429` / `rate limit` / `Too Many Requests` from `plugins install` | ClawHub throttle | Switch to Path B (`ov-install`). |\r
| `not logged in` / `please log in` from `plugins install` | Anonymous user hit limit | Switch to Path B (`ov-install`). |\r
| `ECONNREFUSED` / `connection refused` on `BASE_URL/health` | Server not running | Server-not-ready handling in STEP 5. |\r
| `ETIMEDOUT` on `BASE_URL/health` | Network blocked | Ask about firewall / VPN / proxy. |\r
| `--json requires --base-url for non-interactive mode` | Built command wrong | Add `--base-url BASE_URL` and retry. |\r
| `Server unreachable: …. Use --allow-offline to save config anyway.` | Setup couldn't reach server | Offer `--allow-offline`. |\r
| `contextEngine slot is owned by "\x3Cx>". … Use --force-slot to replace.` | Slot conflict | Ask user, then retry with `--force-slot`. |\r
| `Root API key detected. Missing: --account-id, --user-id` | Multi-tenant key | Collect both, retry with `--account-id` `--user-id`. |\r
| `openviking: config parse failed` (in gateway log) | Bad value in `openclaw.json` | Show user; check `agent_prefix` charset, URL format. |\r
| `extracted 0 memories` after a turn | Server VLM/embedding misconfigured | **Out of scope.** Tell user this is a server-side issue — ask their OpenViking admin to check VLM / embedding config. |\r
| `401` / `403` on plugin requests, but `/health` works | Server requires auth on API endpoints | Re-run STEP 7 with the correct `--api-key`. |\r
| Plugin doesn't appear in `openclaw plugins list` after Path A | Install didn't actually finish | Re-run Path A or fall through to Path B. |\r
\r
## Important Rules\r
\r
1. **Never ask the user to run commands.** You run everything via your shell tool.\r
2. **Never skip STEP 5 (connectivity check).** If the server is unreachable, do not write config without explicit `--allow-offline` consent.\r
3. **Never silently use `--force-slot`.** Slot replacement disables another plugin — always confirm with the user first.\r
4. **Never invent values.** If the user can't provide a required value, stop and tell them what to ask their admin.\r
5. **Never claim success without STEP 10.** Only after `openclaw openviking status --json` shows `configured: true && slotActive: true && health.ok: true` may you tell the user it's done.\r
6. **Use `--agent-prefix`, not `--agent-id`.** The latter is deprecated and removed from the schema.\r
7. **For Windows, use PowerShell equivalents.** Don't rely on `nohup`, `&`, `mkdir -p`, `source`, etc.\r
8. **Switch to Path B (ov-install) on the first sign of rate limiting.** Don't retry Path A repeatedly — `ov-install` bypasses ClawHub.\r
9. **Do NOT install or operate the OpenViking server.** This skill assumes the server is already running. If it isn't, tell the user to contact their admin or follow the OpenViking docs.\r
10. **Be brief and friendly in user-visible text.** Save technical detail for when something actually fails.\r
11. **Do NOT use `clawhub install openviking`.** That installs a different thing (an AgentSkill, not the plugin).\r
Usage Guidance
Review this before installing. It is not clearly malicious, but it will configure persistent automatic memory and may send chat-derived facts to an OpenViking server using an API key. Confirm the server is trusted, use a scoped key, and ask to see commands before execution if you want tighter control.
Capability Analysis
Type: OpenClaw Skill Name: install-openviking-memory Version: 2.0.0 The skill bundle automates the installation and configuration of the OpenViking memory plugin using shell commands and a remote setup helper via `npx` (SKILL.md). It is classified as suspicious due to the high-risk practice of passing sensitive API keys as command-line arguments, which exposes them to local process monitoring, and the use of `npx` to execute remote code from a third-party package. While these actions are aligned with the stated purpose of installation, they represent significant security vulnerabilities and supply chain risks.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
The stated purpose is coherent, but the resulting plugin automatically stores and reuses chat-derived memory across sessions, which is high-impact persistent agent context.
Instruction Scope
The skill tells the agent to run setup and prerequisite commands itself, including silent checks; this fits an installer but users should understand it can change their OpenClaw environment.
Install Mechanism
The registry provides no install spec or code files, so the exact installer behavior is not reviewable from artifacts beyond the SKILL.md instructions.
Credentials
Node, OpenClaw, shell commands, a server URL, and an API key are proportionate for this integration, but they involve local configuration changes and an external memory service.
Persistence & Privilege
The skill sets up cross-session automatic memory and includes support for root-key multi-tenant configuration, both of which should be scoped and reviewed carefully.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install install-openviking-memory
  3. After installation, invoke the skill by name or use /install-openviking-memory
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.0.0
Initial publish: natural-language install walkthrough (STEP 0-10) + reference (tools, config schema, multi-tenant, multi-instance, daily ops, uninstall, error recovery). Auto-fallback to ov-install when ClawHub is rate-limited. Server install is out of scope.
Metadata
Slug install-openviking-memory
Version 2.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Install OpenViking Memory?

Install and configure the OpenViking long-term memory plugin for OpenClaw via natural conversation. Once installed, the plugin automatically captures importa... It is an AI Agent Skill for Claude Code / OpenClaw, with 37 downloads so far.

How do I install Install OpenViking Memory?

Run "/install install-openviking-memory" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Install OpenViking Memory free?

Yes, Install OpenViking Memory is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Install OpenViking Memory support?

Install OpenViking Memory is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Install OpenViking Memory?

It is built and maintained by LinQiang391 (@linqiang391); the current version is v2.0.0.

💬 Comments