Install LongMem
Run the interactive installer:Accept the defaults (Safe privacy mode, auto-context enabled, no compression) or customize as needed.
See the Installation guide for detailed options and troubleshooting.
Start the Daemon
Launch the memory daemon:Expected output:
The daemon runs in the background and persists across terminal sessions. On macOS/Linux with systemd or launchd, it will auto-start on boot.
Use With Your AI Assistant
LongMem integrates automatically with Claude Code and OpenCode. No manual configuration needed.Start a new AI session:Your assistant now has access to three memory tools via MCP:
| Tool | Description |
|---|---|
mem_search | Search past sessions by keyword or semantic meaning |
mem_timeline | Get chronological context from recent work |
mem_get | Retrieve full details of a specific observation |
These tools are called automatically by your AI assistant. You don’t need to invoke them manually. Just ask natural questions like:
- “What bug did I fix yesterday?”
- “Show me the API changes from last week”
- “What was the error message I got earlier?”
Testing Memory
To verify memory is working:Where Is My Data Stored?
All LongMem data lives in~/.longmem/:
Useful Commands
Configuration
Edit~/.longmem/settings.json to customize behavior:
What Users Say
“I don’t have to repeat myself.”
“My assistant remembers yesterday’s bugs.”
“No cloud. My data stays local.”
Next Steps
Configuration
Customize privacy modes, compression, and advanced settings
Commands
Full CLI reference for all
longmem commands