# Engram

> Persistent memory for AI coding agents

Source: https://talira.ai/catalog/engram-6p0bcdf2
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, MCP server
- Categories: [ai / agents / memory](https://talira.ai/categories/ai/agents/memory), [developer tools / ai coding / context](https://talira.ai/categories/developer-tools/ai-coding/context), [languages / go](https://talira.ai/categories/languages/go)
- Platforms: macos, linux, windows, docker[^6][^8][^11]
- Licence: MIT[^7]
- Pricing: Free and open source[^5][^6]
- Pricing notes: Free and MIT-licensed; funded by GitHub Sponsors. Engram Cloud is self-hosted; the maker sells no hosted plan.
- Free tier: yes[^5][^6]
- Self-hostable: yes[^5][^8]
- API: yes[^9]
- MCP server: yes[^5][^10]
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^5][^10]
- Backed by: [Gentleman Programming](https://talira.ai/orgs/gentleman-programming.md)
- Creator: Alan Buscaglia (Gentleman Programming)
- Funding: funded by donations[^12]

Engram gives AI coding agents memory that survives the end of a session: the agent saves decisions, bug fixes, discoveries and session summaries through MCP tools, and searches them later, scoped to the project it's working in. It's a single Go binary with no other runtime, storing everything in one local [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md) file with FTS5 full-text search, and exposes the same memory through an MCP server, a local HTTP API, a CLI and a terminal UI. `engram setup` configures it for [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md), [OpenCode](https://talira.ai/catalog/opencode-fn6hh4gp.md), [Gemini CLI](https://talira.ai/catalog/gemini-cli-xq86svf2.md), [Codex](https://talira.ai/catalog/codex-8m7d8cdk.md), [Cursor](https://talira.ai/catalog/cursor-x8ypqq22.md), [VS Code](https://talira.ai/catalog/visual-studio-code-k779xgqd.md) with Copilot, Windsurf, Pi and other agents, and it flags related or conflicting memories for the agent to judge. Memories can be shared across machines with [Git](https://talira.ai/catalog/git-ab5bez9f.md) Sync's compressed chunks, or through Engram Cloud, an optional self-hosted replication server on [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md) with a browser dashboard. It's MIT-licensed, made by Gentleman Programming, and is the memory layer of its Gentle-AI stack.

## Links

- Website: https://engram.gentlemanprogramming.com/
- GitHub: https://github.com/Gentleman-Programming/engram
- Docs: https://github.com/Gentleman-Programming/engram/blob/main/DOCS.md

## Ways to install

### On your own server

- [Coolify](https://talira.ai/catalog/coolify-0mx3mr9d.md): <https://coolify.io/docs/services/engram>[^1]
- [Proxmox VE Helper-Scripts](https://talira.ai/catalog/proxmox-ve-helper-scripts-3h36wtyj.md): <https://community-scripts.org/scripts/engram>[^2]

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/engram>[^3]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/engram>[^4]

## Problems it solves

- my coding agent forgets everything about my project when the session ends
- I keep re-explaining the same architecture decisions to Claude Code every morning
- give Claude Code, Codex and Cursor one shared memory instead of separate notes for each
- my agent loses what it learned when the context window compacts halfway through a task
- save why a bug was fixed a certain way so the next agent session doesn't undo it
- persistent memory for AI coding agents without running Python, Node.js, Docker or a vector database
- an MCP server that lets my agent save and search notes about each repository separately
- leave a handoff summary at the end of an agent session so the next one picks up where it stopped
- browse and search what my AI agent remembers from a terminal UI
- share my coding agent's project memory with teammates through git
- sync AI agent memories between my laptop and desktop
- self-host a shared memory server for my team's coding agents with a web dashboard
- a simpler alternative to claude-mem that works with any agent
- find out when my agent saved two memories that contradict each other
- query my coding agent's memories over a local HTTP API from my own scripts
- export my agent's memories into Obsidian as a knowledge graph
- keep my AI coding assistant's memory in a local SQLite file I own
- add long-term memory to OpenCode or Gemini CLI with one setup command

## Features

- MCP tools to save, search, update, review and consolidate memories and to start, summarise and end sessions
- project-aware memory: reads default to the current project, detected from git or the working directory
- single Go binary with SQLite and FTS5 full-text search in ~/.engram/engram.db
- local HTTP API with the same memory, for scripts and compound agent workflows
- terminal UI (engram tui) to browse and search memories with vim keys
- engram setup for Claude Code, Pi, OpenCode, Gemini CLI, Codex, Antigravity, Windsurf, Qwen Code, Kiro, Cursor, VS Code Copilot, Kilo Code, Kimi Code and CommandCode
- Claude Code and OpenCode plugins, and the gentle-engram package for Pi
- stable topic keys that update an evolving topic instead of creating duplicate memories
- conflict surfacing: flags related or conflicting memories, with optional LLM-judged semantic checks
- Git Sync: export and import memories as compressed chunks to share across machines
- Engram Cloud: optional self-hosted, project-scoped replication on PostgreSQL with a browser dashboard and managed users and tokens
- engram doctor for read-only diagnostics
- Obsidian Brain export of memories as a knowledge graph (beta)
- binaries for macOS, Linux and Windows; Homebrew tap and go install

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known
- Has an MCP server: plan not known

## Trust

Overall: 0.61 out of 1.
Signals: backing 0.75, extensibility 0.60.

- backed by Gentleman Programming
- created by Alan Buscaglia (Gentleman Programming)
- funding: funded by donations
- has an MCP server for agents

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [ai-memory](https://talira.ai/catalog/ai-memory-bn4w404w.md): Long-term memory for AI coding agents, shared across agents, projects and machines
- [Supermemory](https://talira.ai/catalog/supermemory-nek6e663.md): Memory and context layer for AI: memory, RAG, user profiles and connectors in one API
- [Beads](https://talira.ai/catalog/beads-y6x63vky.md): A memory upgrade for your coding agent
- [Mem0](https://talira.ai/catalog/mem0-1hspsvwb.md): The memory layer for AI agents
- [Letta](https://talira.ai/catalog/letta-8fr9dnmv.md): Build stateful agents with memory that can learn and improve over time
- [OpenViking](https://talira.ai/catalog/openviking-9dqr3z4v.md): The context database for AI agents

## Sources

[^1]: https://coolify.io/docs/services/engram (checked 20 Nov 2026)
[^2]: https://github.com/community-scripts/ProxmoxVE/blob/main/ct/engram.sh (checked 21 Nov 2026)
[^3]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^4]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
[^5]: https://github.com/Gentleman-Programming/engram/blob/main/README.md (checked 20 Nov 2026)
[^6]: https://engram.gentlemanprogramming.com/ (checked 20 Nov 2026)
[^7]: https://github.com/Gentleman-Programming/engram/blob/main/LICENSE (checked 20 Nov 2026)
[^8]: https://github.com/Gentleman-Programming/engram/blob/main/docs/engram-cloud/README.md (checked 20 Nov 2026)
[^9]: https://github.com/Gentleman-Programming/engram/blob/main/DOCS.md (checked 20 Nov 2026)
[^10]: https://github.com/Gentleman-Programming/engram/blob/main/docs/AGENT-SETUP.md (checked 20 Nov 2026)
[^11]: https://github.com/Gentleman-Programming/engram/blob/main/docs/INSTALLATION.md (checked 20 Nov 2026)
[^12]: https://github.com/sponsors/Gentleman-Programming (checked 20 Nov 2026)
