A robust long-term memory management system for OpenClaw agents utilizing structured PostgreSQL and vector-based semantic search.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install openclow-memory
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install openclow-memory using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Memory System Skill is a sophisticated long-term memory layer designed to give Openclaw Skills the ability to retain and retrieve context over extended periods. It bridges the gap between short-term session memory and permanent knowledge by utilizing a dual-storage approach: structured relational data in PostgreSQL for discrete facts and vector embeddings for semantic retrieval.
By implementing this skill, developers can ensure their AI coding agents remember specific project goals, architectural decisions, and user preferences across different sessions. It provides a reliable infrastructure for building persistent AI personalities and maintaining complex project states without losing context due to token window limitations.
To set up the Memory System Skill within your Openclaw Skills environment, follow these steps:
# Ensure PostgreSQL is running on local ports
# Structured memory: Postgres.app (Port 5432)
# Vector memory: Homebrew PG (Port 5433)
# Connect to the databases to initialize tables
psql -h localhost -p 5432 -U username -d postgres
psql -h localhost -p 5433 -U username -d postgres
# Use the management script to add new memories
python scripts/memory_manager.py --add "goals" "Project Alpha" "Complete the API integration"
# Perform a semantic search
python scripts/memory_search.py "What were my previous coding preferences?"
The skill organizes its information using a hybrid schema optimized for both precision and discovery:
| Table | Type | Purpose |
|---|---|---|
memory_structured |
Relational | Stores discrete categories: goals, decisions, status, preferences, and reference. |
longterm_memory |
Vector | Stores content with 1024-dimension embeddings for semantic matching. |
Categories in Structured Memory:
Loading
An automated design system generator that creates production-ready UI specs and starter code from local datasets.

A protocol for AI agents to enforce explicit state tracking, evidence-based completion, and the elimination of mid-task stalls.

A sophisticated governance framework designed to manage the lifecycle, auditing, and routing of multiple AI agent capabilities.

A protocol-driven skill that enforces completion standards and evidence-based verification for AI agent tasks.

A centralized management utility to audit, categorize, and deduplicate your Openclaw Skills ecosystem.

A high-performance PostgreSQL extension for storing embeddings and performing vector similarity searches in AI applications.








































