Agent memory system with memory graph, context profiles, checkpoint/recover, structured storage, semantic search, observational memory, task tracking, canvas...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install clawvault或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install clawvault⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/clawvault/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: clawvault version: "2.5.11" description: Agent memory system with memory graph, context profiles, checkpoint/recover, structured storage, semantic search, and observational memory. Use when: storing/searching memories, preventing context death, graph-aware context retrieval, repairing broken sessions. Don't use when: general file I/O. author: Versatly repository: https://github.com/Versatly/clawvault homepage: https://clawvault.dev user-invocable: true always: false openclaw: {"emoji":"🐘","requires":{"bins":["clawvault","qmd"]}} requires: {"bins":["clawvault","qmd"],"env_optional":["CLAWVAULT_PATH","OPENCLAW_HOME","OPENCLAW_STATE_DIR","GEMINI_API_KEY"]} install: [{"id":"node","kind":"node","package":"clawvault","bins":["clawvault"],"label":"Install ClawVault CLI (npm)"},{"id":"qmd","kind":"node","package":"github:tobi/qmd","bins":["qmd"],"label":"Install qmd backend (required for query/context workflows)"}] metadata: {"openclaw":{"emoji":"🐘","requires":{"bins":["clawvault","qmd"]},"install":[{"id":"node","kind":"node","package":"clawvault","bins":["clawvault"],"label":"Install ClawVault CLI (npm)"},{"id":"qmd","kind":"node","package":"github:tobi/qmd","bins":["qmd"],"label":"Install qmd backend (required for query/context workflows)"}],"env_optional":["CLAWVAULT_PATH","OPENCLAW_HOME","OPENCLAW_STATE_DIR","GEMINI_API_KEY"],"homepage":"https://clawvault.dev"}} ---
An elephant never forgets. Structured memory for OpenClaw agents.
> Built for OpenClaw. Canonical install: npm CLI + hook install + hook enable.
What this skill does:
CLAWVAULT_PATH or auto-discovered)repair-session reads and modifies OpenClaw session transcripts (~/.openclaw/agents/) — creates backups before writinghooks/clawvault/handler.js) with lifecycle events (gateway:startup, gateway:heartbeat, command:new, session:start, compaction:memoryFlush, cron.weekly). Hook is opt-in and must be installed/enabled.observe --compress makes LLM API calls (Gemini Flash by default) to compress session transcripts into observationsEnvironment variables used:
CLAWVAULT_PATH — vault location (optional, auto-discovered if not set)OPENCLAW_HOME / OPENCLAW_STATE_DIR — used by repair-session to find session transcriptsGEMINI_API_KEY — used by observe for LLM compression (optional, only if using observe features)No cloud sync — all data stays local. No network calls except LLM API for observe compression.
This is a full CLI tool, not instruction-only. It writes files, registers hooks, and runs code.
Auditability: the published ClawHub skill bundle includes SKILL.md, HOOK.md, and hooks/clawvault/handler.js so users can inspect hook behavior before enabling it.
npm install -g clawvault
openclaw hooks install clawvault
openclaw hooks enable clawvault
# Verify and reload
openclaw hooks list --verbose
openclaw hooks info clawvault
openclaw hooks check
# restart gateway process
clawhub install clawvault can install skill guidance, but does not replace explicit hook pack installation.
# 1) Review package metadata before install
npm view clawvault version dist.integrity dist.tarball repository.url
# 2) Install CLI + qmd dependency
npm install -g clawvault@latest
npm install -g github:tobi/qmd
# 3) Install hook pack, but DO NOT enable yet
openclaw hooks install clawvault
# 4) Review hook source locally before enabling
node -e "const fs=require('fs');const p='hooks/clawvault/handler.js';console.log(fs.existsSync(p)?p:'hook file not found in current directory')"
openclaw hooks info clawvault
# 5) Enable only after review
openclaw hooks enable clawvault
openclaw hooks check
# Initialize vault (creates folder structure + templates)
clawvault init ~/my-vault
# Or set env var to use existing vault
export CLAWVAULT_PATH=/path/to/memory
# Optional: shell integration (aliases + CLAWVAULT_PATH)
clawvault shell-init >> ~/.bashrc
# Start your session (recover + recap + summary)
clawvault wake
# Capture and checkpoint during work
clawvault capture "TODO: Review PR tomorrow"
clawvault checkpoint --working-on "PR review" --focus "type guards"
# End your session with a handoff
clawvault sleep "PR review + type guards" --next "respond to CI" --blocked "waiting for CI"
# Health check when something feels off
clawvault doctor
# Verify runtime compatibility with current OpenClaw setup
clawvault compat
# Verify qmd is available
qmd --version
# Verify OpenClaw CLI is installed in this shell
openclaw --version
ClawVault currently depends on qmd for core vault/query flows.
ClawVault builds a typed knowledge graph from wiki-links, tags, and frontmatter:
# View graph summary
clawvault graph
# Refresh graph index
clawvault graph --refresh
Graph is stored at .clawvault/graph-index.json — schema versioned, incremental rebuild.
# Default context (semantic + graph neighbors)
clawvault context "database decision"
# With a profile preset
clawvault context --profile planning "Q1 roadmap"
clawvault context --profile incident "production outage"
clawvault context --profile handoff "session end"
# Auto profile (used by OpenClaw hook)
clawvault context --profile auto "current task"
| Profile | Purpose | |---------|---------| | default | Balanced retrieval | | planning | Broader strategic context | | incident | Recent events, blockers, urgent items | | handoff | Session transition context | | auto | Hook-selected profile based on session intent |
# Check hook wiring, event routing, handler safety
clawvault compat
# Strict mode for CI
clawvault compat --strict
clawvault wake
clawvault sleep "what I was working on" --next "ship v1" --blocked "waiting for API key"
# Types: fact, feeling, decision, lesson, commitment, preference, relationship, project
clawvault remember decision "Use Postgres over SQLite" --content "Need concurrent writes for multi-agent setup"
clawvault remember lesson "Context death is survivable" --content "Checkpoint before heavy work"
clawvault remember relationship "Justin Dukes" --content "Client contact at Hale Pet Door"
clawvault capture "TODO: Review PR tomorrow"
# Keyword search (fast)
clawvault search "client contacts"
# Semantic search (slower, more accurate)
clawvault vsearch "what did we decide about the database"
clawvault wake
clawvault sleep "what I was working on" --next "finish docs" --blocked "waiting for review"
clawvault checkpoint --working-on "PR review" --focus "type guards" --blocked "waiting for CI"
clawvault recover --clear
# Shows: death time, last checkpoint, recent handoff
clawvault handoff \
--working-on "ClawVault improvements" \
--blocked "npm token" \
--next "publish to npm, create skill" \
--feeling "productive"
clawvault recap
# Shows: recent handoffs, active projects, pending commitments, lessons
Wiki-link entity mentions in markdown files:
# Link all files
clawvault link --all
...安装 ClawVault 后,可以对 AI 说这些话来触发它
Help me get started with ClawVault
Explains what ClawVault does, walks through the setup, and runs a quick demo based on your current project
Use ClawVault to agent memory system with memory graph, context profiles, checkpoint...
Invokes ClawVault with the right parameters and returns the result directly in the conversation
What can I do with ClawVault in my documents & notes workflow?
Lists the top use cases for ClawVault, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/clawvault/ 目录(个人级,所有项目可用),或 .claude/skills/clawvault/(项目级)。重启 AI 客户端后,用 /clawvault 主动调用,或让 AI 根据上下文自动发现并使用。
ClawVault 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
ClawVault 可免费安装使用。请查阅仓库了解许可证信息。
Agent memory system with memory graph, context profiles, checkpoint/recover, structured storage, semantic search, observational memory, task tracking, canvas...
ClawVault 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using ClawVault
Identifies repetitive steps in your workflow and sets up ClawVault to handle them automatically