io.github.varun369/superlocalmemory
Local-first AI memory with knowledge graphs and hybrid search. 17+ AI tools via MCP. Free.
Ask AI about io.github.varun369/superlocalmemory
Powered by Claude Β· Grounded in docs
I know everything about io.github.varun369/superlocalmemory. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
SuperLocalMemory
Your AI Finally Remembers You
Stop re-explaining your codebase every session. 100% local. Zero setup. Completely free.
superlocalmemory.com β’ Quick Start β’ Why This? β’ Features β’ Docs β’ Issues
A Qualixar Product Β· Created by Varun Pratap Bhardwaj β’ π Sponsor β’ π MIT License
Research Paper
SuperLocalMemory: Privacy-Preserving Multi-Agent Memory with Bayesian Trust Defense Against Memory Poisoning
Varun Pratap Bhardwaj, 2026
The paper presents SuperLocalMemory's architecture for defending against OWASP ASI06 memory poisoning through local-first design, Bayesian trust scoring, and adaptive learning-to-rank β all without cloud dependencies or LLM inference calls.
| Platform | Link |
|---|---|
| arXiv | arXiv:2603.02240 |
| Zenodo (CERN) | DOI: 10.5281/zenodo.18709670 |
| ResearchGate | Publication Page |
| Research Portfolio | superlocalmemory.com/research |
If you use SuperLocalMemory in your research, please cite:
@article{bhardwaj2026superlocalmemory,
title={SuperLocalMemory: Privacy-Preserving Multi-Agent Memory with Bayesian Trust Defense Against Memory Poisoning},
author={Bhardwaj, Varun Pratap},
year={2026},
eprint={2603.02240},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2603.02240}
}
What's New in v2.8 β "Memory That Manages Itself"
SuperLocalMemory now manages its own memory lifecycle, learns from action outcomes, and provides enterprise-grade compliance β all 100% locally on your machine.
Memory Lifecycle Management (v2.8)
Memories automatically transition through lifecycle states based on usage patterns:
- Active β Frequently used, instantly available
- Warm β Recently used, included in searches
- Cold β Older, retrievable on demand
- Archived β Compressed, restorable when needed
Configure bounds to keep your memory system fast:
# Check lifecycle status
slm lifecycle-status
# Compact stale memories
slm compact --dry-run
Behavioral Learning (v2.8)
The system learns from what works:
- Report outcomes:
slm report-outcome --memory-ids 1,5 --outcome success - View patterns:
slm behavioral-patterns - Knowledge transfers across projects automatically
Enterprise Compliance (v2.8)
Built for regulated environments:
- Access Control β Attribute-based policies (ABAC)
- Audit Trail β Tamper-evident event logging
- Retention Policies β GDPR erasure, HIPAA retention, EU AI Act compliance
New MCP Tools (v2.8)
| Tool | Purpose |
|---|---|
report_outcome | Record action outcomes for behavioral learning |
get_lifecycle_status | View memory lifecycle states |
set_retention_policy | Configure retention policies |
compact_memories | Trigger lifecycle transitions |
get_behavioral_patterns | View learned behavioral patterns |
audit_trail | Query compliance audit trail |
Performance
| Operation | Latency |
|---|---|
| Lifecycle evaluation | Sub-2ms |
| Access control check | Sub-1ms |
| Feature vector (20-dim) | Sub-5ms |
Upgrade: npm install -g superlocalmemory@latest β All v2.7 behavior preserved, zero breaking changes.
Upgrading to v2.8 | Full Changelog
Previous: v2.7 β "Your AI Learns You"
SuperLocalMemory learns your patterns, adapts to your workflow, and personalizes recall β all 100% locally. No cloud. No LLM. Your behavioral data never leaves your device.
- Adaptive Learning β Learns tech preferences, project context, and workflow patterns
- Three-Phase Ranking β Baseline β Rule-Based β ML Ranking (gets smarter over time)
- Privacy by Design β Learning data stored separately, one-command GDPR erasure
- 3 New MCP Tools β Feedback signal, pattern transparency, and user correction
Previous: v2.6.5 β Interactive Knowledge Graph
- Fully interactive visualization with zoom, pan, and click-to-explore
- 6 layout algorithms, smart cluster filtering, 10,000+ node performance
- Mobile & accessibility support: touch gestures, keyboard nav, screen reader
Previous: v2.6 β Security & Scale
What's New in v2.6
SuperLocalMemory is now production-hardened with security, performance, and scale improvements:
- Trust Enforcement β Bayesian scoring actively protects your memory. Agents with trust below 0.3 are blocked from write/delete operations.
- Profile Isolation β Memory profiles fully sandboxed. Zero cross-profile data leakage.
- Rate Limiting β Protects against memory flooding from misbehaving agents.
- HNSW-Accelerated Graphs β Knowledge graph edge building uses HNSW index for faster construction at scale.
- Hybrid Search Engine β Combined semantic + FTS5 + graph retrieval for maximum accuracy.
v2.5 highlights (included): Real-time event stream, WAL-mode concurrent writes, agent tracking, memory provenance, 28 API endpoints.
Upgrade: npm install -g superlocalmemory@latest
Interactive Architecture Diagram | Architecture Doc | Full Changelog
The Problem
Every time you start a new Claude session:
You: "Remember that authentication bug we fixed last week?"
Claude: "I don't have access to previous conversations..."
You: *sighs and explains everything again*
AI assistants forget everything between sessions. You waste time re-explaining your:
- Project architecture
- Coding preferences
- Previous decisions
- Debugging history
The Solution
# Install in one command
npm install -g superlocalmemory
# Save a memory
superlocalmemoryv2-remember "Fixed auth bug - JWT tokens were expiring too fast, increased to 24h"
# Later, in a new session...
superlocalmemoryv2-recall "auth bug"
# β Found: "Fixed auth bug - JWT tokens were expiring too fast, increased to 24h"
Your AI now remembers everything. Forever. Locally. For free.
π Quick Start
Install (One Command)
npm install -g superlocalmemory
Or clone manually:
git clone https://github.com/varun369/SuperLocalMemoryV2.git && cd SuperLocalMemoryV2 && ./install.sh
Both methods auto-detect and configure 17+ IDEs and AI tools β Cursor, VS Code/Copilot, Codex, Claude, Windsurf, Gemini CLI, JetBrains, and more.
Verify Installation
superlocalmemoryv2-status
# β Database: OK (0 memories)
# β Graph: Ready
# β Patterns: Ready
That's it. No Docker. No API keys. No cloud accounts. No configuration.
Launch Dashboard
# Start the interactive web UI
python3 ~/.claude-memory/ui_server.py
# Opens at http://localhost:8765
# Features: Timeline, search, interactive graph, statistics
π‘ Why SuperLocalMemory?
For Developers Who Use AI Daily
| Scenario | Without Memory | With SuperLocalMemory |
|---|---|---|
| New Claude session | Re-explain entire project | recall "project context" β instant context |
| Debugging | "We tried X last week..." starts over | Knowledge graph shows related past fixes |
| Code preferences | "I prefer React..." every time | Pattern learning knows your style |
| Multi-project | Context constantly bleeds | Separate profiles per project |
Built on Peer-Reviewed Research
Not another simple key-value store. SuperLocalMemory implements cutting-edge memory architecture backed by peer-reviewed research β hierarchical organization, knowledge graph clustering, identity pattern learning, multi-level retrieval, adaptive re-ranking, workflow sequence mining, temporal confidence scoring, and cold-start mitigation.
The only open-source implementation combining all these approaches β entirely locally.
β¨ Features
Multi-Layer Memory Architecture
View Interactive Architecture Diagram β Click any layer for details, research references, and file paths.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Layer 9: VISUALIZATION (v2.2+) β
β Interactive dashboard: timeline, graph explorer, analytics β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 8: HYBRID SEARCH (v2.2+) β
β Combines: Semantic + FTS5 + Graph traversal β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 7: UNIVERSAL ACCESS β
β MCP + Skills + CLI (works everywhere) β
β 17+ IDEs with single database β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 6: MCP INTEGRATION β
β Model Context Protocol: 18 tools, 6 resources, 2 prompts β
β Auto-configured for Cursor, Windsurf, Claude β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 5Β½: ADAPTIVE LEARNING (v2.7 β NEW) β
β Three-layer learning: tech prefs + project context + flow β
β Local ML re-ranking β no cloud, no telemetry β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 5: SKILLS LAYER β
β 7 universal slash-commands for AI assistants β
β Compatible with Claude Code, Continue, Cody β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 4: PATTERN LEARNING β
β Confidence-scored preference detection β
β "You prefer React over Vue" (73% confidence) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 3: KNOWLEDGE GRAPH + HIERARCHICAL CLUSTERING β
β Auto-clustering: "Python" β "Web API" β "Auth" β
β Community summaries with auto-generated labels β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 2: HIERARCHICAL INDEX β
β Tree structure for fast navigation β
β O(log n) lookups instead of O(n) scans β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 1: RAW STORAGE β
β SQLite + Full-text search + vector search β
β Compression: 60-96% space savings β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Key Capabilities
- Adaptive Learning System β Learns your tech preferences, workflow patterns, and project context. Personalizes recall ranking using local ML. Zero cloud dependency. New in v2.7
- Knowledge Graphs β Automatic relationship discovery. Interactive visualization with zoom, pan, click.
- Pattern Learning β Learns your coding preferences and style automatically.
- Multi-Profile Support β Isolated contexts for work, personal, clients. Zero context bleeding.
- Hybrid Search β Semantic + FTS5 + Graph retrieval combined for maximum accuracy.
- Visualization Dashboard β Web UI for timeline, search, graph exploration, analytics.
- Framework Integrations β Use with LangChain and LlamaIndex applications.
- Real-Time Events β Live notifications via SSE/WebSocket/Webhooks when memories change.
- Memory Lifecycle β Automatic state transitions (Active β Warm β Cold β Archived) with bounded growth guarantees. New in v2.8
- Behavioral Learning β Learns from action outcomes, extracts success/failure patterns, transfers knowledge across projects. New in v2.8
- Enterprise Compliance β ABAC access control, tamper-evident audit trail, GDPR/HIPAA/EU AI Act retention policies. New in v2.8
π Works Everywhere
SuperLocalMemory is the ONLY memory system that works across ALL your tools:
Supported IDEs & Tools
| Tool | Integration | How It Works |
|---|---|---|
| Claude Code | β Skills + MCP | /superlocalmemoryv2-remember |
| Cursor | β MCP + Skills | AI uses memory tools natively |
| Windsurf | β MCP + Skills | Native memory access |
| Claude Desktop | β MCP | Built-in support |
| OpenAI Codex | β MCP + Skills | Auto-configured (TOML) |
| VS Code / Copilot | β MCP + Skills | .vscode/mcp.json |
| Continue.dev | β MCP + Skills | /slm-remember |
| Cody | β Custom Commands | /slm-remember |
| Gemini CLI | β MCP + Skills | Native MCP + skills |
| JetBrains IDEs | β MCP | Via AI Assistant settings |
| Zed Editor | β MCP | Native MCP tools |
| Aider | β Smart Wrapper | aider-smart with context |
| Any Terminal | β Universal CLI | slm remember "content" |
Three Ways to Access
-
MCP (Model Context Protocol) β Auto-configured for Cursor, Windsurf, Claude Desktop
- AI assistants get natural access to your memory
- No manual commands needed
- "Remember that we use this framework" just works
-
Skills & Commands β For Claude Code, Continue.dev, Cody
/superlocalmemoryv2-rememberin Claude Code/slm-rememberin Continue.dev and Cody- Familiar slash command interface
-
Universal CLI β Works in any terminal or script
slm remember "content"- Simple, clean syntaxslm recall "query"- Search from anywhereaider-smart- Aider with auto-context injection
All three methods use the SAME local database. No data duplication, no conflicts.
Complete setup guide for all tools β
π vs Alternatives
The Hard Truth About "Free" Tiers
| Solution | Free Tier Limits | Paid Price | What's Missing |
|---|---|---|---|
| Mem0 | 10K memories, limited API | Usage-based | No pattern learning, not local |
| Zep | Limited credits | $50/month | Credit system, cloud-only |
| Supermemory | 1M tokens, 10K queries | $19-399/mo | Not local, no graphs |
| Personal.AI | β No free tier | $33/month | Cloud-only, closed ecosystem |
| Letta/MemGPT | Self-hosted (complex) | TBD | Requires significant setup |
| SuperLocalMemory | Unlimited | $0 forever | Nothing. |
What Actually Matters
| Feature | Mem0 | Zep | Khoj | Letta | SuperLocalMemory |
|---|---|---|---|---|---|
| Works in Cursor | Cloud Only | β | β | β | β Local |
| Works in Windsurf | Cloud Only | β | β | β | β Local |
| Works in VS Code | 3rd Party | β | Partial | β | β Native |
| Universal CLI | β | β | β | β | β |
| Multi-Layer Architecture | β | β | β | β | β |
| Pattern Learning | β | β | β | β | β |
| Adaptive ML Ranking | Cloud LLM | β | β | β | β Local ML |
| Knowledge Graphs | β | β | β | β | β |
| 100% Local | β | β | Partial | Partial | β |
| GDPR by Design | β | β | β | β | β |
| Zero Setup | β | β | β | β | β |
| Completely Free | Limited | Limited | Partial | β | β |
SuperLocalMemory is the ONLY solution that:
- β Learns and adapts locally β no cloud LLM needed for personalization
- β Works across 17+ IDEs and CLI tools
- β Remains 100% local (no cloud dependencies)
- β GDPR Article 17 compliant β one-command data erasure
- β Completely free with unlimited memories
See full competitive analysis β
β‘ Measured Performance
All numbers measured on real hardware (Apple M4 Pro, 24GB RAM). No estimates β real benchmarks.
Search Speed
| Database Size | Median Latency | P95 Latency |
|---|---|---|
| 100 memories | 10.6ms | 14.9ms |
| 500 memories | 65.2ms | 101.7ms |
| 1,000 memories | 124.3ms | 190.1ms |
For typical personal use (under 500 memories), search results return faster than you blink.
Concurrent Writes β Zero Errors
| Scenario | Writes/sec | Errors |
|---|---|---|
| 1 AI tool writing | 204/sec | 0 |
| 2 AI tools simultaneously | 220/sec | 0 |
| 5 AI tools simultaneously | 130/sec | 0 |
Concurrent-safe architecture = zero "database is locked" errors, ever.
Storage
10,000 memories = 13.6 MB on disk (~1.4 KB per memory). Your entire AI memory history takes less space than a photo.
Graph Construction
| Memories | Build Time |
|---|---|
| 100 | 0.28s |
| 1,000 | 10.6s |
Auto-clustering discovers 6-7 natural topic communities from your memories.
π§ CLI Commands
# Memory Operations
superlocalmemoryv2-remember "content" --tags tag1,tag2 # Save memory
superlocalmemoryv2-recall "search query" # Search
superlocalmemoryv2-list # Recent memories
superlocalmemoryv2-status # System health
# Profile Management
superlocalmemoryv2-profile list # Show all profiles
superlocalmemoryv2-profile create <name> # New profile
superlocalmemoryv2-profile switch <name> # Switch context
# Knowledge Graph
python ~/.claude-memory/graph_engine.py build # Build graph
python ~/.claude-memory/graph_engine.py stats # View clusters
# Pattern Learning
python ~/.claude-memory/pattern_learner.py update # Learn patterns
python ~/.claude-memory/pattern_learner.py context 0.5 # Get identity
# Visualization Dashboard
python ~/.claude-memory/ui_server.py # Launch web UI
π Documentation
| Guide | Description |
|---|---|
| Quick Start | Get running in 5 minutes |
| Installation | Detailed setup instructions |
| Visualization Dashboard | Interactive web UI guide |
| Interactive Graph | Graph exploration guide (NEW v2.6.5) |
| Framework Integrations | LangChain & LlamaIndex setup |
| Knowledge Graph | How clustering works |
| Pattern Learning | Identity extraction |
| Memory Lifecycle | Lifecycle states, compaction, bounded growth (v2.8) |
| Behavioral Learning | Action outcomes, pattern extraction (v2.8) |
| Enterprise Compliance | ABAC, audit trail, retention policies (v2.8) |
| Upgrading to v2.8 | Migration guide from v2.7 |
| API Reference | Python API documentation |
π€ Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
Areas for contribution:
- Additional pattern categories
- Performance optimizations
- Integration with more AI assistants
- Documentation improvements
π Support This Project
If SuperLocalMemory saves you time, consider supporting its development:
- β Star this repo β helps others discover it
- π Report bugs β open an issue
- π‘ Suggest features β start a discussion
- β Buy me a coffee β buymeacoffee.com/varunpratah
- πΈ PayPal β paypal.me/varunpratapbhardwaj
- π Sponsor β GitHub Sponsors
π License
MIT License β use freely, even commercially. Just include the license.
π¨βπ» Author
Varun Pratap Bhardwaj β Founder, Qualixar Β· Solution Architect
Building the complete agent development platform at Qualixar β memory, testing, contracts, and security for AI agents.
Part of the Qualixar Agent Development Platform
SuperLocalMemory is part of Qualixar, a suite of open-source tools for building reliable AI agents:
| Product | What It Does |
|---|---|
| SuperLocalMemory | Local-first AI agent memory |
| SkillFortify | Agent skill supply chain security |
100% local. 100% private. 100% yours.
