# SuperLocalMemory: governed, local-first memory for AI agents

One local-first memory for Claude Code, Codex, Cursor, ChatGPT and your bots. It checks its own answers and says I don’t have that. Free, open source.

Source: https://www.superlocalmemory.com/

NEWThe relaunch: one memory for every agent, bot and chat window

# Rent the LLM. *Own the memory.*

## Now one memory for every agent, bot and chat window.

Local-first and governed. It says “I don’t have that” instead of guessing.

`npm install -g superlocalmemory`

then `slm setup` · Windows, Linux and macOS

[Install free](https://www.superlocalmemory.com/install) [Watch the full demo](https://www.superlocalmemory.com/demo)

SuperLocalMemory on Product Hunt

[SuperLocalMemory Agent memory that never bluffs: Laya, Jev + Google Gemma Check it out on Product Hunt →](https://www.producthunt.com/products/superlocalmemory-v2?embed=true&utm_source=embed&utm_medium=post_embed)

superlocalmemory — zsh

# Real output from a fresh Mode A install, trimmed

```
$ slm remember "Staging DB is Postgres 16 on port 5433."

$ slm remember "Staging DB moved to Postgres 17 on port 5434." --replaces 0f57a17af3dd46e5
Replaced ✓ 1 fact(s) of 0f57a17af3dd46e5.

$ slm recall "which port does staging postgres use"
  1. [0.68] Staging DB moved to Postgres 17 on port 5434.
```

The old memory is kept and the change is undoable.

- [**69k+**npm downloads since January](https://www.npmjs.com/package/superlocalmemory)
- [**134k+**PyPI downloads, all time](https://pypi.org/project/superlocalmemory/)
- [**9.2k+ · 3.1k+**npm · PyPI, last 30 days](https://pypistats.org/packages/superlocalmemory)
- [**74.8%**LoCoMo, Mode A with retrieval](https://www.superlocalmemory.com/research)
- [**4**arXiv preprints](https://www.superlocalmemory.com/research)
- [**AGPL v3**Free local core](https://www.superlocalmemory.com/install)

[★ Star on GitHub](https://github.com/qualixar/superlocalmemory)

Works with the tools and bots you already use

Claude Code

Codex

Cursor

VS Code

Copilot

Antigravity

Windsurf

Zed

JetBrains

Gemini CLI

Hermes

ChatGPT

Claude

Composio

Grok Bot

Muse

Why SuperLocalMemory

## Twelve superpowers. One memory brain.

A memory **brain**, not a bucket: it understands what was saved, keeps it true over time, governs who may see it, and refuses to bluff. Part of Qualixar’s AI Reliability Engineering work.

01

### It knows when it doesn’t know

Every recall ends in one of three tiers: a supported answer, “I don’t have this exactly — here are the closest memories”, or “That isn’t in SuperLocalMemory.” While models load it says it is still warming up and to try again in a few minutes.

[How recall decides →](https://www.superlocalmemory.com/workflow)

02

### A second opinion that never leaves your Mac

Laya, a small on-device model, judges whether the memories found answer the question; it is on by default on Apple Silicon. Jev does the same check online, only after you tick its consent, through TypeSafe or OpenRouter.

[Laya and Jev →](https://www.superlocalmemory.com/answer-check)

03

### Documents and pictures you can ask

Screenshots, photos and PDFs become a searchable knowledge base. **Google’s EmbeddingGemma 2, on your computer**: one model reads your words and your pictures, so a description finds the image. OCR runs locally and every answer cites its file and page.

Documents and pictures →

04

### Karpathy’s LLM-wiki idea, built in

A document index and a document health check, with real hybrid search kept for the moment you need to find something.

See the wiki idea →

05

### It looks after itself

Memory health describes older memories in the background, only by adding. Anything that moves or deletes waits for your Fix, and Undo puts it back.

[Read the guide →](https://github.com/qualixar/superlocalmemory/blob/main/docs/memory-health.md)

06

### Governed, not just stored

Roles, workspaces, save receipts, erasure that reaches every derived copy, a hash-chained audit trail and GDPR export. Built for teams and companies.

[See the governance →](https://www.superlocalmemory.com/governance)

07

### Memory with a sense of time

Every fact knows when it happened and when SLM learned it. Ask what was true last month; corrections stay undoable; unused memories fade.

[Time travel →](https://github.com/qualixar/superlocalmemory/blob/main/docs/recall.md#time-travel)

08

### It never floods your context

Layered recall gives a one-line glance, the facts, or the full context under a hard token cap, and `expand` digs deeper only when needed. Cache and reversible compression stop repeat cost.

[Layered recall →](https://github.com/qualixar/superlocalmemory/blob/main/docs/recall.md#layered-recall)

09

### 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.

[All capabilities →](https://www.superlocalmemory.com/capabilities)

10

### Your agents talk to each other

SLM-Mesh gives local agents and web bots messages, locks and shared state, across the internet.

Meet SLM-Mesh →

11

### It learns, and can’t quietly get worse

Outcome learning, soft prompts and skill evolution, behind a guarded ranker that rolls back if it slips. Bounded loops and graphs end only when an independent gate passes.

[Skill evolution →](https://www.superlocalmemory.com/skill-evolution)

12

### Science, not vibes

Four arXiv papers back the layers. The published benchmarks state exactly how they were measured.

[Read the research →](https://www.superlocalmemory.com/research)

Every capability, with its guide: [the full capability list →](https://www.superlocalmemory.com/capabilities) · [the README](https://github.com/qualixar/superlocalmemory#readme)

Bots, web apps and agents NEW

## Every agent. Every bot. Every chat window.

The same governed memory now reaches your bots and chat apps. Your laptop keeps one outbound link; the database never leaves it.

### Grok Bot

Add it as a Cursor-format plugin on a shared bot computer. No API key, and it runs locally.

### ChatGPT

Connect through Web access: sign in with GitHub, then choose read-only or read and save.

### Muse

Connect through Web access and get the same governed recall a local agent gets.

**Claude on the web**

**Claude Code on the web**

**Composio**

MCP

**Any remote MCP client**

1. **1****Turn on Web access**Add an app under Connected apps.
2. **2****Sign in once**GitHub OAuth. Read or save, per app.
3. **3****Calls reach your laptop**Through a gateway, on the same governed paths.

Your laptop must be online. Free daily allowance per connection. SLM works fully without Web access. [See every host and plugin →](https://www.superlocalmemory.com/plugins)

SLM-Mesh

## Your agents talk to each other. Even across the internet.

The agents on your computer and the bots on the web finally share one conversation.

On your computer Claude CodeCodexHermes

On the web, with your permission ChatGPTClaude on the webGrok BotMuse

- **Hand work over.** Sessions exchange messages and waits, on one machine or several, so one agent can pass work to another.
- **Never collide.** Locks stop two agents editing the same file at once.
- **Bots join too.** A bot in your browser can message the agent on your laptop by name and read its reply.
- **Data, not orders.** Every message arrives labelled as data, never as instructions. A web bot reads new messages when its next turn starts.

[Multi-machine guide →](https://github.com/qualixar/superlocalmemory/blob/main/docs/multi-machine.md) [Bot messages guide →](https://github.com/qualixar/superlocalmemory/blob/main/docs/remote-access/hosts.md#bot-messages-and-the-two-new-permissions) [Bots and plugins →](https://www.superlocalmemory.com/plugins#bots)

The short version

## Memory you can govern, trust and check before it speaks.

01 · Governed memory

### Rules, not just similarity

Roles, scopes, GDPR erasure with receipts, retention rules and a hash-chained audit log.

[See the governance →](https://www.superlocalmemory.com/governance)

02 · Recall you can trust

### Memory that cannot quietly get worse

Hybrid search across meaning, keywords, the entity graph, time and pictures, a learned ranker with shadow tests and rollback, and time travel.

[See how recall works →](https://www.superlocalmemory.com/workflow)

03 · Answer check

### It says “I don’t have that”

Laya on your Mac or Jev online judges whether the memories actually answer.

[See Laya and Jev →](https://www.superlocalmemory.com/answer-check)

Recently added

## Cues, disputes, imports and a kill switch.

Each part is on by default with its own off switch, and `slm flags kill on` turns all of it off without a downgrade.

Before every prompt

### Memory when the prompt needs it

A hook asks memory before the agent answers; greetings, arithmetic and slash commands are skipped.

Cues

### Back at the right step

Tie a memory to a file pattern, command, error, repository or date.

Disputes

### Both sides, not an overwrite

Disagreeing memories are shown newest first until settled, and each result says why it came back.

Import

### From ChatGPT, Claude, Mem0

Preview, run in the background, undo the whole run.

[Import guide →](https://www.superlocalmemory.com/import)

Living wiki

### Pages that cite memories

`slm wiki` quotes a memory for every sentence; your edits return as proposals.

Trust

### Provenance, firewall, signatures

Every memory records how it arrived; credentials are replaced before storage; memories are signed.

Decisions

### A log with Undo

Each decision records who, which channel and when. Judges act only once blind audits support them.

Measured

### Does memory help?

`slm health --memory` reports measured effect with confidence intervals.

[Everything new →](https://www.superlocalmemory.com/whats-new)

Using Codex? [Codex memory with SLM](https://www.superlocalmemory.com/integrations/codex) · [SLM on Qualixar](https://qualixar.com/products/superlocalmemory) · [Claude Code memory guide](https://qualixar.com/learn/guides/claude-code-memory) · [Films](https://qualixar.com/watch) · by [Varun Pratap Bhardwaj](https://www.varunpratap.com)

For teams and companies

## Governed, not just stored.

Every save passes an admission check and gets a receipt. Every read respects roles, workspaces and scopes. Every action lands in a hash-chained audit trail.

Roles and workspaces

### A role grants nothing elsewhere

Admin, member and viewer per workspace. Company mode attributes every read and write to a signed-in person.

[Teams guide →](https://github.com/qualixar/superlocalmemory/blob/main/docs/rbac-teams.md)

Erasure

### Every copy, with a receipt

Erasure reaches summaries, caches, indexes and picture mirrors, and comes with a verifiable receipt. GDPR export and erasure (Art. 15, 17, 20).

[Compliance guide →](https://github.com/qualixar/superlocalmemory/blob/main/docs/compliance.md)

Audit and retention

### A trail that fails if tampered with

A hash-chained audit log, per-profile retention rules and an EU AI Act posture report. Engineering controls that support a compliance program, not a certification.

[All the controls →](https://www.superlocalmemory.com/governance)

Scopes

### Personal by default

Shared and global only when you choose; cross-profile recall is denied by default.

[Scopes guide →](https://github.com/qualixar/superlocalmemory/blob/main/docs/shared-memory.md)

Backup and restore

### A restore point before every update

Encrypted cloud backup to GitHub or Google Drive. A restore keeps a safety copy and rolls back if it fails.

[Restore points →](https://github.com/qualixar/superlocalmemory/blob/main/docs/restore-points.md)

Privacy

### Nothing leaves unless you turn it on

Each feature that sends data says exactly what goes. Pictures, documents, Laya and Mode A never send anything.

[Security and privacy →](https://www.superlocalmemory.com/governance#security)

Answer check NEW

## A judge for your memory. Laya on your Mac. Jev online.

Recall ranks by relevance. The answer check decides whether the top memories actually answer the question.

### Laya: private, on your Mac

A small on-device model, about 1.1 GB. Nothing leaves your machine.

- Apple Silicon Macs
- Set up from the dashboard
- No key, no internet after download

[Everything about Laya →](https://www.superlocalmemory.com/answer-check)

“When is Project Kestrel going live?”

*✓***The memories answer it**

confidence 0.85 · 1.4 s of the 3 s limit

Documents, screenshots, PDFs, pictures

## Find the slide by describing it.

Save a photo, a screenshot or a PDF and find it weeks later: “the slide with the quarterly numbers”.

Pictures

### Matched by what they show

PNG, JPEG, GIF and WebP. Google’s EmbeddingGemma 2, on your computer, puts text and pictures in one search space, so your words find the image. OCR makes the text inside it searchable. Location data is never read.

PDFs

### Page by page

Each page is indexed by its picture and its text, and every answer cites its file and page, with a thumbnail.

Karpathy’s LLM-wiki idea, built in

### Index and health check, search kept

A document index of every file with its people, projects and dates, and a health check for empty pages, unlinked and duplicate documents and contradicted facts. Hybrid search stays.

[The original idea →](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f)

Your data stays yours

### On your computer

No generative model ever looks at your files. Pictures live in their own store; erasing a memory erases its picture. Off by default, and it needs 16 GB of memory.

[Read the guide →](https://github.com/qualixar/superlocalmemory/blob/main/docs/pictures-and-documents.md)

Folders and Obsidian vaults mirror in read-only with `slm sources add`. Attach a file in ChatGPT, or ask a connected web app for a one-time upload link.

Also in the box

## Bounded loops, nine adapters, multi-agent memory, governance.

01

### Bounded loops

Iteration ends when an independent gate passes, never when the agent says it is done.

`slm loop` · `/slm-loop` · MCP tools

02

### Nine framework adapters

LangGraph, LangChain, LlamaIndex, CrewAI, AutoGen and four more share one local store.

See the adapters →

03

### Multi-agent memory

See which agent wrote each memory, and every bounded-loop run, in the dashboard.

04

### Governance & EU compliance

Roles, sign-in, GDPR export and verified erasure, and an EU AI Act posture report.

[See the controls →](https://www.superlocalmemory.com/governance)

Full package

## Twenty-eight capabilities. One local runtime.

01 / SCOPES

### Profiles and scopes

Isolated workspaces with personal, shared and global memory.

02 / GRAPH

### Knowledge graph

Entities, relations and graph-informed recall.

03 / LEARNING

### Learning and ranking

A ranker that learns from outcomes, with a shadow test and rollback.

04 / EVOLUTION

### Skill evolution

Measured skill revisions with lineage, under a budget.

05 / OPTIMIZE

### Cache and compression

Exact cache and reversible compression, no proxy needed.

06 / MESH

### SLM-Mesh

Messages, locks and shared state across agents.

07 / SURFACES

### MCP, CLI, hooks, skills

One engine behind every surface.

08 / CONSOLE

### Operator console

Dashboard for memories, graph, health, mesh and settings.

09 / ADAPTERS

### Opt-in ingestion

Gmail, Calendar and transcripts, off until you connect them.

10 / ANSWER CHECK NEW

### Laya and Jev

A judge that says “I don’t have that”.

11 / MEMORY KINDS NEW

### Nine memory kinds

Decisions, rules and how-tos. Standing rules load each session.

12 / WEB ACCESS NEW

### Bots and web apps

ChatGPT, Claude on the web, Muse and Composio.

13 / TIME TRAVEL

### Time travel

Ask what was true, and what was known, on any date.

14 / VIEWS

### Saved views

Reusable questions and summaries that cite their memories.

15 / CORRECTIONS

### Reviewed corrections

Replace, review and roll back, with restore points.

16 / STORE HEALTH

### Switch models, repair

Change embedding models and repair the store, with undo.

17 / BACKUP

### Backup and remote

Encrypted cloud backup, and memory served over TLS.

18 / PLUGINS

### Plugins for every host

Sixteen skills, four agents, a connector for each IDE, one rulebook.

19 / CUES

### Memory before every prompt

Cues and per-prompt recall, only when needed.

20 / DISPUTES

### Disputes and why-it-came-back

Both sides shown until settled.

21 / IMPORT

### Import from other apps

ChatGPT, Claude, Mem0, Letta, Markdown, with undo.

22 / WIKI

### Living wiki

Pages where every sentence cites a memory.

23 / TRUST

### Provenance and firewall

Origin tracking and a minimal instruction firewall.

24 / SAFETY

### Secret screen, signed memories

Typed placeholders and keychain signatures.

25 / DECISIONS

### Decision log and judges

Every decision recorded, with Undo.

26 / MEASURED

### Does memory help?

`slm health --memory`, with confidence intervals.

27 / KILL SWITCH

### One switch

`slm flags kill on` turns the newer passes off.

28 / SHELL

### Every tool from the shell

`slm tool` and `--json` for agents.

Published LoCoMo evidence [arXiv:2603.14588 ↗](https://arxiv.org/abs/2603.14588)

Mode A · Retrieval

74.8%

10 conversations · 1,276 questions · local retrieval with GPT-4.1-mini answer synthesis

PUBLISHED PAPER PROTOCOL

Mode A · Raw

60.4%

10 conversations · 1,276 questions · local embeddings, retrieval, and zero-LLM answer construction

PUBLISHED PAPER PROTOCOL

Mode C

87.7%

Conv-30 · 81 questions · cloud embeddings plus GPT-4.1-mini answer generation and judge

PUBLISHED PAPER PROTOCOL

Published paper evidence (arXiv:2603.14588), not a fresh run of the current package. Mode B has no separate published run.

Quick Start

## Two commands to install. One to connect.

terminal

# Install (Node 18+, Python 3.12+) — or: pipx install superlocalmemory $ npm install -g superlocalmemory # Setup — pick Mode A to keep everything on this machine $ slm setup # Connect your editor — claude-code, codex, cursor, windsurf, zed ... $ slm connect cursor Runs on Windows, Linux and macOS. No Docker, no required graph database, no API key.

[Install free](https://www.superlocalmemory.com/install) [Choose a mode](https://www.superlocalmemory.com/modes)

AGPL v3 · Free local core · Web access has a free daily allowance and is optional

Mathematical Foundation

## Geometry, not guesswork.

Four public arXiv preprints, not venue-reviewed.

01 · Retrieval metric

dFR(p, q) = arccos( Σ √(pi · qi) )

### Fisher-Rao Distance

Dense candidates use cosine similarity; Fisher-derived terms refine later scoring.

[arXiv:2603.14588 →](https://arxiv.org/abs/2603.14588)

02 · Lifecycle model

∇γ ∂tγ = 0 · Expp(v)

### Riemannian Lifecycle

Lifecycle combines policy, observed use and decay.

[arXiv:2604.04514 →](https://arxiv.org/abs/2604.04514)

03 · Compression theory

H(X|Y) ≤ H(X) · I(X;Y) ≥ 0

### Information-Theoretic Compression

Safe mode preserves JSON and code; reversible storage is verified separately.

[Product evidence boundary →](https://www.superlocalmemory.com/capabilities#optimize)

[2608.08253 — Governed Memory Operating System](https://arxiv.org/abs/2608.08253) [2603.14588 — Information-Geometric Agent Memory](https://arxiv.org/abs/2603.14588) [2603.02240 — Privacy-Preserving Multi-Agent Memory](https://arxiv.org/abs/2603.02240) [2604.04514 — The Living Brain](https://arxiv.org/abs/2604.04514)

Integrations NEW

## Every host, one memory.

Plugins for Claude Code, Codex, Antigravity, VS Code / Copilot and Hermes; a Grok Bot plugin; and `slm connect` for Cursor, Windsurf, Zed, JetBrains and more.

Framework memory adapters

Nine adapters wire each framework’s native memory interface to your local SLM store.

| Framework | Package | What it wires |
| --- | --- | --- |
| LangGraph | `langgraph-superlocalmemory` | BaseStore long-term memory |
| Semantic Kernel | `semantic-kernel-superlocalmemory` | VectorStore / RecordStore |
| Microsoft Agent Framework | `agent-framework-superlocalmemory` | Memory + conversation history providers |
| LangChain | `langchain-superlocalmemory` | BaseChatMessageHistory + retriever |
| LlamaIndex | `llamaindex-superlocalmemory` | Chat store |
| CrewAI | `crewai-superlocalmemory` | ExternalMemory storage backend |
| AutoGen | `autogen-superlocalmemory` | Memory provider |
| Google ADK | `google-adk-superlocalmemory` | Memory provider |
| OpenAI Agents | `openai-agents-superlocalmemory` | Memory provider |

**Claude Code**Plugin

**Codex**Plugin

**Antigravity**Plugin

**VS Code**Plugin

**GitHub Copilot**Plugin

**Hermes**Plugin

**Grok Bot**Cursor-format plugin

**Cursor**slm connect cursor

**Windsurf**slm connect

**Zed**slm connect

**JetBrains**slm connect

**Gemini CLI**slm connect

**Claude Desktop**slm connect

OC

**OpenCode**slm connect

Cont

**Continue.dev**slm connect

Also in use

MCP Protocol ChatGPT Perplexity Continue.dev GitHub Actions Docker n8n Goose OpenClaw nanobot Shell scripts

Stronger together

## The whole AI Reliability Engineering environment.

Memory they can trust, decisions they can defend, and work that is provably done.

Remembers

### SuperLocalMemory

Governed, local-first memory that refuses to bluff.

[Install →](https://www.superlocalmemory.com/install)

Decides

### Jev Decision Layer

Makes your agent’s bounded choices typed and checked.

[Jev on GitHub →](https://github.com/qualixar/jev-decision-layer)

Finishes

### Bounded Loops

Ends work only when an independent gate passes; multi-step graphs run the same way.

[Bounded Loops on GitHub →](https://github.com/qualixar/bounded-loops)

Installing for a user? Agents can follow [SETUP_FOR_AGENTS.md](https://github.com/qualixar/superlocalmemory/blob/main/SETUP_FOR_AGENTS.md) or read [llms.txt](https://www.superlocalmemory.com/llms.txt).

Common Questions

## Frequently Asked Questions

Start now

## Own the memory.

Two commands. Free, open source, local-first.

`npm install -g superlocalmemory`

then `slm setup` · [Watch the full demo](https://www.superlocalmemory.com/demo)
