Memory for
AI agents
AI agents forget everything between sessions. Engram fixes that. Local-first persistent memory with semantic search and knowledge graphs.
Why Engram over mem0?
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 |
How it works
Four stages from conversation to connected knowledge
Capture
Hooks record your conversations automatically
Extract
LLM identifies key facts from raw text
Store
Facts are embedded and indexed for semantic search
Link
Knowledge graph connects related memories
Built for privacy and power
Everything runs locally. Your memories never leave your machine.
Local-first
Your memories stay on your machine. No cloud dependency, no data leaving your network.
Semantic search
Find memories by meaning, not keywords. Ask "what did we discuss about auth?" and get relevant context.
Semantic connections
Vector similarity finds related memories automatically. Build understanding that compounds over time.
Auto-capture
Hooks automatically record conversations. No manual saving, memories just accumulate.
Claude Code native
Built-in MCP integration. Claude just knows what you worked on before.
Squad isolation
Each squad gets isolated memory with optional cross-squad sharing. Built for teams.
Observability
Langfuse integration for monitoring memory operations, tracking costs, and analyzing behavior.
MemoryML
Declarative memory modeling language. Define schemas in YAML, validate before storage.
Simple architecture
Docker-based stack with PostgreSQL + pgvector for semantic search, and a REST API that integrates directly with Claude Code via MCP.
MemoryML
A declarative memory modeling language. Define how your agent remembers in YAML, validate before storage, and export portable JSON-LD.
Get started in minutes
Requires Docker, Docker Compose, and Ollama
git clone https://github.com/agents-squads/engram
Clone the repo
cd engram && ./scripts/start.sh
Start services
./scripts/generate-token.sh
Generate auth token
claude mcp add engram
Add to Claude Code
Give your agents memory
Open source. Self-hosted. Your data stays yours.