Back to Openviking

OpenClaw Plugin

docs/en/agent-integrations/03-openclaw.md

0.3.213.9 KB
Original Source

OpenClaw Plugin

Add long-term memory to OpenClaw. After installation, OpenClaw automatically remembers important facts from conversations and recalls relevant context before every reply.

Source: examples/openclaw-plugin

Prerequisites

ComponentRequired Version
Node.js>= 22
OpenClaw>= 2026.4.8

The plugin connects to a running OpenViking server — see the Deployment Guide if you need one.

<details> <summary><b>Upgrading from the legacy <code>memory-openviking</code> plugin?</b></summary>

The old plugin is not compatible. Run the cleanup script first:

bash
curl -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
</details>

Install

bash
openclaw plugins install clawhub:@openviking/openclaw-plugin
openclaw openviking setup --base-url http://your-server:1933 --api-key sk-xxx --json
openclaw gateway restart

The setup wizard writes configuration and activates the plugin. After install, start a conversation — OpenClaw will begin remembering and recalling automatically.

<details> <summary><b>Alternative: install via <code>ov-install</code></b></summary>

If ClawHub is unavailable:

bash
npm install -g openclaw-openviking-setup-helper
ov-install --base-url http://your-server:1933

Key parameters:

ParameterMeaning
--workdir PATHOpenClaw data directory (default ~/.openclaw)
--plugin-version=VERPlugin version: npm version, dist-tag, or Git ref
--base-url URLOpenViking server URL
--api-key KEYOpenViking API key
--uninstallUninstall the plugin

Full parameter list in the install guide.

</details>

Verify

bash
openclaw openviking status

This checks plugin registration, server connectivity, and version compatibility in one command. Append --json for machine-readable output.

<details> <summary><b>Manual verification</b></summary>

Check the plugin owns the contextEngine slot:

bash
openclaw config get plugins.slots.contextEngine
# expect: openviking

For an end-to-end pipeline test:

bash
python examples/openclaw-plugin/health_check_tools/ov-healthcheck.py

See HEALTHCHECK.md for details.

</details> <details> <summary><b>Configuration</b></summary>

Plugin config lives under plugins.entries.openviking.config. Setup usually writes this for you.

ParameterDefaultMeaning
baseUrlhttp://127.0.0.1:1933OpenViking server endpoint
apiKeyemptyOpenViking API key
agent_prefixdefaultAgent prefix for memory namespace isolation
bash
openclaw config set plugins.entries.openviking.config.baseUrl http://your-server:1933
openclaw config set plugins.entries.openviking.config.apiKey your-api-key
</details>

Uninstall

bash
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.sh

See also