Back to Blog
3 min readBy Versatly

ClawVault Semantic Memory for AI Agents: Introduction

ClawVault gives AI agents persistent semantic memory, faster context recovery, and searchable decisions across sessions so teams build better assistants.

Updated

ClawVault solves the biggest AI agent memory gap: most assistants still forget everything between sessions.

Every time you start a new conversation with an AI, you're starting from scratch. All the context, preferences, decisions, and lessons learned—gone. It's like having a brilliant colleague with severe amnesia.

The Problem with Ephemeral AI

Today's AI agents live in the moment. They can process vast amounts of information during a session, but when that session ends, so does their memory. This creates real problems:

  • Repeated explanations: You tell your agent about your project structure every. single. time.
  • Lost context: Important decisions from last week? The agent has no idea.
  • No learning curve: Your agent can't learn your preferences or improve over time.
  • Context death: Mid-conversation resets destroy hours of accumulated understanding.

Enter ClawVault

ClawVault is an open-source semantic memory vault designed specifically for AI agents. It provides:

1. Persistent Storage

Memories survive context resets, session ends, and even system restarts. Your agent can remember what happened yesterday, last week, or last month.

2. Semantic Search

Not just keyword matching—ClawVault uses embeddings to find memories by meaning. Ask "what was that decision about the database?" and get relevant results even if you never used those exact words.

3. Structured Categories

Organize memories into meaningful categories: decisions, preferences, people, projects, lessons learned. Finding the right memory is fast because everything has a place.

4. Context Recovery

Built-in checkpointing lets your agent save state before risky operations. If something goes wrong, roll back. If context dies, recover gracefully.

How It Works

ClawVault is CLI-first, designed to be called directly from agent workflows:

# Store a memory
clawvault store --category decisions --title "API Choice" \
  --content "Chose REST over GraphQL for simplicity"

# Search by meaning
clawvault vsearch "what database did we pick?"

# Checkpoint before risky work
clawvault checkpoint --working-on "refactoring auth"

# Wake up with full context
clawvault wake

Under the hood, ClawVault:

  • Stores memories as markdown files (human-readable, git-friendly)
  • Generates embeddings for semantic search
  • Maintains a SQLite index for fast retrieval
  • Supports wiki-style linking between memories

Built for Agent Workflows

ClawVault isn't just another note-taking app. It's specifically designed for the unique needs of AI agents:

  • Token-efficient retrieval: Get relevant context without loading everything
  • Structured output: Results formatted for easy agent consumption
  • Automatic categorization: Memories go where they belong
  • Cross-session continuity: Seamless handoffs between conversations

Open Source

ClawVault is fully open source under the MIT license. Install it with npm:

npm install -g clawvault
clawvault init

What's New Since Launch

Since the initial release, ClawVault has gained:

  • Observational memory (v1.9+) — Auto-compresses session transcripts into emoji-prioritized observations (🔴/🟡/🟢) routed to vault categories
  • qmd integration (v1.4+) — BM25 + vector embeddings + neural reranker for best-quality semantic search
  • OpenClaw hook system (v1.4.2+) — Auto-checkpoint on /new, context death detection on startup
  • Session repair (v1.5+) — Fix broken Anthropic API transcripts with clawvault repair-session
  • Intelligence layer (v1.11+) — Priority enforcement, temporal decay, executive summary on wake
  • Cloud sync removed (v1.11) — Fully local-first by design. Zero network calls except optional LLM compression.

The goal is simple: AI agents that actually remember.

No more explaining your project from scratch. No more losing important context. No more starting over every session.

Your agent deserves a memory. ClawVault gives it one.


ClawVault is developed by Versatly. Star us on GitHub!

Continue reading