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

Local Semantic Memory Search for OpenClaw Agents Using Harrier Embeddings
Run a local embedding server with Microsoft's Harrier model, expose an Ollama-compatible API, and wire OpenClaw's memorySearch config for local semantic memory retrieval without external services.

Hearth: Self-Hosted Multi-User AI Chat App for Households on OpenClaw
Hearth is a self-hosted household AI chat app built on OpenClaw that provides separate accounts and conversations for each family member, with features including PIN/biometric login, private chats, reminders, and model presets.

Clarc v1.0: Workflow OS for Claude Code with 63 Agents and 249 Skills
Clarc is a plugin layer for Claude Code that provides 63 specialized subagents, 249 domain skills, and 178 slash commands for development workflows. Installation is via npx with support for multiple editors including Cursor and OpenCode.

MCP Gateway for Secure Remote Access to Internal Tools
An open-source MCP gateway aggregates multiple MCP tool servers into a single connection, enabling secure access via Claude Desktop without exposing public endpoints. It uses OpenZiti/zrok for zero-trust networking and requires only one configuration entry with a share token.