Install
openclaw skills install memuPersistent memory infrastructure for 24/7 agents. Replaces flat-file memory with a three-layer architecture (Resource → Memory Item → Memory Category) that reduces token costs by 70-90% and enables proactive context retrieval. Built on NevaMind AI's open-source memU framework (v1.4.0). 92.09% accuracy on LoCoMo benchmark.
openclaw skills install memuYou are integrating memU, an open-source memory framework by NevaMind AI, into an agent that needs to remember, learn, and act proactively across long-running sessions.
Use memU when the agent needs to:
Do NOT use memU for:
memU organizes memory in three layers:
Two retrieval strategies are available:
pip install memu-py
Optional persistent storage:
docker run -d --name memu-postgres \
-e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=memu -p 5432:5432 pgvector/pgvector:pg16
import asyncio
from memu import MemoryService
service = MemoryService(
llm_profiles={
"default": {
"provider": "openai",
"base_url": "https://api.openai.com/v1",
"api_key": "sk-your-key",
"chat_model": "gpt-4o-mini",
"embed_model": "text-embedding-3-small",
}
}
)
# Store
await service.memorize(
resource_payload=[{"role": "user", "content": "I deploy on Tuesdays."}],
modality="conversation",
)
# Retrieve
results = await service.retrieve(
query=[{"role": "user", "content": "When should we deploy?"}],
method="embedding",
)
example_1_minimal.py — In-memory mode, no databaseexample_2_openclaw_integration.py — Replace OpenClaw default memoryexample_3_production.py — Logging, retries, metricsexample_4_scenarios.py — Research assistant, email triage, system monitoringThis is a community Skill packaging the official memU project by NevaMind AI. It does not modify or extend memU's code.