Universal AI Brain
for every model.
Give any AI persistent memory that survives sessions, systems, and restarts. Connect once — every tool you use shares a single, growing brain.
$ curl -fsSL https://engram.am/install.sh | bashQuick start
Up and running in minutes
Four steps from zero to a fully working AI memory backend with a live REST API, 3D dashboard, and Claude Code integration.
Clone & install
Requires Node.js 22+ and pnpm 9+.
Build all packages
Compiles core, MCP server, adapters, and the dashboard in one command.
Start the API server
Engram listens on port 4901. Set ENGRAM_DB_PATH to choose where memories are stored.
Connect to Claude Code
Add Engram as an MCP server — you get store_memory, recall_context and other native tools:
Verify the setup
Make your first API call to confirm Engram is working:
Swagger UI at localhost:4901/docs3D dashboard — http://localhost:4901 (served from API)Seed 67 demo memories — cd packages/core && npx tsx scripts/demo.tsHow it works
Every query,
enriched with memory.
A seven-step pipeline runs transparently on every recall — embed, search, expand, score, rank, truncate, inject.
Memory model
Mirrors the human brain.
Three long-term memory types work together — just like episodic, semantic, and procedural memory in neuroscience. Old episodes consolidate into facts. Unused memories decay. Important ones strengthen.
Episodic
Timestamped events and conversations. Auto-consolidated into semantic facts when clusters form. Decay naturally over time.
Semantic
Facts and knowledge, organized as a graph. Each concept links to related ones via typed edges (is_a, causes, contradicts).
Procedural
Trigger → action patterns. When a situation matches, the skill fires. High-confidence procedures are protected from decay.
Integrations
Works with any AI tool.
One memory store. Every model. Connect via MCP, proxy, REST, CLI, or WebSocket — no vendor lock-in.
store, recall, search, forget, decay, contradictions, tags, webhooks, plugins — all as native Claude Code tools. Zero API calls.
Point your client at :11435 instead of :11434. Memory context is injected automatically — zero code changes needed.
EngramClient class or withMemory() wrapper. Drop-in persistent memory for any OpenClaw agent.
engram store, search, recall, stats, export, import. Pipeable output for scripting. No server required.
42+ endpoints, 8 WebSocket events. POST /api/recall to retrieve, POST /api/memory to store. Works from any language.
Install from Claude Desktop or Smithery — one click, zero config. The .mcpb bundle auto-installs the MCP server on first launch.
Performance
Fast enough to disappear.
Memory retrieval is so fast you'll never notice it's happening.
Packages
Modular by design.
Use just the core, or compose the full stack. Every package is independently versioned.
@engram-ai-memory/corenpm ↗Memory engine, embeddings, knowledge graph, retrieval
@engram-ai-memory/mcpnpm ↗MCP server — native Claude Code integration
@engram-ai-memory/clinpm ↗Terminal tool — store, search, recall, export, import
@engram-ai-memory/visnpm ↗Force-directed layout + animation helpers
@engram-ai-memory/serverFastify REST API + Socket.io WebSocket server
@engram-ai-memory/webReact 3D visualization dashboard — 5 render modes
@engram-ai-memory/adapter-ollamaTransparent Ollama proxy — zero client changes
@engram-ai-memory/adapter-openclawOpenClaw adapter — EngramClient + withMemory()
Support the project
Keep Engram free & open source.
Engram is MIT-licensed and built in the open. If it's useful to you, consider supporting continued development — every contribution helps keep the lights on.
bc1qaahm…rh85kkclick to expandHKpRw1h8…BX27Xgclick to expandUQAkUqVS…nr2CFdclick to expand0x34B39c…D75236click to expandTLnC2NGV…Ghgc75click to expandAll donations go directly to the developer. No middleman, no platform fees. Thank you for supporting open-source AI tooling. ♥