On this page
Claude-Mem is a third-party project that adds a searchable memory system to coding-agent workflows. In Claude Code, it captures supported session activity, turns it into observations and summaries, and makes that history available for later work. It combines a plugin, a background service and a database.
This guide covers installation for Claude Code, a practical check that memory is working, and how to choose between Claude-Mem and Claude’s built-in memory features.
Read the upstream documentation.
Documentation reviewed: November 19, 2026. Installation and memory checks below follow upstream documentation; they are not recorded local test results.
When Claude-Mem is useful
Consider Claude-Mem when you regularly return to the same codebase and want to recover the reasoning behind earlier work: why a fix was chosen, which approach failed, or what remained unfinished.
Start with an explicit question you want your history to answer. “Why did we change the retry behavior last week?” is a better evaluation task than “Does the assistant remember me?” The first can be checked against a saved record.
If your main need is a few project rules or preferences, review Claude Code’s native memory first. Add another memory system when its searchable history solves a recurring problem and you are comfortable maintaining its service and provider settings.
Claude-Mem and native Claude memory
Claude Code already has persistent instructions and auto memory. Claude-Mem adds another way to capture and retrieve context; its value depends on the history you need.
| Option | What it holds | Where you manage it | Best starting use |
|---|---|---|---|
CLAUDE.md |
Instructions you or your team write | Project or user instruction files | Build commands, conventions and explicit project guidance |
| Claude Code auto memory | Notes Claude saves from useful learnings and corrections | /memory inside Claude Code |
Preferences and project knowledge learned through work |
| Claude-Mem | Recorded observations and session summaries | Plugin settings, worker and memory viewer | Finding decisions and work across sessions |
| Claude app memory and chat search | Saved topics and previous conversations in the Claude app | Claude account and project settings | Continuing work in Claude web, desktop or mobile chats |
Anthropic documents the first two features in its Claude Code memory guide and the Claude app features in its chat search and memory guide. These are separate products and controls.
A useful division of work is to keep deliberate project guidance in CLAUDE.md, inspect the notes in auto memory, and evaluate Claude-Mem for historical lookup. Treat a retrieved memory as evidence to review against the current code.
Agent Skills serve another purpose: they package reusable instructions and procedures. Claude-Mem includes supporting skills, but installing its full memory system also requires hooks and a runtime. For the skills workflow, see how to install Agent Skills.
Install Claude-Mem
Check your environment
Run these commands in the terminal where you use Claude Code:
claude --version
node --version
npm --version
The current installation requirements include Claude Code 2.1.139 or later and Node.js 20.19+ within the 20.x line, or 22.12+. The installer handles missing Bun and uv dependencies. Check the current requirements if your environment needs a manual setup.
If you use WSL, a development container or a remote machine, run the setup and checks under the same user account and in the same environment as Claude Code.
Run the installer
npx claude-mem install
Keep the terminal open while completing the browser setup. Select Claude Code, review the enabled integrations, and choose your memory provider. For the local setup described here, choose local memory. Review the optional prompt scan before authorizing any upload.
Finish setup and check the result in the terminal. The current installer keeps Claude Code auto memory enabled unless you choose to disable it. Reopen your terminal or IDE if the installer changed PATH, then start a fresh Claude Code session. See the upstream installation steps.
Check the service and open the viewer
Run:
npx claude-mem status
npx claude-mem doctor
status reports the worker state. doctor checks the installation and runtime, including the hook launcher. Follow any reported repair instructions before testing memory.
Open the worker URL printed by Claude-Mem. Its port can vary by user and configuration, so use that address instead of assuming localhost:37777. The configuration reference documents port selection.
The default local interface is My Work. To inspect memory records, open Memory & settings, or /viewer on the same worker address. See the viewer guide.
Verify that memory is working
Use a small repository with non-sensitive content. Check both whether a record was saved and whether a new session can retrieve it.
Create a record from real work
In your first Claude Code session, try:
Inspect the available test commands in this repository.
Recommend the command we should run before a pull request.
Explain the choice and summarize the decision when you finish.
Let Claude inspect the relevant files and finish the task. Then open the memory viewer and look for a new observation or session summary associated with this repository. Check its content and time.
If the record is missing, resolve capture or processing first. A newly installed system may have no earlier history to search.
Retrieve it in a new session
Start a new Claude Code session in the same repository and ask:
Search Claude-Mem for our earlier decision about the test command
to run before a pull request in this repository.
Give the decision and its reasoning. Include the IDs of the
supporting observations or session summaries.
If no saved record supports the answer, say so.
Inspect the actual search output or cited records. The retrieved record should belong to the intended project and support the answer. This check follows the project’s recording and retrieval workflow.
An accurate answer alone is insufficient: Claude might infer the test command from the repository or another memory source. A matching saved record and visible retrieval provide stronger evidence that Claude-Mem contributed.
| Check | What to look for |
|---|---|
| Installation | The diagnostic command reports the expected launcher and runtime |
| Capture | A relevant observation or summary appears in the viewer |
| Retrieval | A later session finds that record for the correct project |
| Use | The answer reflects the record and distinguishes old decisions from current code |
Repeat this with one actual question from your workflow before deciding that the setup is useful.
Use memory in everyday work
Ask about a specific project, decision or time period. Useful prompts include:
- “Search this project’s memory for the previous authentication bug. What caused it, and which fix did we choose?”
- “Find unfinished work from the previous session. Check it against the repository before proposing the next step.”
- “Find the earlier decision about dependency updates. Show the supporting observations and flag anything that may be outdated.”
Keep the question separate from the answer you hope to hear. When memory conflicts with a current file or test result, investigate the conflict before reusing the older recommendation.
Storage and data processing
Local storage and model processing
The default local database is ~/.claude-mem/claude-mem.db. The database documentation describes its SQLite storage.
The observer is the component that uses a model to turn activity into memory. Processing follows the provider you configure. With Claude subscription authentication, observation work uses your Claude plan allowance. API providers and hosted services have their own usage limits and billing. Review the selected provider before connecting a real project.
Local database storage does not establish that processing is offline.
Optional uploads and telemetry
Review these settings separately:
- Browser prompt scan. Choosing Discover My Work, Rules & Focus uploads prompt text and associated metadata to cmem.ai for model processing. Skip the scan avoids that upload. Read the browser setup disclosure.
- Cloud sync. When configured, sync can upload observations, summaries and prompts. Captured images can also sync when enabled. See what cloud sync includes.
- Telemetry. The current documentation describes analytics as enabled by default, with opt-out controls. It also documents redacted error messages and stack traces. See the telemetry policy.
To inspect or disable telemetry, run:
npx claude-mem telemetry status
npx claude-mem telemetry disable
Disabling telemetry changes that channel. Review model processing and cloud sync through their own settings.
Private tags and redaction
Claude-Mem supports <private>...</private> tags to filter marked content from its memory storage. Claude can still see the text in the active conversation. Do not treat these tags as a way to erase records already saved. See private tags.
Automatic redaction is an additional opt-in feature for recognized secret patterns. Its coverage has limits; review the redaction documentation before relying on it.
Troubleshoot common setup problems
| Problem | Next check |
|---|---|
npx or node is unavailable |
Check Node.js and npm in the same terminal and environment where Claude Code runs. |
A hook reports that claude-mem cannot be found |
Reopen the terminal or IDE after PATH changes, then inspect the launcher result in doctor. |
| The viewer will not open | Check status and the actual worker URL. Confirm the configured port before changing anything. |
| The worker runs but no new memories appear | Complete a small task, then inspect capture and observer errors in diagnostics and logs. Check provider authentication and quota. |
| A memory is visible but not recalled | Search for it explicitly and check the project scope. Confirm whether retrieval returns the record. |
Use the upstream troubleshooting guide with the exact diagnostic output and installed version when investigating an unresolved error.
If diagnostics identify missing runtime dependencies, the CLI provides:
npx claude-mem repair
Run the health checks again after repair. The CLI source describes what the repair command reinstalls.
Update and remove Claude-Mem
Check the installed version:
npx claude-mem version
To request an update:
npx claude-mem update
The project also documents automatic updates to promoted releases, enabled by default. Review auto-update settings if you need to control when updates happen. After updating, repeat the capture and retrieval check.
Before removal, export or back up memories you want to keep and review the uninstall instructions for your installed version. Follow the memory export guide. Keep exported backups and synchronized copies in mind when deciding what to retain or delete.
After saving anything you need, the CLI removal command is:
npx claude-mem uninstall
The current CLI source lists the version, update and uninstall commands.
Frequently asked questions
Is Claude-Mem an official Anthropic product?
Claude-Mem is a third-party project maintained in the thedotmack/claude-mem repository. Anthropic’s built-in memory features have separate documentation and settings.
Can I install it by copying a SKILL.md file?
Copying a skill file does not set up Claude-Mem’s worker, hooks and database. Use the project installation process for the full system. For reusable instruction packages, see what Agent Skills are.
Do I need Claude-Mem if auto memory already works for me?
Try your existing setup first. Consider Claude-Mem when you need a separate history you can inspect and search, then test whether it answers questions that your current workflow leaves unresolved.
Is Claude-Mem free to run?
Usage depends on the selected model provider and any hosted services. Review their limits and billing; installing the package does not establish a zero-cost operating setup.
Can I trust everything it remembers?
Use a saved memory as a record of earlier work. Confirm its project, date and supporting details, especially before applying an old decision to code that has changed.