Prerequisites
- macOS, Linux, or Windows (x86_64 or ARM64)
- An AI coding agent that supports MCP (OpenCode, Claude Code, Gemini CLI, Codex, VS Code, etc.)
- Go 1.25+ (only if building from source)
Installation
- Homebrew (macOS/Linux)
- Binary Download
- From Source
Agent Setup
Connect Engram to your AI coding agent using the one-command setup:For other agents (Antigravity, Cursor, Windsurf) or manual configuration, see Agent Setup.
First Memory
Let’s verify everything works by saving your first memory using the CLI:Using with Your Agent
Now that Engram is set up, your agent can use memory tools automatically.Example: Saving a Memory
When you complete significant work in your coding session, the agent will callmem_save:
Example: Searching Memory
When you ask “How did we fix the N+1 query?”, the agent will:Get compact results
Results include title, type, project, and a content preview with observation IDs.
Explore the TUI
Launch the interactive terminal UI to browse your memories:Navigate with
j/k (vim keys), Enter to drill in, t for timeline, / to search, Esc to go back.See Terminal UI for full navigation reference.What’s in Your Database?
Engram stores all data in a single SQLite database:Next Steps
How It Works
Understand the memory system and session lifecycle
Memory Protocol
Learn when agents should save and search memories
MCP Tools
Explore all 13 memory tools
Git Sync
Share memories across machines and teams
Troubleshooting
Command not found: engram
Command not found: engram
Ensure the binary is in your If installed via Homebrew, it should be in
PATH.macOS/Linux:/opt/homebrew/bin/engram (Apple Silicon) or /usr/local/bin/engram (Intel).Windows:Agent doesn't see MCP tools
Agent doesn't see MCP tools
Verify the MCP server is configured:OpenCode:Should contain:Restart your agent after configuration changes.
Database locked errors
Database locked errors
Another Engram process may be running.macOS/Linux:Windows:Kill the process and try again.