Skip to content

Quick Start Tutorial

Varun Pratap Bhardwaj edited this page Aug 8, 2026 · 15 revisions

Quick Start Tutorial

Get SuperLocalMemory working in under 5 minutes — whether you're a new user or upgrading from V2.


New Users

1. Install

npm install -g superlocalmemory

Python 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 superlocalmemory

2. Setup

slm setup

The 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.

3. Pre-download the embedding model (optional)

slm warmup

Downloads the nomic-embed-text-v1.5 model (~500MB). If you skip this, it downloads automatically on first use.

4. Store your first memory

slm remember "Our API uses JWT tokens with 24-hour expiry. Refresh tokens last 30 days." --json

Output 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.

5. Recall it

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.

6. Check system status

slm status
SuperLocalMemory V4
  Mode: A
  Provider: none
  Base dir: ~/.superlocalmemory
  Database: ~/.superlocalmemory/memory.db
  DB size: 0.12 MB

7. Check math layer health

slm health
Math Layer Health:
  Total facts: 1
  Fisher-Rao indexed: 1/1
  Langevin positioned: 1/1
  Mode: A

8. Connect to your IDE

slm connect        # Auto-configure all detected IDEs
slm connect --list # See what's configured

Or 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.

9. Open the dashboard

slm dashboard

Opens 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).


Upgrading from V2

If you already have SuperLocalMemory V2 (2.8.6 or earlier):

1. Install V3

npm install -g superlocalmemory

V3 installs alongside V2. Your V2 data is untouched until you migrate.

2. Migrate your data

slm migrate

This 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)

3. Setup V3

slm setup     # Choose mode (A/B/C)
slm warmup    # Pre-download embedding model

4. Verify

slm status    # Check V3 is running
slm health    # Check math layers are active
slm recall "something you stored in V2"   # Verify old memories are accessible

What changed from V2 to V3

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 if needed

# 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 --rollback

This 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.


Key Commands Reference

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


Next Steps


Part of Qualixar | Created by Varun Pratap Bhardwaj

SuperLocalMemory V4.0.3

Getting Started

Reference

Integrations

Architecture

Enterprise and Teams

V2 Documentation

Clone this wiki locally