dsh-openviking-manager: OpenViking Configuration and Management Interface in DSH

Preface

When integrating OpenViking into DeepSeek Harness (DSH), memory synchronization, committing, and recall are handled by the official @openviking/dsh-memory-plugin. However, connection addresses, user keys, ~/.openviking/ovcli.conf, and determining “whether a conversation should read/write memory” often still require manually editing files or remembering environment variables. The community plugin dsh-openviking-manager (maintainer: xbzbing, category: Memory) provides a Web UI responsible only for client configuration, local diagnostics, and session-level switches. It does not replace the official memory plugin, nor does it operate the OpenViking server. The following introduces its positioning, capabilities, and installation/usage instructions.

What Is This

dsh-openviking-manager is a UI plugin under the DSH Web profile used to manage client connections, user keys, and local configuration diagnostics for existing OpenViking services, and provides session-level OpenViking memory switches on the conversation side. OpenViking is Volcano Engine’s open-source context database designed for AI Agents; the server must be deployed separately. For official DSH integration instructions, refer to DeepSeek Harness Memory Plugin.

Core Features

Connection and User Key

  • Reads, imports, and atomically updates ~/.openviking/ovcli.conf; existing user_key is displayed only as a mask on the page, not transmitted in plaintext.
  • Checks OpenViking’s /health, /ready, and user identity; validates ovcli.conf JSON and file permissions, and can repair permissions after confirmation.
  • Reads non-sensitive status from ~/.openviking/ov.conf (e.g., authentication mode, whether a root key exists); ovcli.conf always takes precedence.
  • Temporarily uses root_api_key in the form to call the official Admin API: list accounts/users, create accounts or users, regenerate user keys; root_api_key is not written to configuration files.
  • Derives the Studio address from the current endpoint (<endpoint>/studio), which can be manually changed to a reverse proxy address.

Session-Level Memory Switch

There is a button on the left side of the conversation input box (enabled by default). After disabling it for a session, this plugin will block the official plugin’s context injection and memory read/write/commit operations for that session, and reject mcp__openviking__* tool calls. The switch state is only kept in the plugin process memory and reverts to default enabled after restarting DSH. Disabling only affects subsequent agent steps; context already injected in history will remain until compression.

Memory Isolation and Recall Tuning

Write to the official ovcli.conf plugin section (preserving other keys) on the same configuration page. After saving, the official memory plugin will be automatically reloaded via the host mechanism:

Capability Description
Memory isolation plugin.recallPeerScope: Enabled by default to “not allow cross-topic memory sharing” (writes actor when undefined); when disabled, writes back to the official default all. User-level profiles and shared resources are not affected by this switch.
Recall score and count scoreThreshold (this plugin’s product default is 0.5, official default is 0.35), recallLimit (default 10)
Query expansion recallQueryExpansion (this plugin’s default is disabled, official default is auto)
Excluded URIs recallExcludeUris (can exclude subtrees such as skills, resources; since OpenViking v0.5.0, directory URIs exclude the entire subtree)
Timeout timeoutMs (this plugin’s default is 15000 ms), recallContextTimeoutMs
Actor peer id (Advanced) plugin.peerId: Recommended to leave empty in multi-repository scenarios, allowing the official version to derive peers based on workspace git identity; can be filled in for single-repository or intentional topic sharing. “Fill in current repository” derives based on official workspace logic.

If corresponding OPENVIKING_* environment variables have higher priority, page fields will be read-only and display warnings. The UI follows the DSH system language (Simplified Chinese / English).

Installation and Activation

Environment requirements (from repository instructions):

  • Node.js >= 22
  • DSH >= 0.1.6-alpha.2 < 0.3.0-0
  • Accessible OpenViking service
  • Official @openviking/dsh-memory-plugin >= 0.3.2

Install the memory plugin first, then the configuration manager:

# Install the official openviking plugin
dsh plugin --profile web add @openviking/dsh-memory-plugin
# Install the configuration manager
dsh plugin --profile web add dsh-openviking-manager
# Can also install directly from GitHub repository or from file
dsh plugin --profile web add github:xbzbing/dsh-openviking-manager

After installation, you may need to restart the corresponding DSH profile; the openviking-manager configuration page can be accessed from the DSH plugin page.

Typical Usage

  1. On the configuration page, fill in the OpenViking endpoint and user key, and run connection verification; if no user exists yet, use a temporary root_api_key through the “Recovery and Initialization” flow to create a user and rotate the key.
  2. Adjust memory isolation and recall tuning as needed; after saving, wait for the status line to report the reload result. If the official memory plugin is not loaded, manually restart DSH as prompted.
  3. If you don’t want a conversation to read/write OpenViking, disable the session switch on the left side of the input box without changing global settings.

The local vector engine maps the cosine score domain from [-1,1] to [0,1] starting with OpenViking server v0.4.22, and thresholds will not automatically adjust. If you need to align with the filtering strength of the old version after upgrading, you can set scoreThreshold to 0.75; no adjustment is needed when only using remote vector databases or score types unaffected by the mapping. For details, refer to the “Server Compatibility” section in the repository README.

Applicable Scenarios and Precautions

Who it’s for: Teams or individuals already using @openviking/dsh-memory-plugin in DSH Web, who want to maintain ovcli.conf via a graphical interface, perform connectivity diagnostics, disable OpenViking at the single-session level, and fine-tune recall isolation and parameters.

Security and boundaries: The plugin runs with the permissions of the current DSH process. Read the source code and MIT license before installation. Most management routes only accept same-origin requests; this plugin does not start, stop, or modify the OpenViking server. Workspace configurations such as .openviking/config.json need to be managed by users themselves, and this plugin does not read or write them.

The DSH ecosystem adopts “everything is a plugin”; community catalogs such as SkillHub are independent sites with no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-openviking-manager centralizes OpenViking’s client configuration, diagnostics, session switches, and plugin section recall tuning into the DSH Web UI, with clear division of labor with the official memory plugin: the official plugin handles the memory data plane, while this plugin handles “how to connect, how to configure, and whether to use it in this conversation”. For more information, visit the Catalog Page and GitHub Repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye