Persistent Memory for AI Coding Assistants
LongMem keeps a private, local memory of your coding work so your AI assistant always starts with context. Never repeat yourself again.
Quick start
Get LongMem running in less than a minute
Install LongMem
Start the daemon
Core features
Everything you need for persistent AI memory
Local-first storage
All your data stays on your machine in a SQLite database. No cloud uploads unless you enable compression.
Privacy modes
Configure secret redaction with safe, flexible, or none modes. Block sensitive files automatically.
AI compression
Optional AI-powered summaries improve recall and search relevance. Works with OpenRouter, OpenAI, or local models.
Deep integrations
Native support for OpenCode and Claude Code CLI. MCP server for on-demand memory retrieval.
Explore by topic
Dive deeper into LongMem’s capabilities
CLI commands
Configuration
Integrations
API reference
Resources
Additional help and support
Ready to get started?
Install LongMem in less than a minute and give your AI assistant the gift of memory.
Install LongMem