/openviking-memory:openviking-memoryfrom openviking-memory
Manages OpenViking persistent context database across sessions: retrieving memories, resources, and skills; choosing between search, find, grep, and read tools; handling viking:// URIs and privacy references.
Ships in openviking-memory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
OpenViking stores three kinds of durable context — memories (facts, preferences,
decisions), resources (imported documents, sites, repos), and skills — and
serves them back across sessions. The tools may appear under a harness prefix
such as mcp__openviking__find or openviking_find; they are the same tools.
<openviking-context> block).
Check it before searching: if it already answers the question, use it and
skip the tool call.read before relying on them; an abstract can be
staler or thinner than its source.remember: anything discussed at length will be
extracted anyway.search with mode="context" — first choice for "what do I know about X".
The server assembles a ready-to-use, token-budgeted digest across memories,
resources, and skills; every entry carries its viking:// URI so anything that matters can
be expanded with read.find — fast ranked list of memories, resources, and skills. Use it when you
want raw hits to triage yourself rather than an assembled digest.search in its default list mode — deeper than find: intent analysis,
optionally session-aware. Use it when find comes back thin or off-target.grep / glob — exact text or filename matching over viking:// content.
Reach for these when you know the literal string, identifier, or file name;
semantic search would fuzz it.read / list — expand file URIs (batch supported) / list a directory.viking:// URIs are virtual database paths, not files. Never pass them to
filesystem tools.
remember — only for what the user explicitly asks to keep, or clearly
durable facts, preferences, and decisions needed before automatic extraction
would catch them. Do not mirror routine conversation into it.add_resource — imports files, directories, URLs, or Git repos as durable
knowledge. Processing is asynchronous; report that ingestion started instead
of blocking on completion.add_skill — creates or installs skills; see the openviking-skills skill.write / edit — only for files you author at a known URI. Never use them to
store a file, URL, or skill the user hands you: that skips parsing and
installation.forget — permanently deletes. Confirm with the user and pass the exact URI;
never delete from a fuzzy match.A git repository derives its peer from its origin, so every clone, worktree and subdirectory of one repository shares one memory.
A directory that is neither a repository nor marked gets no peer at all, and what is remembered there goes to the user-level space — which is why a scratch directory sees no project memory of its own.
To give a directory its own memory under Claude Code or Codex, create .openviking/config.json in it:
{"version": 1, "peer": {"id": "my-project"}}
Two directories carrying the same peer.id share one memory. Adding "recall": {"peer_scope": "actor"} to the same file limits recall to this project.
Other harnesses do not read that file: under them, pin a peer with the OPENVIKING_PEER_ID environment variable instead.
Do not invent other keys or commands for this: that file is the whole interface, and no ov subcommand creates, renames or merges a peer.
search_experience / read_experience, described in the
ov-experience-memory skill.<available-skills> list, add_skill,
moving local skills in) are covered by the openviking-skills skill.OpenViking keeps the user's API keys and tokens in Privacy. A saved secret is
named by a reference such as
{{ov_privacy:alice:viking://~/privacy/credential/github#/values/token}}: the
owner, then the field. It stands for a value you are not meant to read.
Use it without reading it — ov privacy run resolves references for one
local command and masks their values in its output. Pass a reference as an
environment variable with --env NAME=REF (repeatable), load NAME=REF
lines with --env-file <path>, or put it inside an argument; the command
comes after --. Single-quote every reference in a shell command, because
{{…}} and # are otherwise open to shell interpretation:
ov privacy run --env GH_TOKEN='{{ov_privacy:alice:viking://~/privacy/credential/github#/values/token}}' -- gh repo list
To use the variable on the command line, wrap the command in sh -c '…':
ov privacy run --env GH_TOKEN='<reference>' -- sh -c 'curl -H "Authorization: Bearer $GH_TOKEN" https://api.github.com/user'
$GH_TOKEN written outside sh -c '…' is expanded by your own shell
before ov runs, and is empty.
Prefer --env: with OPENVIKING_PRIVACY_RUN_STRICT=1 references in arguments are refused.
Do not print values. privacy_resolve, ov privacy resolve,
ov privacy get and ov privacy version print plain values; use them only
when the user asks to see a value. Do not print any part of a secret either
(a prefix, a suffix); to check a secret, print only its length.
ov privacy run masks only complete values in its output.
What exists — privacy_tree lists targets, fields, their references and
descriptions, never values; on the CLI, ov privacy tree --references shows
the references and ov privacy tree -o json also the descriptions. The
description is how to tell similar credentials apart. privacy_tree leaves
the auto category out unless you ask for it with category="auto"; an
auto/… reference was created automatically and works like any other.
Naming and rotating — only when the privacy_upsert tool's own
description says that a reference can be passed as the value: then a whole
reference as a value copies that field's current value, so the secret never
passes through you; prefer it. On the CLI, under the same condition:
ov privacy upsert credential <target> --field <field>='<reference>'. Use it
to save an automatic entry under a proper name in credential, or to
replace a value. The automatic entry is removed once saved, so use the
reference the upsert returns from then on. Give a short description of what
the credential is for: description on privacy_upsert, or --labels-json '{"description":"…"}' on the CLI, which replaces all of the target's labels.
More advanced OpenViking operations are available through the ov CLI —
normal agent work rarely needs it. If it is not installed, see
https://docs.openviking.ai/en/getting-started/05-cli-setup/llms.txt. The full
OpenViking documentation index is at https://docs.openviking.ai/llms.txt.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub volcengine/openviking --plugin openviking-memory5 skills in this plugin
/openviking-rule-searchRetrieve applicable OpenViking Rules and check compliance. Use when planning an action or response subject to task-specific constraints./openviking-skillsFind, use, create, install, share, update, and migrate agent skills stored in OpenViking (viking://~/skills and viking://agent/skills). Use it when a search result, or the session's <available-skills> list where the harness injects one, names a skill that fits the task; when a task looks like one a stored skill would cover; when the user asks to write, save, install, or share a skill from text, a Git repository, or a local folder; when a skill should work in every harness and on every machine; or when the user wants to move local skills (~/.claude/skills, ~/.agents/skills, ~/.cursor/skills) into OpenViking — "upload my skills", "save this as a skill", "迁移本地 skill", "把 skill 存到 OpenViking", "新建一个 skill". Covers the add_skill tool, running a skill's helper files, and which local skills must stay local.
/ov-experience-memoryRetrieve and apply OpenViking Experience memories through the Agent runtime's generic OpenViking search and read tools. Use before or during executable, multi-step, or tool-based work such as coding, file or data changes, configuration, deployment, workflow execution, and failure recovery when prior operational guidance could improve reliability. Do not use for casual chat or simple factual questions./ov-memory-doctorDiagnose and fix the OpenViking context integration on this machine: the install (plugin enablement, hooks, MCP server, skills), the client configuration (ovcli.conf / ov.conf / OPENVIKING_* env) and the connection to the OpenViking server (reachability, 401/403, /mcp). Use whenever OpenViking "isn't working": no <openviking-context> block, empty recall, captures not landing, missing or failing OpenViking MCP tools, 401/403, an offline statusline, right after installing or updating the integration or switching servers/keys, or when the user asks for its status. Triggers: "memory not working", "context not injected", "check OpenViking", "plugin status", "记忆没生效", "上下文没注入", "插件状态", "连不上 OpenViking", "recall 为空", "401".
Other plugins' skills for the same job