memory-toolsAgent-controlled memory plugin for OpenClaw with confidence scoring, decay, and semantic search. The agent decides WHEN to store/retrieve memories β no auto-...
Install via ClawdBot CLI:
clawdbot install gianni-dalerta/memory-toolsAgent-controlled persistent memory for OpenClaw.
Traditional memory systems auto-capture everything, flooding context with irrelevant information. Memory Tools follows the AgeMem approach: the agent decides when to store and retrieve memories.
memory_store, memory_update, memory_forget, memory_search, memory_summarize, memory_listclawhub install memory-tools
cd skills/memory-tools
npm install
npm run build
openclaw plugins install --link .
openclaw plugins enable memory-tools
Standard (systemd):
openclaw gateway restart
Docker (no systemd):
# Kill existing gateway
pkill -f openclaw-gateway
# Start in background
nohup openclaw gateway --port 18789 --verbose > /tmp/openclaw-gateway.log 2>&1 &
OPENAI_API_KEY environment variable (for embeddings)| Category | Use For | Example |
|----------|---------|---------|
| fact | Static information | "User's dog is named Rex" |
| preference | Likes/dislikes | "User prefers dark mode" |
| event | Temporal things | "Dentist Tuesday 3pm" |
| relationship | People connections | "Sarah is user's wife" |
| instruction | Standing orders | "Always respond in Spanish" |
| decision | Choices made | "We decided to use PostgreSQL" |
| context | Situational info | "User is job hunting" |
| entity | Named things | "Project Apollo is their startup" |
memory_store({
content: "User prefers bullet points",
category: "preference",
confidence: 0.9,
importance: 0.7,
tags: ["formatting", "communication"]
})
memory_search({
query: "formatting preferences",
category: "preference",
limit: 10
})
memory_update({
id: "abc123",
content: "User now prefers numbered lists",
confidence: 1.0
})
memory_forget({
query: "bullet points",
reason: "User corrected preference"
})
memory_summarize({
topic: "user's work projects",
maxMemories: 20
})
memory_list({
category: "instruction",
sortBy: "importance",
limit: 20
})
Inspect what your agent knows:
sqlite3 ~/.openclaw/memory/tools/memory.db "SELECT id, category, content FROM memories"
Export all memories:
openclaw memory-tools export > memories.json
"Database connection not open" error:
pkill -f openclaw-gatewaychown -R $(whoami) ~/.openclaw/memory/toolsPlugin not loading:
ls skills/memory-tools/dist/index.jsopenclaw doctor --non-interactiveMIT β Purple Horizons
AI Usage Analysis
Analysis is being generated⦠refresh in a few seconds.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Search and analyze your own session logs (older/parent conversations) using jq.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection