You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

clawvault

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clawvault

Structured memory for AI agents. Typed markdown primitives, hybrid search, auto-capture, and Obsidian-native views. OpenClaw plugin + standalone CLI.

Source
npmnpm
Version
3.1.0
Version published
Weekly downloads
518
-38.48%
Maintainers
1
Weekly downloads
 
Created
Source

ClawVault

Structured memory for AI agents. Typed markdown primitives that compound over time.

npm

Every memory is a markdown file with YAML frontmatter — a task, a decision, a person, a lesson — each following a schema defined in templates/. The agent reads and writes these files. The human browses them in Obsidian. No database. No vendor lock-in. Just files.

Requirements

  • Node.js 18+
  • qmd installed and on PATH (hybrid BM25 + vector search)

Install

openclaw plugins install clawvault

This installs ClawVault as a memory plugin. It replaces OpenClaw's built-in memory with:

  • Auto-recall — injects relevant memories before each agent turn
  • Auto-capture — observes conversations and stores durable knowledge automatically
  • Session recap — on wake, provides context from active tasks, recent decisions, and preferences
  • 4 toolsmemory_search, memory_store, memory_get, memory_forget

After install, configure the vault path:

openclaw config set plugins.clawvault.config.vaultPath ~/my-vault

As a Standalone CLI

npm install -g clawvault

Quick Start

# Initialize a new vault
clawvault init ~/my-vault --name my-brain

# Set up Obsidian Bases views (tasks, projects, backlog)
clawvault setup

# Check vault health
clawvault doctor

# Search your vault
clawvault search "deployment decision"

How It Works

Typed Primitives

Every piece of memory has a type defined by a template:

---
primitive: task
fields:
  status:
    type: string
    required: true
    default: open
    enum: [open, in-progress, blocked, done]
  priority:
    type: string
    enum: [critical, high, medium, low]
  owner:
    type: string
  due:
    type: date
---

Default templates: task, decision, lesson, person, project, checkpoint, handoff, daily, trigger, run, party, workspace.

Malleable Schemas

Don't like the defaults? Drop your own template in your vault's templates/ directory. Add fields, remove fields, create entirely new types. The plugin reads YOUR schemas, not ours.

ClawVault uses qmd for search — BM25 keyword matching combined with vector similarity and reranking. Entirely local. No API keys needed.

Obsidian Integration

Your vault IS an Obsidian vault. Tasks become Kanban boards. Decisions are searchable. Wiki-links build a knowledge graph. Five generated Bases views out of the box:

  • All tasks
  • Blocked items
  • By project
  • By owner
  • Backlog

CLI Commands

Core

CommandDescription
init [path]Initialize a new vault
setupAuto-discover and configure a vault, create Obsidian views
storeStore a new typed memory document
capture <note>Quick-capture a note to inbox
doctorDiagnose vault health

Search & Context

CommandDescription
search <query>BM25 keyword search via qmd
vsearch <query>Semantic vector search via qmd
context <task>Generate task-relevant context
inject <message>Inject relevant rules and decisions

Session Lifecycle

CommandDescription
wakeStart a session (recover + recap)
sleep <summary>End a session with a handoff
checkpointSave state for context-death resilience
recoverCheck for and recover from context death

Observation Pipeline

CommandDescription
observeProcess sessions into observational memory
reflectPromote observations to weekly reflections
reweaveBackward consolidation — mark superseded observations

Tasks & Projects

CommandDescription
taskTask management (create, list, update, transition)
projectProject management
kanbanKanban board view
statusVault health and statistics

Utilities

CommandDescription
templateManage document templates
graphShow typed memory graph summary
entitiesList all linkable entities
link [file]Auto-link entity mentions
compatCheck OpenClaw compatibility
embedRun qmd embedding for pending documents

Architecture

     HUMAN (Obsidian)
     Browse, edit, approve
           │
           ▼
  ┌─── VAULT (markdown) ───┐
  │  Typed primitives       │
  │  Knowledge graph        │
  │  Template schemas       │
  └───┬──────────────┬──────┘
      │              │
 AGENT (Plugin)   CLI (Developer)
 Auto-capture     Direct CRUD
 Auto-recall      Search, graph
 Session recap    Tasks, projects

OpenClaw Plugin Details

The plugin hooks into the OpenClaw lifecycle:

  • before_agent_start — auto-recall: searches vault for context relevant to the current conversation and injects it
  • message_received — auto-capture: observes incoming messages for durable information worth storing
  • agent_end — captures any final observations from the agent's response
  • before_compaction — preserves important context before conversation compaction

Configuration in openclaw.plugin.json:

OptionDefaultDescription
vaultPathPath to vault directory
collectionclawvaultqmd search collection name
autoRecalltrueInject memories before each turn
autoCapturetrueAuto-store from conversations
recallLimit5Max memories per recall

What Compounds

  • Decisions accumulate into institutional knowledge
  • Lessons prevent repeated mistakes
  • Tasks with transition ledgers track how work happened
  • Projects group related work across hundreds of sessions
  • Wiki-links build a knowledge graph that grows richer over time

The agent that runs for a year generates compounding value. Every lesson stored makes the next task cheaper.

License

MIT

Keywords

ai-agent

FAQs

Package last updated on 19 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts