Mengram adds persistent memory to OpenClaw agents

Mengram is an open-source memory system that provides OpenClaw agents with persistent memory across sessions. The tool addresses the problem where OpenClaw agents forget everything when they restart, losing memory of what worked, what failed, and what procedures they learned.
Memory types
- Episodic memory — stores what happened (conversations, actions, outcomes)
- Entity memory — tracks people, tools, projects and facts about them
- Procedural memory — automatically extracts "how to do X" procedures from repeated patterns. If your agent does a heartbeat check 3 times, Mengram creates a reusable procedure for it
- Smart archival — old/outdated facts get automatically superseded when new info contradicts them
Integration with OpenClaw
Here's how to use Mengram with OpenClaw agents:
from mengram import Mengram
m = Mengram(api_key="om-...")
Agent saves what it learned
m.add("Completed heartbeat check. Job queue has 18 pending jobs. No urgent alerts.")
Later, agent searches its memory
results = m.search("what's the heartbeat status?")
Procedures are auto-created from repeated patterns
procedures = m.get_procedures()
→ "Run HEARTBEAT.md strict-check", "Daily brief at 10:00 AM", etc.
The agent builds up procedural knowledge over time — it doesn't just remember facts, it learns how to do things and when to do them.
Technical stack
Mengram uses Python SDK, REST API, PostgreSQL + pgvector for embeddings, and works with any LLM.
The project is available on GitHub at github.com/alibaizhanov/mengram.
📖 Read the full source: r/openclaw
👀 See Also

Kanwas: Open-source shared context board for teams and AI agents
Kanwas is an open-source multiplayer workspace where teams and AI agents share documents, evidence, and decisions on a canvas with live streaming tool calls. Self-hosted via Docker, it's git-backed with Yjs and BlockNote.

Atlas Inference Engine Goes Open Source: Pure Rust + CUDA, 100+ tok/s on DGX Spark
Atlas is now open source — a Rust + CUDA inference engine that achieves 130 tok/s peak on Qwen3.5-35B (NVFP4) on a single DGX Spark, with no Python runtime and <2 minute cold start.

LAP: 1,500+ API Specs Compiled for LLM Consumption to Reduce Claude Hallucinations
LAP is a tool that compiles 1,500+ real API specifications into a lean format optimized for LLMs, providing verified endpoints and parameters to prevent AI coding agents like Claude from hallucinating incorrect API calls.

Spectral: Capture App Traffic to Generate MCP Servers for OpenClaw Agents
Spectral is an open-source tool that captures traffic from any application, analyzes it with an LLM, and generates a working MCP server, allowing OpenClaw agents to call the app's real API directly instead of relying on browser automation.