-
-
Notifications
You must be signed in to change notification settings - Fork 37
Quick Start Tutorial
Get SuperLocalMemory working in under 5 minutes — whether you're a new user or upgrading from V2.
npm install -g superlocalmemoryPython alternative: create and activate a virtual environment, then install:
python3 -m venv .venv
source .venv/bin/activate # Windows PowerShell: .venv\Scripts\Activate.ps1
python -m pip install superlocalmemoryslm setupThe wizard asks you to pick a mode:
- A (Local Guardian) — Core memory operations use the local data root without a cloud model provider. Optional integrations have separate network behavior. Default.
- B (Smart Local) — Local LLM via Ollama for answer synthesis.
- C (Full Power) — Cloud LLM for maximum accuracy. Requires API key.
Most users should start with Mode A — you can switch anytime with slm mode b or slm mode c.
slm warmupDownloads the nomic-embed-text-v1.5 model (~500MB). If you skip this, it downloads automatically on first use.
slm remember "Our API uses JWT tokens with 24-hour expiry. Refresh tokens last 30 days." --jsonOutput includes operation_id, fact IDs, and materialization_state: queryable. This means the SQLite relational/FTS projection is recallable and
enrichment is pending. Use --sync to wait for complete.
slm recall "token expiry"Output shows the stored memory with a relevance score:
1. [0.82] Our API uses JWT tokens with 24-hour expiry. Refresh tokens last 30 days.
slm statusSuperLocalMemory V4
Mode: A
Provider: none
Base dir: ~/.superlocalmemory
Database: ~/.superlocalmemory/memory.db
DB size: 0.12 MB
slm healthMath Layer Health:
Total facts: 1
Fisher-Rao indexed: 1/1
Langevin positioned: 1/1
Mode: A
slm connect # Auto-configure all detected IDEs
slm connect --list # See what's configuredOr manually add to your IDE's MCP config:
{
"mcpServers": {
"superlocalmemory": {
"command": "slm",
"args": ["mcp"]
}
}
}Works with: Claude Code, Cursor, VS Code Copilot, Windsurf, Continue, Cody, ChatGPT Desktop, Gemini CLI, JetBrains, Zed, and more.
slm dashboardOpens at http://localhost:8765. Dashboard workspaces include Dashboard, Brain, Knowledge Graph, Memories, Health, Operations, Entity Explorer, Skill Evolution, Mesh Peers, Settings, and Optimize (workspace/tab counts are illustrative — verify the installed dashboard; do not treat a count as a contract).
If you already have SuperLocalMemory V2 (2.8.6 or earlier):
npm install -g superlocalmemoryV3 installs alongside V2. Your V2 data is untouched until you migrate.
slm migrateThis will (not a global transaction — spans file copies, commits, and symlink/junction; verify after):
- Show your V2 stats (memory count, DB size)
- Ask for confirmation
- Create a backup at
~/.superlocalmemory/memory-v2-backup.db/~/.claude-memory-v2-original(verify it exists before relying on rollback) - Copy data to the V3 location (
~/.superlocalmemory/) - Convert V2 memories to V3 atomic facts
- Create a symlink/junction so old tools still find the data (platform-dependent)
slm setup # Choose mode (A/B/C)
slm warmup # Pre-download embedding modelslm status # Check V3 is running
slm health # Check math layers are active
slm recall "something you stored in V2" # Verify old memories are accessible| Feature | V2 | V3 |
|---|---|---|
| Retrieval | Cosine similarity only | Five candidate producers plus fusion and optional score enhancements |
| Similarity | Cosine distance | Dense cosine relevance with optional Fisher-informed later scoring |
| Consistency | None | Sheaf cohomology (algebraic topology) |
| Lifecycle | Hardcoded thresholds | Self-organizing Langevin dynamics |
| Modes | Single mode | A (zero-cloud), B (local LLM), C (cloud LLM) |
| Privacy and compliance controls | Not addressed | Deployment-specific controls and assessment |
| Dashboard | tabs are illustrative — verify the installed build | workspace counts are illustrative — verify the installed dashboard |
| MCP Tools | 6 | Profile-selected V3 tool surfaces |
| Tests | Historical V2 suite | V3 unit, contract, artifact, and integration suites |
# rollback only while the migrator-created backup still exists — verify before use:
ls -lh ~/.superlocalmemory/memory-v2-backup.db; ls -ld ~/.claude-memory-v2-original
slm migrate --rollbackThis restores your V2 installation from the backup while it still exists; verify the backup (~/.superlocalmemory/memory-v2-backup.db / ~/.claude-memory-v2-original) before use — code has no automatic deletion or guaranteed window. It spans file copies, commits, and rename/symlink and reports failures; verify the restored state.
| Command | What It Does |
|---|---|
slm remember "..." |
Store a memory |
slm recall "..." |
Search memories (semantic + keyword + entity + temporal) |
slm forget "..." |
Delete matching memories (with confirmation) |
slm trace "..." |
Recall with per-channel score breakdown |
slm status |
System status (mode, DB size, path) |
slm health |
Math layer health (Fisher, Sheaf, Langevin stats) |
slm mode a/b/c |
Switch operating mode |
slm dashboard |
Launch web dashboard (http://localhost:8765) |
slm mcp |
Start MCP server (for IDE integration) |
slm connect |
Auto-configure IDE integrations |
slm profile list |
List memory profiles |
slm profile create work |
Create isolated memory space |
slm profile switch work |
Switch to a different profile |
Full reference: CLI Reference
- Modes Explained — Understand A vs B vs C
- MCP Tools — Profile-selected tool and resource contracts
- IDE Setup — Per-IDE configuration guides
- Auto-Memory — How auto-capture and auto-recall work
- Architecture Overview — How the system works under the hood
Part of Qualixar | Created by Varun Pratap Bhardwaj
SuperLocalMemory V4.0.3 — Local-first memory with explicit data-path controls. Current docs: Home · Installation · CLI · MCP whole 91 (full 46) · FAQ
Part of Qualixar | Created by Varun Pratap Bhardwaj | GitHub · CHANGELOG
Platform boundary: Apple Silicon macOS · 64-bit Windows · 64-bit Linux — Intel Mac and 32-bit Windows not supported (
cryptography==50.0.0).
SuperLocalMemory V4.0.3
Getting Started
- Installation
- Quick Start Tutorial
- Getting Started
- Modes Explained
- IDE Setup
- Host Integration Upgrades
- Migration from V2
Reference
- CLI Commands
- MCP Tools — 91 whole / 58 power / 46 full / 28 code / 14 core
- Retrieval Score Contract
- Auto-Memory
- Active Memory (V3.1)
Integrations
- Framework Adapters — 9 adapters
- Bounded Loops
- Multi-Agent Memory
Architecture
- Architecture Overview — historical V3, carried into V4
- Capabilities and Operations
- Published Benchmarks — V3 LoCoMo, not a V4 rerun
- Mathematical Foundations — historical V3
-
V4 Reliability Contract — 2,200/2,200, protocol
benchmark/run_all.py --trials 200
Enterprise and Teams
V2 Documentation