The governed memory brain for AI agents: one local memory for Claude Code, Codex, Cursor, Copilot, ChatGPT and any MCP client
pip install superlocalmemory==4.2.0 Copy PIP instructions
One memory for every agent you and your team use — Claude Code, Codex, Cursor, Copilot, Antigravity, Hermes, ChatGPT, Claude on the web, Grok Bot, Muse and any harness that speaks MCP or runs a command. Decisions, documents, screenshots and PDFs, recalled the way you ask for them, governed like company data, shared through a mesh where your local agents and web bots talk to each other, and answered honestly: when the answer isn't there, your agent hears "That isn't in SuperLocalMemory." — not a confident guess.
Install · See it work · Product film · Every capability · Docs · Website
Agents forget everything between sessions. The usual fix — a vector store with a save button — makes it worse: it always returns something, even when nothing it holds answers the question, and your agent builds on it. This is a memory brain, not a bucket: it understands what was saved (who, what, when, which project), keeps it true over time, governs who may see it, and refuses to bluff. Four arXiv papers describe how it works.
In Mode A, core remember and recall make no model-provider call: no API key, no cloud account, no Docker. Anything that sends data out is a choice you make, and the docs say exactly what goes.
AI agents: installing a memory system for your user? Follow SETUP_FOR_AGENTS.md — numbered, non-interactive steps with the expected output of each: install, slm init --auto, slm serve start, slm warmup, connect the host, then call session_init at the start of every session and remember / recall as you work.
npm install -g superlocalmemory # primary route; or: pipx install superlocalmemory (Python 3.12+, Node 18+ for npm) slm setup # pick Mode A to keep everything on this machine slm connect cursor # or codex, windsurf, zed, claude-desktop, jetbrains, opencode ... Claude Code: claude plugin marketplace add qualixar/superlocalmemory, then claude plugin install superlocalmemory@qualixar.
npm is the primary route: it installs SLM into a package-owned virtual environment (pipx does the same). The other primary route is pip in a Python virtual environment you activate: python3 -m venv .venv, activate it, then python -m pip install superlocalmemory. Repository clone: ./scripts/install.sh install (macOS, Linux) or .\scripts\install.ps1 -Action Install (Windows). Runs on Windows, Linux and Apple Silicon macOS (platforms).
$ slm remember "We deploy the API blue-green; rollback is a DNS flip." --kind decision Queryable ✓ 1 facts $ slm remember "Staging DB is Postgres 16 on port 5433." $ 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. $ slm remember "Staging DB moved to Postgres 17 on port 5434." --replaces Replaced ✓ 1 fact(s). To undo: slm review-correction ... rollback 1 $ slm recall "which port does staging postgres use" 1. [0.68] Staging DB moved to Postgres 17 on port 5434. Real output from a fresh Mode A install, trimmed. Scores rank memories; they are not probabilities.
1. It knows when it doesn't know. Every recall comes back in one of three tiers: a supported answer; the closest memories, labelled "I don't have this exactly — here are the closest memories"; or "That isn't in SuperLocalMemory." for nonsense. Just after a start it says it is still warming up and shows what it has found, so you never hear "empty" when the truth is "not ready yet". Your agent stops building on the wrong memory.
2. A second opinion that never leaves your Mac. On Apple Silicon, SLM installs Laya, a small on-device model that judges whether the memories found actually answer the question. Prefer the cloud, or not on a Mac? Jev does the same check online, only after you tick its consent.
3. Your documents and screenshots become a knowledge base you can ask. Save a photo, a screenshot or a PDF and find it weeks later by describing it — "the slide with the quarterly numbers". The picture model is Google's EmbeddingGemma 2, running on your computer: one model reads both your words and your pictures, so a description finds the image. OCR runs locally too, every PDF page is indexed by its picture and its text, and every answer cites its file and page. No generative model ever looks at your files.
4. Karpathy's LLM-wiki idea, built in — with search kept. Andrej Karpathy's LLM-wiki pattern turns raw documents into an organised knowledge base with an index and a health check. SLM does that from the data it already stores — a document index of every file with its people, projects and dates, and a document health check that finds empty pages, unlinked documents, duplicate pages and contradicted facts — while keeping real hybrid search for the moment you need to find something.
5. It looks after itself. Memory health describes your older memories in the background — dates, names, projects, kinds — only ever by adding, never touching what you wrote. Anything that moves or deletes waits for your Fix, and Undo puts it back.
6. Governed, not just stored. Every save passes an admission check and gets a receipt. Every read respects roles, workspaces and scopes. Every erasure reaches every copy — summaries, caches, indexes, picture mirrors — and comes with a verifiable receipt. Every action lands in a hash-chained audit trail. Built for teams and for GDPR, not bolted on.
7. Memory with a sense of time. Every fact knows when it happened and when SLM learned it. Ask what was true last month, or what SLM knew before a date. Corrections replace a fact and stay undoable; unused memories fade the way human memory does.
9. Many agents, one brain. Every write records which agent made it, with trust scores against memory poisoning, so ten agents can share one memory without poisoning it.
10. Your agents talk to each other — even across the internet. Through SLM-Mesh, the agents on your computer and the bots on the web finally share one conversation. Claude Code, Codex and Hermes sessions exchange messages, waits, locks and shared state, on one machine or several, so one agent can hand work to another and two never edit the same file at once. And the bots you allow — ChatGPT, Claude on the web, Grok Bot, Muse — join the same mesh: a bot in your browser can message the agent on your laptop by name and read its reply. Every message arrives labelled as data, never as instructions; a web bot reads new messages when its next turn starts.
11. It learns every day, and it can't quietly get worse. Every reported outcome teaches it: ranking learns which memories actually helped, stable habits become soft prompts for new sessions, and agent skills are measured and revised. A new ranker is promoted only on a statistically valid win and rolled back automatically if it slips. Work runs as bounded loops that end only when an independent gate passes — never on an agent's word — and multi-step pipelines run as bounded graphs with Bounded Loops, whose finished runs SLM keeps as read-only evidence.
12. Science, not vibes. Four arXiv papers back every layer: information-geometric retrieval, biologically inspired forgetting, Bayesian trust against memory poisoning, and governed memory with measured costs. The core math runs without a language model, and the published benchmarks state exactly how they were measured.
SuperLocalMemory is part of Qualixar's AI Reliability Engineering work: agent memory that is observable, bounded and honest about what it doesn't know.
Every harness, every bot, one memory. Any harness that speaks MCP (slm mcp, or http://127.0.0.1:8765/mcp/) or can run a command (slm remember, slm recall) can use SuperLocalMemory. The packaged plugins are ready-made examples, not a limit.
What the plugins teach your agent. Every plugin is built from one source, so every host gets the same 16 skills (recall, remember, sessions, governance, scopes and profiles, the knowledge graph, mesh, bounded loops, cache, compression, Web access, pictures, and two for bot computers) and 4 agents (a memory advisor, an optimize advisor, a governance advisor and a loop runner). Hooks run at session start, after tool use and at the end of a session, and every hook fails open: a hook problem never blocks your agent. Plugins, skills and hooks
A small on-device model for Apple Silicon (about 1.1 GB). Installed by default by setup and offered after an upgrade; nothing ever leaves the machine. Opt out with slm setup --no-laya or SLM_SKIP_LAYA=1. Calibrate it to your own memories in the background with slm embedder calibrate.
The same check on Windows, Linux or macOS, through TypeSafe or OpenRouter with your own key. It sends the question and the top three memories, and only after you tick its consent. It never turns itself on.
The verdict is one input to the support decision, with its own time budget, and the Answer Check tab shows verdicts, timing and how often memory had no answer — without storing your questions. Answer check
Engineering controls that support a compliance program, not a certification.
Pick how many tools your agent sees with SLM_MCP_PROFILE.
stdio: {"command": "slm", "args": ["mcp"]} · HTTP: http://127.0.0.1:8765/mcp/ · MCP tools
Recorded on a test install with fictional memories. The four-minute product film walks through every pane.
The free local core is complete on its own; Web access is optional. Architecture in detail
Nothing leaves your computer unless you turn on a feature that sends it, and each one says exactly what goes:
Pictures, documents, Laya and Mode A never send anything. Secrets in memory text are redacted on every outbound path. Security policy
These numbers come from the published architecture paper (arXiv:2603.14588), whose retrieval core SLM still runs. They are not a fresh run of the current package.
A LoCoMo score is comparable only when the subset, answer model and judge match. Method and ablations
Four arXiv preprints by Varun Pratap Bhardwaj describe SLM:
Cite with CITATION.cff or GitHub's "Cite this repository".
Start: Getting started · IDE setup · Plugins · Quick proof Use: Recall · Memory health · Answer check · Pictures and documents · Auto-memory · Web access · Optimize Reference: CLI · MCP tools · Configuration · Troubleshooting · Compliance · Wiki · Release notes
npm update -g superlocalmemory # or: pipx upgrade superlocalmemory slm restart && slm doctor slm upgrade-hosts # preview plugin and IDE updates; nothing changes until you --apply Upgrades never move or delete memory, and a store update takes a restore point first. Host upgrades
Python 3.12+, Node 18+ for npm. Pictures and documents need 16 GB of memory.
Issues and pull requests are welcome: CONTRIBUTING.md. Security reports: SECURITY.md. Licensed under AGPL-3.0-or-later; for a commercial license see COMMERCIAL-LICENSE.md.
SuperLocalMemory is made by Varun Pratap Bhardwaj at Qualixar: AI Reliability Engineering — memory, contracts, tests and loops that make AI agents dependable enough to trust with real work.
Stronger together. SuperLocalMemory remembers. Jev Decision Layer makes your agent's bounded choices typed and checked. Bounded Loops ends work only when an independent gate passes. Use them together and Qualixar gives your agents the whole AI Reliability Engineering environment: memory they can trust, decisions they can defend, and work that is provably done.
If SLM keeps your agents from forgetting, star the repository. It's how other developers find it.
More from Qualixar: Qualixar OS · SkillFortify · SLM Mesh · AgentAssert · AgentAssay · Bounded Loops · Jev Decision Layer · SLM MCP Hub
search ui injection learning performance lancedb cozo scale ingestion laya full dev
ai-memory agent-memory mcp-server mcp claude-code codex cursor chatgpt rag knowledge-graph local-first privacy-first gdpr eu-ai-act information-geometry multimodal-memory gemma embeddinggemma ollama local-llm jev answer-verification hallucination-prevention ai-reliability-engineering agent-to-agent
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Yanked reason: Release has issues - go to 3.8.8 or 3.8.10
Yanked reason: some issues are ther - 3.8.6 is more stable
Yanked reason: "MCP server can fail to start in Claude Desktop/Cursor right after upgrading to 3.6.12 (a startup banner corrupted the MCP JSON-RPC stream). Fixed in 3.6.13 — please upgrade: npm i -g superlocalmemory@latest"
Yanked reason: Critical bug: caching was silently bypassed for all Claude Code / Codex / tool-bearing clients. Upgrade to 3.6.3.
Yanked reason: Silent data loss in async /remember pipeline. Memories return "queued" but never materialize during runtime due to NameError in materializer + NoneType crash in scene_builder. 18+ memories permanently lost in production. Upgrade to 3.4.38+ which fixes all three bugs. See CHANGELOG.




