Self-host Engram
v3.7.2Persistent memory layer for AI coding agents via MCP
- Stars
- 8 134
- Ports
- 7437 (Local HTTP API served by `engram serve` (JSON on 127.0.0.1)), 8080 (Engram Cloud server runtime (`engram cloud serve`) default port when run from source)
ghcr.io/gentleman-programming/engramWhat is Engram?
Engram gives AI coding agents a persistent, searchable memory so they stop losing context between sessions. It stores curated observations, prompts and session summaries in a single SQLite database with FTS5 full-text search, located at ~/.engram/engram.db. Everything ships as one Go binary with no runtime dependencies: it exposes a CLI, a local HTTP API (port 7437 by default), a stdio MCP server with dozens of memory tools, and a vim-style terminal UI. It is agent-agnostic — engram setup writes configuration for fourteen coding agents such as Claude Code, Codex, Gemini CLI, Cursor and Windsurf, and any MCP-compatible client can connect. Memories are project-scoped, related or conflicting entries are flagged for the agent, and Git Sync exports compressed chunks so history can move across machines; Engram also offers optional conflict scanning, read-only engram doctor diagnostics, and a beta tool that turns stored memories into an Obsidian graph. Install it with Homebrew, go install, or a release archive for macOS, Linux and Windows, and optionally deploy the self-hosted Engram Cloud replication server with a browser dashboard using Docker Compose and Postgres. The project is MIT-licensed (names and logos are trademarked) and maintained by Alan Buscaglia's Gentleman Programming organisation.
Engram alternatives
remembraSelf-hosted AI memory server for coding agents to hand off sessions across machines and vendors. Captures git facts and transcripts for the next agent.Compareremembra with Engram
atomicmemorySelf-hosted memory infrastructure for AI agents. Durable context with correction-aware fact management. Docker deployment with embedded Postgres/pgvector.Compareatomicmemory with Engram
supermemorySelf-hosted AI memory and context server: Supermemory Local extracts facts, builds user profiles, and blends RAG with memory search through one API on port 6767.Comparesupermemory with Engram
YourMemorySelf-hosted AI memory layer with Ebbinghaus decay, consolidation, and entity graphs. Runs locally via DuckDB, MCP-native, 89.4% Recall@5 on LongMemEval.CompareYourMemory with Engram
AgenvoySelf-hosted AI agent running locally, auto-generates tools, shares via MCP with Claude Code and Codex, keeps data private.CompareAgenvoy with Engram
LongMemoryLongMemory is an open-source, self-hosted memory engine for AI agents: temporal recall, SQLite storage, MCP server, HTTP API, CLI and a dashboard.CompareLongMemory with Engram
openchronicle-mcpOpenChronicle is a self-hosted, open-source memory database for LLM agents with persistent keyword and semantic memory, project namespacing, and MCP support.Compareopenchronicle-mcp with Engram
signetaiSelf-hosted memory layer for AI agents. Captures transcripts, builds a knowledge graph via Dreaming, and lets you inspect every memory with full provenance.Comparesignetai with Engram
Should you self-host Engram?
Engram scores 74/100 on selfhost.directory (how scoring works) and ranks #23 of 209 in AI Agents. It has 8 134 GitHub stars, +455 in the last 30 days.
It shipped 14 stable releases in the past year. The latest, pi-v0.8.0, came out on 14 November 2026. New versions land roughly every 1 days.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is Orca (91/100, 124 444 stars). It scores higher overall, so compare the two before you pick. See Engram vs Orca side by side.
Features
- Agent setup automation
- Background autosync
- Cloud replication with dashboard
- Conflict Detection
- Full-Text Search
- Git Sync
- MCP Server
- Obsidian knowledge graph exportMarked beta by the project.
- Operational diagnostics
- Persistent agent memory
- Project-scoped memory
- REST API
- Session handoff summaries
- Terminal UI
Engram README
Persistent memory for AI coding agents.
Website • Quickstart • Docs • Candidate staging • Gentle-AI • Wiki
engram /ˈen.ɡræm/ — neuroscience: the physical trace of a memory in the brain.
Your AI coding agent forgets everything when the session ends. Engram gives it a brain.
One brain. Local or cloud. Agent-agnostic, single binary, zero dependencies.
If Engram saved you from re-explaining your project, a star helps other people find it.
WORKS WITH THE AGENT YOU ALREADY HAVE
Claude Code ·
Pi ·
OpenCode ·
Gemini CLI ·
Codex ·
Antigravity ·
Windsurf
Qwen Code ·
Kiro ·
Cursor ·
VS Code (Copilot) ·
Kilo Code ·
Kimi Code ·
CommandCode
14 setup targets · plus any MCP-compatible agent · per-agent setup →
FAQ
What should I save first?
Save a real decision or bug fix rather than a meaningless sample note, so you can judge retrieval quality.
What makes search good?
Structured content is the signal: precise titles and summaries written by the agent keep FTS5 retrieval useful.
Does it store raw tool calls?
By default no; Engram keeps curated memory — observations, prompts, summaries and context retrieval.
Does it work only with Claude Code?
No, Engram is agent-agnostic and works with any MCP-compatible client.
Does Engram require a separate server process?
Not always: MCP can run directly over stdio, though some plugin flows also use the HTTP server for session orchestration.
More in AI Agents
EntrolyEntroly is a self-hosted, open-source tool that reduces AI token usage by picking relevant code evidence within a budget and providing auditable receipts.
ENZOENZO is a self-hosted AI workspace for 300+ models using your own API keys. Includes self-drafting agents, research, code generation, music player, encrypted vault.
EpicStaffSelf-hosted AI agent orchestration platform with visual editor, persistent memory, GraphRAG, audit trails, and LDAP/OIDC/SAML auth for regulated environments.
EquiblesA self-hosted server that feeds AI assistants with SEC filings, institutional holdings, insider trades, and market data via the Model Context Protocol.
Evo AIOpen-source, self-hosted workbench for building AI agents: LLM, A2A, sequential, parallel, task and LangGraph workflow types with MCP tools and encrypted API keys.
EzCoworkerSelf-hosted AI agent platform with isolated Docker containers per user, 22+ models across 6+ providers including local Ollama, MCP tools, and file workspace.
fastgptFastGPT is a self-hosted, open-source AI agent platform for building RAG chat apps with visual workflow orchestration, hybrid retrieval and reranking.
FeynmanSelf-hosted, open-source AI research agent for the terminal: literature reviews, deep-research briefs with citations, and paper audits, on any model provider.
FlockSelf-hosted AI dev-team bot for Telegram, VK, LO. Uses your Claude Pro/Max or Anthropic API key. Five-agent pipeline plans, codes, tests, reviews, opens PRs.
flow-likeFlow-Like is a self-hosted, source-available workflow automation platform with visual workflows, frontend builder, AI agents, and data studio.
fonosterOpen-source, self-hosted voice-agent platform for real phone calls: Autopilot agents defined in YAML, SIP trunks and numbers, transfer, recording, webhooks.
ForgeA self-hosted, open-source tool for visually creating AI agents and workflows on your own hardware using a canvas interface with retrieval and MCP capabilities.




0 comments