clawmemory
Sovereign agent memory engine — self-hosted, privacy-first SQLite store with LLM-based fact extraction (GLM-4.7), hybrid BM25+vector search, contradiction resolution, and OpenClaw plugin for auto-capture/auto-recall. Use when storing structured facts from conversations, querying agent memory semantically, or wiring persistent memory into an OpenClaw agent.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bowen31337/alex-clawmemoryClawMemory Skill
Sovereign agent memory engine — self-hosted, privacy-first. All data stays local (SQLite) with optional Turso cloud sync.
Repo: https://github.com/clawinfra/clawmemory
Server port: localhost:7437
Last verified: 2026-03-28
✅ VERIFIED WORKING PATTERNS (copy-paste ready)
Start the server
cd /tmp/clawmemory && ./clawmemory serve --config config.json
# OR with defaults (SQLite at ./clawmemory.db, port 7437, Ollama at localhost:11434)
./clawmemory serve
Guard rules:
- Ollama must be running for vector search — if not, BM25-only mode activates automatically (no crash)
- Server binds
localhost:7437by default — not exposed externally - First run auto-runs migrations (safe to restart)
Store a fact manually
curl -s -X POST http://localhost:7437/facts \
-H "Content-Type: application/json" \
-d '{"text": "User prefers Python over Go for scripting", "category": "preference", "importance": 0.8}'
Search memory
# Hybrid BM25 + vector (best quality)
curl -s "http://localhost:7437/search?q=python+preference&limit=5" | python3 -m json.tool
# BM25-only (fast, no Ollama needed)
curl -s "http://localhost:7437/search?q=python+preference&limit=5&mode=bm25" | python3 -m json.tool
Extract facts from a conversation turn (auto-capture)
curl -s -X POST http://localhost:7437/extract \
-H "Content-Type: application/json" \
-d '{
"turns": [
{"role": "user", "content": "I always deploy to Hetzner, never AWS."},
{"role": "assistant", "content": "Got it, using Hetzner for deployments."}
]
}' | python3 -m json.tool
Get user profile
curl -s http://localhost:7437/profile | python3 -m json.tool
Forget a fact
curl -s -X DELETE http://localhost:7437/facts/<fact-id>
OpenClaw Plugin (TypeScript) — Auto-wire
The plugin at plugin/ auto-injects memory pre-turn and auto-captures post-turn.
cd /tmp/clawmemory/plugin && npm install && npm run build
# Copy plugin/dist/ to OpenClaw plugins dir and enable in config
Plugin config in openclaw.config.json:
{
"plugins": [
{
"id": "clawmemory",
"path": "./plugins/clawmemory/dist/index.js",
"config": {
"serverUrl": "http://localhost:7437",
"maxContextFacts": 10,
"minImportance": 0.3
}
}
]
}
What it does automatically:
- Pre-turn: searches memory for relevant facts → injects as
[Memory context]block into system prompt - Post-turn: sends conversation turn to
/extract→ stores new facts
Config Reference (config.json)
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bowen31337-alex-clawmemory": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
Terse
Skill by bowen31337
Identity Resolver
Skill by bowen31337
agent-self-governance
Self-governance protocol for autonomous agents: WAL (Write-Ahead Log), VBR (Verify Before Reporting), ADL (Anti-Divergence Limit), VFM (Value-For-Money), and IKL (Infrastructure Knowledge Logging). Use when: (1) receiving a user correction — log it before responding, (2) making an important decision or analysis — log it before continuing, (3) pre-compaction memory flush — flush the working buffer to WAL, (4) session start — replay unapplied WAL entries to restore lost context, (5) any time you want to ensure something survives compaction, (6) before claiming a task is done — verify it, (7) periodic self-check — am I drifting from my persona? (8) cost tracking — was that expensive operation worth it? (9) discovering infrastructure — log hardware/service specs immediately.
rsi-loop
Recursive Self-Improvement (RSI) loop for EvoClaw agents. Provides a structured observe→analyze→synthesize→deploy pipeline that enables agents to detect their own failure patterns and generate concrete improvement proposals (new skills, routing fixes, SOUL.md updates, memory improvements). Use when: (1) logging a task outcome (success/fail/quality), (2) running periodic self-improvement analysis, (3) reviewing or deploying improvement proposals, (4) integrating RSI into EvoClaw hub/edge agents via MQTT, (5) checking agent health score, (6) any mention of "self-improvement", "recursive improvement", "fix my own mistakes", "improvement loop", or "agent evolution". Core EvoClaw primitive.
clawchain
ClawChain RPC client for EvoClaw agents. Connects to Substrate-based blockchain, queries on-chain agent data, submits transactions, and enables agents to participate in on-chain governance and reputation tracking. Use when working with ClawChain L1 blockchain, agent DIDs, token economics, or agent reputation systems.