AI agents forget everything between sessions. Engram fixes that. Local-first persistent memory with semantic search and knowledge graphs.
You
"Remember that I prefer TypeScript over JavaScript"
Next session
"I know you prefer TypeScript. Should I use it for this project?"
No more re-explaining. Engram remembers what matters.
Built on mem0, extended for agentic workflows
| Feature | mem0 | Engram |
|---|---|---|
| API | REST only | REST + MCP |
| Semantic Links | Basic | pgvector |
| Hosting | Cloud or self-host | Local-first |
| Capture | Manual | Auto-hooks |
| Multi-agent | Single user | Squad isolation |
| Observability | Limited | Langfuse |
mem0 is a great memory API. Engram wraps it with everything needed for AI agents that actually remember.
Four stages from conversation to connected knowledge
Hooks record your conversations automatically
LLM identifies key facts from raw text
Facts are embedded and indexed for semantic search
Vector similarity finds related memories
Everything runs locally. Your memories never leave your machine.
Your memories stay on your machine. No cloud dependency, no data leaving your network.
Find memories by meaning, not keywords. Ask "what did we discuss about auth?" and get relevant context.
Vector similarity finds related memories automatically. Build understanding that compounds over time.
Hooks automatically record conversations. No manual saving, memories just accumulate.
Built-in MCP integration. Claude just knows what you worked on before.
Each squad gets isolated memory with optional cross-squad sharing. Built for teams, not single users.
Langfuse integration for monitoring memory operations, tracking costs, and analyzing agent behavior.
Declarative memory modeling language. Define schemas in YAML, validate before storage, export as JSON-LD.
Docker-based stack with PostgreSQL + pgvector for semantic search, and a REST API that integrates directly with Claude Code via MCP.
A declarative memory modeling language. Define how your agent remembers in YAML, validate before storage, and export portable JSON-LD.
Requires Docker, Docker Compose, and Ollama
git clone https://github.com/agents-squads/engram cd engram && ./scripts/start.sh ./scripts/generate-token.sh claude mcp add engram Open source. Self-hosted. Your data stays yours.