Datashardmnem0nic
Memory for Claude Code and Codex.
mnem0nic keeps your coding sessions on your own Mac, writes a short note after every turn, and lets your agent search and pick up past work. On your Mac, it runs through the paid plan you already have.
Install it
On a Mac with Apple silicon, with Claude Code on a paid Claude plan or Codex on a paid ChatGPT plan, run:
curl -fsSL https://raw.githubusercontent.com/datashard-ai/mnem0nic/main/install.sh | sh mnem0nic installThe first command downloads the latest release and checks it against its published checksum. The second sets mnem0nic up for all your projects, in each tool signed in with its own paid plan, and backs up each settings file it changes.
On GitHub: the guide, the releases and the licence.
It keeps your sessions
Your prompts, the agent's replies and its tool calls, with the secrets it recognises redacted. More kinds of secret are redacted, and you can add your own patterns. Text inside private tags is never stored, and projects you list as excluded are left out entirely. After each turn, a small model writes short notes on what was done, learned and decided, through that tool's own login: Claude Haiku for Claude Code, Codex for Codex. A Claude Code session you send to another provider with a key and address set in the terminal, such as GLM through Z.ai, is recorded too. Its notes are written through your own plan, so its turns go to Anthropic, and the project’s earlier notes can reach that provider: list the project as excluded if that must not happen. Sessions on Amazon Bedrock, Google Vertex AI or Microsoft Foundry are not recorded.
Your agent remembers
A new session starts with the project's recent context. During it, your agent searches past sessions by words or by meaning, reads notes and timelines, and keeps to-do lists from one session to the next. Optionally, switch on past work with every prompt, and each prompt reaches your agent with the project’s best-matching notes. Moving from claude-mem? Its tools are there by the same names, and
mnem0nic installoffers to bring your history over. Runmnem0nic doctorto check that it is working, and/mnem0nicin Claude Code runs commands that only read memory, such as search and sessions. After an upgrade, runmnem0nic installagain to get it.It stays yours
Everything stays in a private folder on your Mac. Pair two Macs on the same network and your memory stays in step between them, with no server and no account. Notes are written through your own login, by the provider of the tool you used: Anthropic for Claude Code, OpenAI for Codex. Nothing is sent to us: there is no account and no telemetry. On your Mac, API keys, Amazon Bedrock and Google Vertex AI are never used, so there is never a per-token bill.
Or run it as a memory service
mnem0nic can also run as a small memory service on a Linux server, aarch64 or x86_64 (Intel or AMD), for scripts and agent pipelines that should share one memory. It is off unless you set it up.
A script saves and searches over a small HTTP door guarded by a token. A one-file Python client and a one-file JavaScript client, for Node, Bun, Deno and Cloudflare Workers, are in the guide, and any HTTP client works.
Notes for the service are written through the model provider you choose, with your own API key, and that provider bills you. This is the one place mnem0nic uses an API key. The tool on your Mac never does. Syncing memory between machines is for Macs only.
On the server:
curl -fsSL https://raw.githubusercontent.com/datashard-ai/mnem0nic/main/install.sh | sudo sh -s -- --systemThe steps are in the guide.
To run it in a container, the guide has a Docker Compose example.
With Datashard
mnem0nic never stores Datashard's answers. Your agent reads facts again from your company's install, with your current access.