Install
openclaw skills install memvaultProduction-ready long-term memory server for AI agents with Ebbinghaus decay and strength-weighted retrieval. Use when you need persistent memory across agen...
openclaw skills install memvault# Install (one command — Docker handles everything)
bash scripts/install.sh
# Verify
memvault health
# Store a memory
memvault memorize-text <user_id> "<message>" "[reply]"
# Retrieve memories (strength-weighted)
memvault retrieve <user_id> "<query>"
# Run daily decay (memories fade like human memory)
memvault decay <user_id>
# Check stats
memvault stats <user_id>
| Method | Endpoint | Description |
|---|---|---|
| POST | /memorize | Store conversation → extract facts/events/knowledge |
| POST | /retrieve | Strength-weighted vector search (similarity × strength) |
| POST | /decay | Ebbinghaus forgetting curve (run daily via cron) |
| GET | /stats | Memory distribution, access patterns, agent breakdown |
| GET | /health | Service health |
strength = exp(-rate × days / (1 + damping × ln(1 + access_count)))access_count, slowing decayFading memories (strength < 0.1) are excluded from search.
All via environment variables in .env (created by install script):
MEMVAULT_LLM_BASE_URL — Default: Ollama local. Set to OpenAI/Groq/etc URL if preferredMEMVAULT_LLM_MODEL — Default: qwen2.5:3bMEMVAULT_TRANSLATION — Set true + MEMVAULT_TRANSLATION_LANG for auto-translationMEMVAULT_PORT — Default: 8002Add Ebbinghaus decay to your agent's cron:
0 3 * * * curl -s -X POST 'http://127.0.0.1:8002/decay?user_id=YOUR_USER_ID'
## MemVault 🧠
memvault memorize-text "<user_id>" "<content>" "<context>"
memvault retrieve "<user_id>" "<query>"
memvault decay <user_id>
memvault stats <user_id>
- API: 127.0.0.1:8002
Tag memories by source agent:
curl -X POST http://localhost:8002/memorize -H "Content-Type: application/json" \
-d '{"conversation": [
{"role": "metadata", "content": "{\"source_agent\": \"research-bot\"}"},
{"role": "user", "content": "Found new papers on transformers"}
], "user_id": "team"}'
docker compose -f ~/.openclaw/workspace/skills/memvault/docker-compose.yml up -dmemvault stats — if total=0, nothing stored yetcurl -X POST 'http://localhost:8002/decay?decay_rate=0.05'