by qualixar
Persistent local memory for AI agents. MCP server and plugins for Claude Code, Codex, Cursor, VS Code Copilot, Antigravity and more: your agents remember across sessions, on your machine. arXiv:2608.08253
# Add to your Claude Code skills
git clone https://github.com/qualixar/superlocalmemoryGuides for using ai agents skills like superlocalmemory.
Last scanned: 5/30/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-30T15:59:13.060Z",
"npmAuditRan": true,
"pipAuditRan": true
}See how superlocalmemory compares with popular alternatives.
superlocalmemory is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by qualixar. Persistent local memory for AI agents. MCP server and plugins for Claude Code, Codex, Cursor, VS Code Copilot, Antigravity and more: your agents remember across sessions, on your machine. arXiv:2608.08253. It has 292 GitHub stars.
Yes. superlocalmemory passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/qualixar/superlocalmemory" and add it to your Claude Code skills directory (see the Installation section above). superlocalmemory ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
superlocalmemory is primarily written in Python. It is open-source under qualixar on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh superlocalmemory against similar tools.
No comments yet. Be the first to share your thoughts!
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
name: superlocalmemory description: "AI agent memory with mathematical foundations. Store, recall, search, and manage memories locally. Local data root; optional networked features have separate behavior." version: "4.2.34" author: "Varun Pratap Bhardwaj" license: AGPL-3.0-or-later homepage: https://superlocalmemory.com repository: https://github.com/qualixar/superlocalmemory triggers:
AI agent memory with a local data root. Five candidate producers (semantic, BM25, temporal, spreading-activation, Hopfield) fuse via RRF, with an entity-graph post-fusion score enhancement — all with mathematical similarity scoring. Mode A operates without sending memory content to a cloud model provider; optional connectors, backup, and proxy providers are explicit choices with separate behavior.
pip install superlocalmemory
# or
npm install -g superlocalmemory
slm remember "Alice works at Google as a Staff Engineer" --json
slm recall "Who is Alice?" --json
slm status --json
All data-returning commands support --json for structured agent-native output.
slm remember "<content>" --json # Store a memory
slm remember "<content>" --tags "a,b" --json
slm recall "<query>" --json # Semantic search
slm recall "<query>" --limit 5 --json
slm list --json -n 20 # List recent memories
slm forget "<query>" --json # Preview matches (add --yes to delete)
slm forget "<query>" --json --yes # Delete matching memories
slm delete <fact_id> --json --yes # Delete specific memory by ID
slm update <fact_id> "<content>" --json # Update a memory
On a computer with 16 GB of memory or more, SLM sets it up by itself in the background
when it is idle (about 3.9 GB of models, one at a time). On a smaller computer it is one
click (slm media enable), with a note that it may be slow. A user's "off" is kept.
slm media status --json # is it on, and how is set-up going
slm media enable # asks first; --yes skips the question (only with the user's yes)
slm media disable # memories are kept
slm media repair --dry-run # count pictures that cannot be found by what they show yet
slm sources add ~/Notes --kind obsidian # or --kind folder; read-only; shows what would be read, then asks
slm sources list --json
When it is on, a normal slm recall also returns saved pictures and PDF pages (a
media block per result). The MCP tools are remember_media, remember_document,
get_media, media_status and, for web apps, media_upload_link; they are listed
only in the full, power and whole tool sets. A picture is up to 25 MB, a PDF up
to 100 MB and 500 pages. Do not save a file that shows a secret. The slm-media skill
has the details.
slm team status --json # Require login: on|off, user count
slm team policy --require-login on|off # on the SLM computer; only when the user asks
slm token show # the key the dashboard asks for in strict mode; a secret, never paste it into chat
slm status --json # System status (mode, profile, DB)
slm health --json # Math layer health
slm trace "<query>" --json # Recall with per-channel breakdown
slm mode --json # Get current mode
slm mode a --json # Set mode (a=local, b=ollama, c=cloud)
slm profile list --json # List profiles
slm profile switch <name> --json # Switch profile
slm profile create <name> --json # Create profile
slm connect --json # Auto-configure IDEs
slm connect --list --json # List supported IDEs
--apply)slm ops list --json # failed, stuck or degraded operations
slm ops repair-saves --json # dry run: saves that failed for good, and what would be re-filed
slm ops repair-saves --apply # copies memory.db first, then repairs; cannot be undone
slm ops resolve <operation_id> --action cancel # drop a save the user does not want (also retry, force_reconcile)
slm corrections dismiss --json # dry run: unreviewed correction proposals SLM made by itself
slm corrections dismiss --older-than 30 --apply # filters: --reason R, --older-than DAYS, --before DATE, --profile P
slm corrections restore-overtaken <case_id> # put a dismissed or overtaken case back
repair-saves restores saves whose text a 4.1.1x build blanked with
[REDACTED:...] markers and files them again; an original that looks like a
secret is left for the user to review. There is no bulk reject for corrections on
purpose: a rejected case counts as decided, and its memories can then never be
deleted. In Mode B or C, two settings cut the model calls per stored fact (defaults
are 5 and true; run slm restart after):
slm config set temporal_validator.max_llm_checks 0 # embedding check only
slm config set encoding.context_generation_llm false # context sentences by rule
slm config set stops without changing anything when config.json cannot be read.
slm loop demo # Run built-in convergence demo (no API key needed)
slm loop history [--name <loop-name>] # List recorded runs from SLM memory
slm loop show <run_id> # Show every lap of one run
Loop laps are persisted to SLM memory under the tag loop:<name>. MCP tools
slm_loop_run, slm_loop_history, and slm_loop_show are available in the
code and full profiles.
slm flags # every 4.2.30 flag and its state; `slm flags set <flag> on|shadow|off`; `slm flags kill on` switches every 4.2.30 subsystem off at once
slm disputes list # open disputes and changed source files; `settle`, `reopen`, `still-true`
slm audit --list --json # blind audit questions to label with your own model id (`--answer ITEM_ID LABEL --model ID`)
slm proposals list # proposed memory changes; `show`, `apply`, `reject`, `rollback`
slm wiki status # compiled pages and edits waiting; `diff`, `build`, `rebuild`, `sync`, `dir`
slm import preview FILE # what a file holds, nothing saved; `run`, `status`, `list`, `cancel`, `undo`
slm trust pending # memories held back from becoming instructions; `promote`, `withdraw`, `status`
slm why FACT_ID --json # where a memory came from and when agents were shown it; read-only
slm signing status # is signing available; `resign` signs again what a lost key signed
slm measurement status --json # what SLM measures about whether memory helps; `on` and `off` only when the user asks
slm cues list --json # the cues that bring memories back, with the memory each belongs to
Run slm <command> --help for the exact options. Proposals, disputes, imports and trust
decisions are recorded and can be undone.
slm setup # Interactive setup wizard
slm mcp # Start MCP server (for IDE integration)
slm dashboard # Open web dashboard
slm warmup # Pre-download embedding model
Every --json response follows a consistent envelope:
{
"success": true,
"command": "recall",
"version": "4.0.0",
"data": {
"results": [
{"fact_id": "abc123", "score": 0.87, "content": "Alice works at Google"}
],
"count": 1,
"query_type": "semantic"
},
"next_actions": [
{"command": "slm list --json", "description": "List recent memories"}
]
}
Error responses:
{
"success": false,
"command": "recall",
"version": "4.0.0",
"error": {"code": "ENGINE_ERROR", "message": "Description of what went wrong"}
}
| Mode | Description | Cloud Required |
|---|---|---|
| A | Local Guardian -- core memory runs without a cloud model provider; optional connectors and model downloads may use the network | None (for core memory) |
| B | Smart Local -- a model on this machine (Ollama by default, any local server works), data stays on your machine | Local only |
| C | Full Power -- your own endpoint, or a cloud provider, for maximum accuracy | Yes, unless using a keyless custom endpoint |
SuperLocalMemory works via both MCP and CLI:
code profile), 58 (full, the default; 65 with pictures and documents on) for IDE integration (Claude Code, Cursor, Windsurf, VS Code, JetBrains, Zed); includes bounded-loop tools slm_loop_run/history/show, bot-message tools mesh_peers, mesh_send, mesh_inbox, mesh_wait (a connected web app passes each reply's ack_ids back as ack) and mesh_state--json for scripts, CI/CD, and agent frameworks; includes slm loop demo/history/showPart of Qualixar | Author: Varun Pratap Bhardwaj (qualixar.com | varunpratap.com)
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 · Full demo · Every capability · Docs · Website
⭐ If SuperLocalMemory keeps your agents from guessing, star the repo. It helps other developers find it.
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.
SuperLocalMemory is long-term memory for AI agents and an MCP memory server that runs on your own computer. Its hooks hand your agent the right memories before each prompt, at session start and right before the step a memory is about, and it keeps learning from what your agents actually use. Bring your history along from ChatGPT, Claude, Mem0, Letta or your AGENTS.md and CLAUDE.md files, and undo the whole import with one click if you change your mind.
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.
The easiest way: let your AI agent install it. Copy the block below into Claude Code, Codex, Cursor or any agent that can run commands. It reads the setup guide, asks you one question, sets everything up and tells you what works. No terminal commands for you to learn.
Install SuperLocalMemory on this computer for me. Follow
https://github.com/qualixar/superlocalmemory/blob/main/SETUP_FOR_AGENTS.md
step by step and show me what each step printed. Ask me only one question,
before turning on anything optional: whether I also want to find my pictures,
screenshots and PDFs by describing them. Connect SuperLocalMemory to the agent
I am using. When you finish, run slm doctor and tell me in plain words what works.
No AI agent? One line in Terminal (macOS and Linux). It brings its own Python, sets everything up, connects the AI tools it finds and opens the dashboard; no Python or npm needed beforehand:
curl -fsSLo get-slm.sh https://raw.githubusercontent.com/qualixar/superlocalmemory/main/scripts/get-slm.sh && sh get-slm.sh
Add pictures and documents from the start with sh get-slm.sh --media at the end. It downloads the script first, so you can read it before it runs. Windows: use the agent prompt above, or npm or pip below.
Prefer the terminal? Both routes end in the same setup: your text memory on this machine, and, if you say yes, your pictures and documents too.
npm, the primary route (Node 18+). It installs SLM into a package-owned virtual environment:
npm install -g superlocalmemory # add --media to also turn on pictures and documents
slm setup # pick Mode A to keep everything on this machine
slm connect claude-code # or codex, cursor, windsurf, zed, claude-desktop, jetbrains, opencode ...
pip, the other primary route (Python 3.12 to 3.14), in a Python virtual environment you activate:
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
python -m pip install superlocalmemory # or, without a venv: pipx install superlocalmemory
slm setup
slm connect claude-code
slm media enable # pictures and documents: automatic on 16 GB+, one click below
uv: uv tool install --python 3.12 superlocalmemory installs slm as an isolated tool, with nothing to activate; see Linux install.
Claude Code plugin: claude plugin marketplace add qualixar/superlocalmemory, then claude plugin install superlocalmemory@qualixar. Codex: slm connect codex, then slm codex install.
Two models, one memory. Text is searched with a small local text model (nomic). If you turn on pictures and documents, a second local model (Google's EmbeddingGemma 2) reads them, and one recall returns both. The picture model unloads after 30 minutes without use, so it holds no memory while you only work with text. Details: pictures and documents, getting started, agent setup steps.
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 <id>
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.
Everything below is on by default, each part has its own off switch (slm flags), and one kill switch, slm flags kill on, turns all of it off without a downgrade. Full release notes
.af files and plain Markdown: preview first, run in the background, undo the whole run at once.slm wiki writes Markdown pages in which every sentence is quoted from a memory it cites; your edits come back as proposals, never as silent writes.