OpenClaw Agent Memory Plugin: Persistent Context Across Sessions

A developer has created a memory plugin for OpenClaw that gives agents persistent memory across sessions, addressing the frustration of agents forgetting everything between interactions and requiring the same explanations repeatedly.
How it works
The plugin implements a memory layer that hooks into OpenClaw's plugin system. Before every turn, the agent automatically receives relevant context from past conversations. After every turn, new facts and events are extracted and stored.
The system searches three memory types before each turn:
- Facts — Example: "Uses PostgreSQL on Supabase, deploys via Railway."
- Events — Example: "Had OOM issue on Mar 15, fixed with Redis cache."
- Workflows — Example: "Deploy: build → test → push to main → Railway auto-deploys."
Configuration
Setup requires adding a plugin entry to openclaw.json:
{
"plugins": {
"entries": {
"openclaw-mengram": {
"enabled": true,
"config": {
"apiKey": "om-..."
}
}
},
"slots": {
"memory": "openclaw-mengram"
}
}
}The plugin includes an auto-recall hook that searches memory before each agent turn. When workflows fail, the agent logs feedback and the procedure automatically evolves to a better version for next time.
The tool is open source under Apache 2.0 license and available at github.com/alibaizhanov/mengram.
📖 Read the full source: r/openclaw
👀 See Also

Mandala v0.3: Open-Source Async Runtime to Unify Logistics Telemetry as OpenTelemetry Spans for Agent Reasoning
Mandala v0.3 provides an open-source async runtime that ingests telemetry from Samsara, Descartes, Vizion, and FMCSA via webhooks, emits events as OpenTelemetry spans, and exposes data via MCP tools for LLM agents.

OpenMontage: Open-Source Agentic Video Production System for AI Coding Assistants
OpenMontage is an open-source video production system that transforms AI coding assistants like Claude Code into full production studios. It handles research, scene planning, script writing, voice narration, music selection, subtitle generation, and validation through automated pipelines.

Repowise: Pre-computed codebase context for Claude Code cuts token usage and task time in half
Repowise indexes your codebase into four layers (dependency graph, git signals, doc wiki, ADRs) and exposes eight MCP tools to Claude Code, reducing a 30-file archaeology session to 5 MCP calls and 2 minutes.

Be My Butler: Multi-Agent Pipeline for AI Code Verification
Be My Butler is an open-source multi-agent pipeline where different AI models review each other's code through blind verification. The system addresses the problem of AI agents incorrectly reporting their own code as functional.