System Requirements
Supported platforms:
- macOS (Apple Silicon or Intel)
- Linux (x64 or ARM64)
- Claude Code CLI or OpenCode must be installed
- Bun runtime (only required if building from source)
Quick Install (Recommended)
Run the interactive installer:Choose Privacy Mode
Select from:
- Safe (recommended) - Redacts secrets and blocks sensitive files
- Flexible - Safe mode + custom regex patterns
- None - No redaction (local-only setups)
Non-Interactive Install
For automation or CI/CD, use headless mode:- Privacy mode:
safe - Auto-context:
enabled - Compression:
disabled
Edit
~/.longmem/settings.json after installation to customize settings.Verify Installation
Check that the daemon is running:What Gets Installed
The installer creates the following structure:The installer also configures your AI assistant (Claude Code or OpenCode) to use LongMem hooks automatically.
Install Options
The installer supports additional flags:| Option | Description |
|---|---|
--yes, -y | Skip all prompts (headless mode) |
--dry-run | Preview changes without modifying files |
--no-service | Don’t install systemd/launchd service |
--opencode | Configure OpenCode in addition to Claude Code |
--all | Configure both Claude Code and OpenCode |
Troubleshooting
Installer hangs or freezes
Installer hangs or freezes
Use non-interactive mode to bypass prompts:
Daemon won't start
Daemon won't start
Check logs for errors:Common issues:
- Port 38741 already in use (check
~/.longmem/settings.jsonto change port) - Corrupted settings file (LongMem auto-repairs invalid JSON)
Config errors or invalid JSON
Config errors or invalid JSON
LongMem automatically backs up corrupted config files:Restore the backup or delete
settings.json and re-run the installer.Client not detected
Client not detected
Ensure Claude Code or OpenCode is installed:If neither is found, install one before running the LongMem installer.
Updating LongMem
To update to the latest version, re-run the installer:settings.json and memory.db are preserved during updates.
Next Steps
Quickstart Guide
Get LongMem running and test memory functionality