SuperLocalMemory V3 Documentation https://superlocalmemory.com | Part of Qualixar
Complete reference for the slm command-line interface.
Run the interactive setup wizard. Guides you through mode selection, IDE connection, and verification.
slm setupGet or set the operating mode.
slm mode # Show current mode
slm mode a # Zero-cloud (no LLM, no API key)
slm mode b # Local LLM via Ollama
slm mode c # Cloud LLM (requires API key)Get or set the LLM provider for Mode B/C.
slm provider # Show current provider
slm provider set # Interactive provider selector
slm provider set openai # Set provider directlyConfigure IDE integrations.
slm connect # Auto-detect and configure all IDEs
slm connect cursor # Configure Cursor specifically
slm connect claude # Configure Claude Code specificallySupported IDEs: claude, cursor, vscode, windsurf, gemini, jetbrains, continue, zed
Store a memory.
slm remember "API rate limit is 100 req/min on staging"
slm remember "Use camelCase for JS, snake_case for Python" --tags "style,convention"
slm remember "Maria owns the auth service" --tags "team,ownership"| Option | Description |
|---|---|
--tags "a,b" |
Comma-separated tags for categorization |
--profile name |
Store in a specific profile (overrides active profile) |
Search your memories. Returns the most relevant results.
slm recall "rate limit"
slm recall "who owns auth" --limit 5
slm recall "database config" --profile work| Option | Default | Description |
|---|---|---|
--limit N |
10 | Maximum results to return |
--profile name |
active | Search in a specific profile |
Alias for slm recall. Same behavior, same options.
Delete memories matching a query.
slm forget "old staging credentials"
slm forget --id 42 # Delete by memory ID
slm forget --before "2026-01-01" # Delete memories before a date| Option | Description |
|---|---|
--id N |
Delete a specific memory by ID |
--before "date" |
Delete all memories before this date |
--confirm |
Skip the confirmation prompt |
List recent memories.
slm list # Last 20 memories
slm list --limit 50 # Last 50 memoriesRecall with a channel-by-channel breakdown. Shows how each retrieval channel contributed to the results.
slm trace "database port"Output shows scores from each channel:
- Semantic (vector similarity)
- BM25 (keyword matching)
- Entity Graph (relationship traversal)
- Temporal (time-based relevance)
Show diagnostics for the mathematical layers.
slm healthReports status of:
- Fisher-Rao similarity layer
- Sheaf consistency layer
- Langevin lifecycle dynamics
- Embedding model status
- Database integrity
Run a consistency check across your memories. Detects contradictions and outdated information.
slm consistencyMigrate a V2 database to V3 format.
slm migrate # Run migration
slm migrate --dry-run # Preview what will change
slm migrate --rollback # Undo migration (within 30 days)| Option | Description |
|---|---|
--dry-run |
Show what would change without modifying anything |
--rollback |
Revert to V2 format (backup must exist) |
Manage memory profiles (isolated memory contexts).
slm profile list # List all profiles
slm profile switch work # Switch to "work" profile
slm profile create client-acme # Create a new profile
slm profile delete old-project # Delete a profile
slm profile export work > backup.json # Export a profileShow system status: mode, profile, memory count, database location, health.
slm statusCompress and optimize the memory database. Merges redundant memories and reclaims space.
slm compactCheck backup status or create a manual backup.
slm backup # Show backup status
slm backup create # Create a backup nowView the audit trail. Shows all memory operations with timestamps and hash-chain verification.
slm audit # Recent audit entries
slm audit --limit 100 # Last 100 entries
slm audit --verify # Verify hash-chain integrityManage retention policies.
slm retention # Show current policy
slm retention set gdpr-30d # Apply GDPR 30-day policy
slm retention set hipaa-7y # Apply HIPAA 7-year policy
slm retention set custom --days 90 # Custom retention periodThese options work with any command:
| Option | Description |
|---|---|
--help |
Show help for a command |
--version |
Show SLM version |
--verbose |
Show detailed output |
--json |
Output structured JSON with agent-native envelope (for AI agents, scripts, CI/CD) |
--profile name |
Override the active profile for this command |
All data-returning commands support --json for structured output. The envelope follows the 2026 agent-native CLI standard:
{
"success": true,
"command": "recall",
"version": "3.0.22",
"data": {
"results": [
{"fact_id": "abc123", "score": 0.87, "content": "Database uses PostgreSQL 16"}
],
"count": 1,
"query_type": "semantic"
},
"next_actions": [
{"command": "slm list --json", "description": "List recent memories"}
]
}recall, remember, list, status, health, trace, forget, delete, update, mode, profile, connect
# Get first result content
slm recall "auth" --json | jq '.data.results[0].content'
# Get all fact IDs
slm list --json | jq '.data.results[].fact_id'
# Check current mode
slm status --json | jq '.data.mode'- name: Store deployment info
run: slm remember "Deployed ${{ github.sha }} to production" --json
- name: Check memory health
run: slm status --json | jq -e '.success'# Morning: check what you remembered yesterday
slm list --limit 10
# During work: store a decision
slm remember "Decided to use WebSocket instead of SSE for real-time updates" --tags "architecture"
# Later: recall the decision
slm recall "real-time communication approach"
# End of day: check system health
slm status# Create a profile for a new project
slm profile create mobile-app
slm profile switch mobile-app
# Store project context
slm remember "React Native 0.76 with Expo SDK 52"
slm remember "Backend is FastAPI on AWS ECS"
slm remember "CI/CD via GitHub Actions, deploys on merge to main"SLM v3.6 adds the Optimize layer — Cache + Compress + Align for LLM cost reduction.
Master control for the Optimize module.
slm optimize status # Show all settings
slm optimize on # Enable cache + compress
slm optimize off # Disable (proxy passes through)
slm optimize savings # Token/cost report (last 7 days)
slm optimize savings --since 30 # Last 30 days
slm optimize savings --provider anthropic # Per-provider filter
slm optimize savings --jsonCache sub-control — exact and semantic tiers.
slm cache status # Entry count, DB size, TTLs, hit rate
slm cache clear # Delete all entries (default tenant)
slm cache invalidate --tag "key" # Delete entries by tag
slm cache ttl --set 86400 # Set exact TTL (24h default)
slm cache ttl --semantic 3600 # Set semantic TTL
slm cache semantic on|off # Enable/disable semantic cacheCompression sub-control — per-channel toggles.
slm compress status # Mode + per-channel state
slm compress mode safe|aggressive # Set aggressiveness
slm compress code on|off # Code/JSON compression
slm compress prose on|off # Prose compression (opt-in)
slm compress ccr on|off # Reversible context retrieval
slm compress align on|off # Prefix stabilizationStart the optimization proxy (port 8765 by default).
slm proxy # Default port 8765
slm proxy --port 8080 # Custom port
slm proxy --provider anthropic # Provider surface
slm proxy --no-compress # Cache only
slm proxy --semantic # Enable semantic cacheProxy-activate an agent — starts proxy + sets environment + launches agent.
slm wrap claude # Claude Code (recommended)
slm wrap cursor # Cursor
slm wrap aider -- --model gpt-4 # Aider
slm wrap --list # List registered agents
slm wrap --persistent # Permanent config write
slm wrap --dry-run # PreviewFull developer reference with per-agent recipes.
slm help-optimize # Full reference
slm help-optimize cache # Cache reference
slm help-optimize compress # Compress + safety warning
slm help-optimize agents # Per-agent setup
slm help-optimize safety # Safety warning onlyFull details: docs/optimize-cli.md
SuperLocalMemory V3 — Copyright 2026 Varun Pratap Bhardwaj. AGPL-3.0-or-later. Part of Qualixar.