SuperLocalMemory: Local-first Memory for AI Agents
Store context once and recall it across AI agent sessions through MCP or CLI. SuperLocalMemory keeps core memory on infrastructure you control, with workspace isolation, explicit operating modes and auditable retrieval.
Carry context across agent sessions
Project decisions and release requirements should not need to be rediscovered in every session. Store attributable context in a workspace, recall the relevant facts, and inspect their provenance. Optional external providers and integrations remain explicit choices.
Key Capabilities
Reliability Spine
Generation-fenced admission, a policy registry, verifiable memory transactions, per-projection apply/verify/compensate/erase ownership, and hash-checkable completion manifests.
Evidence-Led Retrieval
Dense, BM25 lexical, temporal, associative, and spreading-activation candidate producers fuse into a single retrieval path when their declared dependencies are healthy.
Scoped Memory and Governance
Personal, named-profile, shared, and global scopes with role-aware access, provenance, retention, export, verified erasure, and an auditable control plane.
Three Operating Modes
Mode A keeps the core local, Mode B adds a local model, and Mode C deliberately uses an external provider. Network behavior is explicit rather than hidden in the memory path.
CLI, MCP, Dashboard, and Adapters
Operate the same memory system from the command line, Model Context Protocol tools, the dashboard, and framework adapters for agent workflows.
Learning, Cache, and Compression
Feedback-driven learning, reusable retrieval/cache paths, and context compression help agents carry forward useful context without surrendering local control.
On 1 October 2026, the isolated CLI proof stored and recalled one synthetic release-checklist fact in mode A. This is a behavior check, not a retrieval benchmark. Published paper figures keep their original version, dataset and model scope.
Who should use it, and who should not
A good fit
- Developers who work with Claude Code, Codex, Cursor or any other agent that speaks MCP or can run a command, and are tired of repeating decisions and corrections every session.
- Teams that want agent memory with roles, workspaces, an audit trail and verified erasure, run on their own machines. The README describes these as engineering controls that support a compliance program, not a certification.
- Anyone who wants core remember and recall to work without a model-provider call. In Mode A there is no API key, no cloud account and no Docker.
Probably not a fit
- You want a hosted memory service and no local install. SuperLocalMemory runs on your computer; the optional Web access feature only exposes it to web apps you approve.
- You are on an Intel Mac or 32-bit Windows. The README lists no prebuilt install for those.
- You are choosing by the highest published LoCoMo score. See the comparison below before you do.
Install and run it
From the README, not run for this page
Install it with npm (Node 18 or newer), run setup, and connect your agent. These commands and the output are copied from the project README, not run for this page; the output is its trimmed log from a fresh Mode A install.
Install and connect Claude Code
npm install -g superlocalmemory
slm setup # pick Mode A to keep everything on this machine
slm connect claude-code # or codex, cursor, windsurf, zed, claude-desktop, jetbrains, opencode ...Remember, recall, and see it refuse to guess
$ slm remember "We deploy the API blue-green; rollback is a DNS flip." --kind decision
Queryable ✓ 1 facts
$ slm recall "how do we roll back the API"
1. [0.67] We deploy the API blue-green; rollback is a DNS flip.
$ slm recall "zxqv plorth wimble"
That isn't in SuperLocalMemory.Prefer pip? The README also documents `python -m pip install superlocalmemory` (Python 3.12 to 3.14) and `uv tool install`. Run `slm doctor` to check your setup.
Source: SuperLocalMemory README: Install and 30-second example
How it compares with the alternatives
Three honest alternatives, from the built-in option to the two best-known add-ons. Star counts are from the GitHub API on 24 Nov 2026.
Choose SuperLocalMemory when you use more than one agent or tool, want memory on your own machine with governance controls, and accept that it is a one-person research project with 290 GitHub stars.
Claude Code built-in memory (CLAUDE.md and auto memory)
- What it is
- Anthropic documents two mechanisms. CLAUDE.md holds instructions you write. Auto memory holds notes Claude writes itself from your corrections and preferences, per repository. At session start the first 200 lines or 25KB of MEMORY.md load.
- Choose it when
- You use one tool in one repository and want nothing extra to install. It is the right default; add something else only when you hit its limits.
Mem0
- What it is
- A memory layer for AI assistants and agents, offered as a Python or npm library, a self-hosted server (docker compose) and a managed cloud platform. Its README reports 92.5 on LoCoMo and 94.4 on LongMemEval for its managed platform, and says those scores include optimizations not in the open-source build.
- Choose it when
- You are building memory into a product for end users, want a managed service, or want the SDKs and dashboard. Its README lists customer support and healthcare as use cases.
claude-mem
- What it is
- Runs a second agent beside your coding agent that takes notes, compresses them with AI, and injects an index into later sessions. Its README says it works with Claude Code, Codex, Cursor, OpenCode and others. It has about 119,000 GitHub stars.
- Choose it when
- You want automatic session notes with no memory commands to learn, and you are fine with a model writing and compressing those notes.
On benchmarks: the SuperLocalMemory README reports 74.8% on LoCoMo for Mode A with GPT-4.1-mini answers, and 60.4% with no language model anywhere, both from its architecture paper and not a fresh run of the current package. It also says a LoCoMo score is only comparable when the subset, answer model and judge match. Mem0 publishes a higher number, on a different setup. Do not rank the two from these figures.
Papers, posts and films
arXiv preprints
- SuperLocalMemory 4.0: The Governed Memory Operating System for AI Agents (arXiv:2608.08253)
- SuperLocalMemory V3: Information-Geometric Foundations for Zero-LLM Enterprise Agent Memory (arXiv:2603.14588)
- SuperLocalMemory V3.3: The Living Brain (arXiv:2604.04514)
- Privacy-Preserving Multi-Agent Memory with Bayesian Trust Defense Against Memory Poisoning (arXiv:2603.02240)
Guides
Related posts
- How to Give Claude Code Persistent Memory (Free, Local, 5 Minutes)
- Best Mem0 Alternative: Where Local-First AI Memory Fits
- How to Give Cursor AI Persistent Memory in 5 Minutes
- Set Up an MCP Memory Server for Any AI Tool in 5 Minutes
- SuperLocalMemory vs Mem0: LoCoMo Figures and What They Can and Cannot Show
- SuperLocalMemory V3: Mathematical Foundations for Production-Grade Agent Memory
- The EU AI Act and AI Memory: Why Architecture Shapes Your Compliance Work
Connections to other Qualixar tools
- ModStage: The ModStage README says it mirrors run peers and file claims to the local SLM mesh when SuperLocalMemory is running.
Get Started
SkillFortify
Supply Chain Security for AI Agent Skills
Supply chain security scanner for AI agent skills: static analysis against a formal capability model, trust levels, lockfile and CycloneDX ASBOM generation across 22 frameworks.
AgentAssert
Runtime Behavioral Contracts for AI Agents
Define YAML rules and check supplied structured agent state in Python. Place checks at an action boundary and raise on hard violations.
AgentAssay
Regression Testing for Non-Deterministic AI Agents
Token-efficient stochastic behavioral testing framework purpose-built for non-deterministic AI agent workflows. Part of the Qualixar AI Reliability Engineering platform.
Qualixar OS
AI Reliability Engineering — The Universal Runtime for AI Agents
Orchestration runtime of the Qualixar AI Reliability Engineering platform. 12 execution topologies (sequential, parallel, debate, mesh, and more), Forge AI team design, consensus judge pipeline, cost-quality routing. Paper on arXiv.
