Shared memory for AI agents: records who wrote each note, holds suspect writes, and can undo them.
Project details
Tell Claude Code, Cursor, Codex or Gemini CLI something once and the rest already know it: one SQLite file on your machine, over MCP or REST. No cloud, no API keys. Every note records its writer, writes that match known attack patterns wait for your OK, a person must approve replacements, and one command undoes everything one app wrote. Beta, not independently security-reviewed.
Monomem is a self-hosted memory store shared across AI coding agents over MCP and a plain REST API. Tell one agent something; the others already know it, because they all read and write one file on your own computer. Local by default: no cloud account, no API keys, no model in the write path.
Monomem was released as OneMemory until October 2026. Another product had the name first, so it moved. A store at ~/.onememory is opened in place, ONEMEMORY_* settings still work, and onememory is kept as a command alias.
Try it first, without touching your notes: npx monomem demo --open opens a dashboard on a throwaway store with two agents, a held write you can reject, and a bad writer you can undo.

Recorded on 1.8.0 from a real run on a throwaway store.

monomem leaves also catches DNS resolver and UDP connections. Not watched: native add-ons and programs Monomem starts.MONOMEM_MODE=read gives a local window that can only search, read and list.monomem report --cost estimates how many tokens session-start recall put into prompts. It does not measure answer quality or money saved.Changes in 1.9.0 are in the changelog on GitHub.
monomem doctor, and that note is not shown to agents. Limit: anything that can read your key file as you can seal a forged note.monomem blame "<claim>" and monomem ask "<question>". See who wrote a note, when, from which app and session, whether a person confirmed it, and what changed it last. ask gives a timeline, not a generated answer.monomem check --attacks replays 27 known attacks and 2 are known misses. It is pattern matching, so a reworded attack can get through.stdio:cursor, stdio:claude-code): that tells your apps apart, but it is not proof.monomem approve-first --all on makes every agent write wait.monomem rollback --writer <name> undoes what one app wrote. Agents archive instead of deleting; only you erase for good. Version history keeps 20 earlier versions by default.npx monomem demo --open # throwaway store, never touches your notes
npx monomem setup # finds your apps, shows what it will change, backs up every file
Node 22.16 or newer, or a no-Node download from the GitHub releases page. monomem setup --undo puts everything back. In Claude Code you can also install it as a plugin: /plugin marketplace add calasdan-sketch/monomem.
MIT. Source, changelog and security notes: https://github.com/calasdan-sketch/monomem
Comments
0Start the conversation
Share the first comment.