abc12524/dsh-openviking ↗★ 0

dsh-openviking

DeepSeek Harness plugin that serves OpenViking memory retrieval as the `openviking` Cordis service: `find()` and `profile()` return finished blocks tagged `<openviking>` / `<openviking_index>`, with a Plugins-page settings card for host, port, API key, score threshold, and hit count.

Package
dsh-openviking
Compatibility
Unverified
Version
0.2.0
License
MIT
Last updated
Nov 12, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:abc12524/dsh-openviking

配置

设置页字段(全部 .volatile())

字段默认说明
enabledtrue总开关;关掉后 status().configured 为 false
host(空)OpenViking 主机;192.168.30.181、ov.example.com、https://ov.example.com、10.0.0.5:1933 均可
port1933host 里没写端口时用它
scoreThreshold0.4一条记忆要达到的最低相似度
limit3每次查询最多要多少条
——API key 走凭据域(见下),不写在配置里

host 里写了协议就用它,写了端口就用它;scheme / port 只在 host 没写时补位。

普通配置(profile patch)

键默认说明
schemehttphost 没带协议时用它
apiKeyEnvOPENVIKING_API_KEY凭据引用名(不是密钥本体)
user(空)作为 X-OpenViking-User 发送;也是记忆根目录的属主,空则 profile() 无法定址
accountdefaultX-OpenViking-Account
peerdefaultX-OpenViking-Peer
abstractChars1200每条摘要保留多少字符;0 = 全留
profileLimit40索引最多列多少项
profileChars2000索引块字符预算;0 = 不限
timeoutMs3000单次请求超时;0 = 不限(也会 abort 请求本身)
- id: dsh-openviking
  config:
    user: alice
    abstractChars: 1600
    timeoutMs: 2500

密钥为什么不进配置

apiKeyEnv 只是个引用名,密钥本体由 harness 的凭据域持有(~/.dsh/.credentials.yaml,由设置卡的密码框写入)。公开仓库的 profile patch 里因此永远没有 token。没有密钥不致命:服务端回 401,find reject,注入器跳过这一源。

普通配置(profile patch)

键默认说明
schemehttphost 没带协议时用它
apiKeyEnvOPENVIKING_API_KEY凭据引用名(不是密钥本体)
user(空)作为 X-OpenViking-User 发送;也是记忆根目录的属主,空则 profile() 无法定址
accountdefaultX-OpenViking-Account
peerdefaultX-OpenViking-Peer
abstractChars1200每条摘要保留多少字符;0 = 全留
profileLimit40索引最多列多少项
profileChars2000索引块字符预算;0 = 不限
timeoutMs3000单次请求超时;0 = 不限(也会 abort 请求本身)
- id: dsh-openviking
  config:
    user: alice
    abstractChars: 1600
    timeoutMs: 2500

密钥为什么不进配置

apiKeyEnv 只是个引用名,密钥本体由 harness 的凭据域持有(~/.dsh/.credentials.yaml,由设置卡的密码框写入)。公开仓库的 profile patch 里因此永远没有 token。没有密钥不致命:服务端回 401,find reject,注入器跳过这一源。