How to install · Installation guide · Download source (ZIP)
Claude-Mem stores observations about an assistant's work and helps find relevant decisions in a new session. Use it for projects you return to: what was decided, which bug was fixed and why a particular approach was chosen.
What it is useful for
For example, you agreed on a form's behavior, tested it and return in another chat a week later. Memory can retrieve the decision and its observation instead of starting the discussion again. Current files and project rules still establish the actual state: an old observation may describe a decision that was later reversed.
The system has several parts. Hooks run commands on session events. The observer processes observations with a model, a worker stores and serves memory on your computer, and MCP gives the assistant search tools. A search MCP connection alone does not mean events are being recorded. Observations and summaries are not an exact backup of the project.
How to connect it to Codex
The official installer supports Codex CLI. This selects that client; the flag skips worker startup at the end of installation:
npx claude-mem install --ide codex-cli --no-auto-start
Before running it, the assistant checks existing installations, client version, the chosen observer and configuration changes. The published package requires Node.js 20.12.0 or newer and Bun 1.1.31 or newer. Installation can download Bun, uv and other dependencies, register a plugin, MCP and hooks, and change PATH. Review these changes before approval. --no-auto-start does not prevent later startup through enabled hooks.
The native Codex integration adds the plugin and enables hook support. Review hook trust separately in the client. Registration does not prove observation capture. Do not add a legacy AGENTS.md context writer or another watcher on top without examining existing configuration.
For T3 Code, follow its separate guide: installation runs on the server machine in the intended provider's home. It is not a reason to configure every detected client. For the regular Codex/Work app, first check the actual version and hook execution support; CLI behavior does not prove support in every other environment. A global npm install provides the library but does not register memory.
How to test memory with a practice example
- The assistant finds a separate practice project and checks where the observer sends data and whether unwanted cloud sync is off. It states a dummy decision in chat, such as “the practice form is called Beacon and its button says Book,” performs a small, safe action and checks for the related observation in the viewer, the memory display panel.
- The assistant checks the decision in a new session of the same project through memory tools: search first, then timeline and get_observations if needed. If it cannot open a session itself, it asks you only to open one. It compares the retrieved text, project and date with the previous session. An answer from a file or a continued chat does not test memory retrieval. A viewer card alone does not prove recall in a new session.
- After inspecting the result, confirm deletion of that specific practice observation through the viewer's trash button. The assistant searches again and checks related summaries, which may contain the same information. If deletion is refused or sync is enabled, inspect the cause and copy status before claiming deletion succeeded.
Do not test privacy with a real password or key. Use a dummy marker to test sensitive-text exclusion and check that it is absent from saved observations. A memory filter does not remove the original message from client history or existing backups.
Where data goes and what uses your allowance
Settings and SQLite default to ~/.claude-mem. A local database does not mean model processing happens on that computer: the observer can use Anthropic, Gemini, OpenRouter, CMEM or another supported route. The interactive installer offers CMEM Pro and a trial; that is a separate service, not indefinitely free memory. Before choosing, establish where observations go and whose allowance is used.
The Codex observer documentation describes a local Codex CLI using subscription login without an OpenAI API key. This selects the memory processor, not the capture client. It uses Codex allowance and requires a supported protocol and authentication setup. If the current login is incompatible, do not paste credentials into chat or automatically change their storage: choose another agreed route or keep memory in project notes for now.
Cloud sync uploads observations, summaries and prompt text to the cmem.ai account. Choose it separately from the observer. For a local trial, check actual sync status rather than relying on “local” in a mode's name. Keep the worker local without a public tunnel. Review installer network activity separately: skipping sign-in does not mean no requests to cmem.ai occur.
To reduce usage, search a compact index first and fetch only relevant records. Do not load the entire history on every turn or capture every agent for the first trial. Compare useful retrieved decisions, excess context and observer usage; compression percentage does not measure recall accuracy.
What you get and how to disable it
The trial is complete when an observation appears, is retrieved in a new session and the selected practice record is actually deleted. Continue with resuming a project in a new chat or an Obsidian knowledge base. Keep important project decisions in editable notes too.
Before disabling anything, find all clients sharing the worker and data store. Disable only the intended plugin and hooks. The general npx claude-mem uninstall command touches multiple integrations and attempts to stop the worker; do not run it blindly to remove one client. It preserves the data directory. Disabling, deleting local records and deleting cloud copies are separate actions; do not remove the entire memory folder to clean up a practice observation.
Prompt for Codex
Paste into Codex with access to the practice project:
Help prepare and, after agreement, test Claude-Mem on a practice project. Find the project, rules, current client, existing memory, worker and settings without displaying keys or authentication values. Read the current README and installation guide linked from https://github.com/thedotmack/claude-mem.
Distinguish the capture client, observer, local database, search MCP and cloud sync. Do not create a second installation if one exists. Show required changes, dependencies, where text may go and whose allowance is used. For Codex CLI, check the native --ide codex-cli route; for T3 follow its separate guide on the provider machine. Do not present CLI support as a tested Work/Codex app integration.
Before installation or observer startup, wait for a provider choice and agreement on changes. Do not automatically activate a trial, sync, extra clients or global capture. --no-auto-start applies to the end of installation, so check hooks and worker startup separately. Do not change credential storage for compatibility without my decision.
After agreement, use only dummy data. State a small practice decision in chat, perform a safe action and check observation capture. In a new session of the same project, retrieve it through search and relevant timeline/get_observations calls, showing the source, project and date. Reading a file or old chat is not proof of memory retrieval.
Show the practice record and ask for confirmation before deleting it. Afterwards, search again and check summaries and sync status if sync was used. Do not remove the shared database, other records, client history or cloud account.
Explain the observed result, usage and how to disable only the chosen integration while preserving other clients. If a stage cannot be tested, identify the exact reason instead of claiming the whole cycle succeeded.
