OpenClaw Plugin
Use OpenViking as the long-term memory backend for OpenClaw. After installation, OpenClaw will automatically remember important facts from conversations and recall relevant context before replying.
This plugin is registered as the openviking context engine — it owns long-term memory retrieval, session archiving, archive summaries, and memory extraction across the OpenClaw lifecycle.
Source: examples/openclaw-plugin
Prerequisites
| Component | Required Version |
|---|---|
| Node.js | >= 22 |
| OpenClaw | >= 2026.3.7 |
The plugin connects to an existing OpenViking server. Make sure you have one reachable over HTTP — see the Deployment Guide. Quick check:
node -v
openclaw --versionUpgrading from the legacy
memory-openvikingplugin? It's not compatible with the newopenvikingplugin. Run the cleanup script first:bashcurl -fsSL https://raw.githubusercontent.com/volcengine/OpenViking/main/examples/openclaw-plugin/upgrade_scripts/cleanup-memory-openviking.sh -o cleanup-memory-openviking.sh bash cleanup-memory-openviking.sh
Install via ClawHub (recommended)
openclaw plugins install clawhub:@openclaw/openvikingThen run the interactive setup wizard:
openclaw openviking setupThe wizard prompts for your remote OpenViking server URL and optional API key, then writes configuration to $OPENCLAW_STATE_DIR/openclaw.json (default: ~/.openclaw/openclaw.json).
Restart the gateway:
openclaw gateway restartInstall via ov-install (alternative)
The ov-install helper automates plugin deployment:
npm install -g openclaw-openviking-setup-helper
ov-installCommon variants:
# Target a specific OpenClaw data directory
ov-install --workdir ~/.openclaw-second
# Pin to a specific plugin release
ov-install -y --version 0.2.9To upgrade later:
npm install -g openclaw-openviking-setup-helper@latest && ov-install -yov-install parameters
| Parameter | Meaning |
|---|---|
--workdir PATH | Target OpenClaw data directory |
--version VER | Set plugin version (e.g. 0.2.9 → plugin v0.2.9) |
--current-version | Print the currently installed plugin version |
--plugin-version REF | Set plugin version only — supports tag, branch, or commit |
--github-repo owner/repo | Use a different GitHub repo for plugin files (default volcengine/OpenViking) |
--update | Upgrade only the plugin |
-y | Non-interactive mode, use default values |
Plugin configuration
The plugin configuration lives under plugins.entries.openviking.config. Setup usually writes this for you — manual edits are only needed if you change servers later.
openclaw config get plugins.entries.openviking.config| Parameter | Default | Meaning |
|---|---|---|
baseUrl | http://127.0.0.1:1933 | Remote OpenViking HTTP endpoint |
apiKey | empty | Optional OpenViking API key |
agent_prefix | default | Agent prefix used by this OpenClaw instance on the server |
Common settings:
openclaw config set plugins.entries.openviking.config.baseUrl http://your-server:1933
openclaw config set plugins.entries.openviking.config.apiKey your-api-key
openclaw config set plugins.entries.openviking.config.agent_prefix your-prefixVerify
Check that the plugin owns the contextEngine slot:
openclaw config get plugins.slots.contextEngineIf the output is openviking, the plugin is active.
Follow OpenClaw logs for the registration message:
openclaw logs --follow
# expect: openviking: registered context-engineOpenViking server log (default location):
cat ~/.openviking/data/log/openviking.logCurrently-installed plugin version:
ov-install --current-versionPipeline health check (optional)
For an end-to-end sanity check (Gateway → OpenViking pipeline), run:
python examples/openclaw-plugin/health_check_tools/ov-healthcheck.pyThis script injects a real conversation through Gateway and verifies from the OpenViking side that the session was captured, committed, archived, and had memories extracted. See HEALTHCHECK.md for details.
Uninstall
curl -fsSL https://raw.githubusercontent.com/volcengine/OpenViking/main/examples/openclaw-plugin/upgrade_scripts/uninstall-openclaw-plugin.sh -o uninstall-openviking.sh
bash uninstall-openviking.shFor a non-default OpenClaw state directory, append --workdir ~/.openclaw-second.
See also
- Full install guide — every install path, parameter, and verification step
- Plugin design notes — architecture, identity & routing, hook lifecycle
- Agent operator guide — for agents driving installation on behalf of a user
