What Is claude-mem? Memory Across Claude Code Sessions: Setup, Plan Usage, Turkish Mode and Uninstalling
Claude Code starts every new session from scratch; it doesn't know which file it changed yesterday or why. claude-mem turns the agent's work into short notes while it runs, writes a summary when the session ends and gives the agent a short index of those notes at the start of the next session; if details are needed, the agent searches the past. The software is free and open source, and the notes stay on your computer. Note: a separate model writes the notes; with the default setting that work runs through your Claude Code login. During setup you can choose your own Anthropic API key or another provider.
What is claude-mem?
An open-source, free memory plugin that turns what happens in Claude Code sessions into short notes and reminds the agent of them in the next session. The notes are kept on your computer.
How do you install claude-mem?
Run npx claude-mem install in a terminal, choose the provider on the setup page and restart Claude Code. Inside Claude Code, /plugin marketplace add thedotmack/claude-mem and /plugin install claude-mem also work.
Is claude-mem free?
The software is free and licensed under Apache 2.0. Cloud Sync costs $12 a month or $99 a year, and the hosted observer starts at $30 a month; both are optional. The note-writing model's cost is separate.
- What it does
- Takes notes on Claude Code sessions and reminds the agent in the next one
- Type
- Claude Code plugin + local service
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, OpenCode
- Usage
- The note-writing model runs separately; an API key or another provider can be chosen
- Latest version
- 17.2.0 (December 2, 2026); the repository opened on August 31, 2025
- Cost
- Software free (Apache 2.0); cloud sync $12/month
What is claude-mem for?
When you work on a long project with a coding agent, you explain the same things again in every new session: which decision you made and why, how you fixed a bug, what a file does. claude-mem fills that gap by running a second agent that takes notes beside your agent. The notes go into a database on your computer; when a new session starts, the agent gets a short index of what matters and pulls the details only when it needs them.
Who it's for: developers who use Claude Code (or another agent such as Codex or Cursor) on the same project for weeks. For example, an agency developer gets last week's "dates use the day.month.year format" decision on a client site recalled to the agent without typing it again in a new session. You need terminal skills.
What it isn't: it isn't Claude's own memory feature; it's a project by an independent developer, not by Anthropic. The atlas has other tools in the same area: ai-memory and codebase-memory-mcp also give the agent project memory, but each works in a different way.
Source: the README and docs.claude-mem.ai (December 2, 2026). "Agency developer" is a usage scenario; the documentation doesn't mention agencies.
How does claude-mem work? Hooks capture, an observer takes notes, the next session remembers
~/.claude-mem folder./learn-codebase command scans the project up front and fills memory in advance (about 5 minutes according to the documentation).The note-taking agent is a model call. To write observations and summaries, claude-mem runs separate model sessions in the background. You choose which model and which account do that work; the details and the effect on cost are in the "Which model takes notes?" section.
Source: the README (How it works) and the installation docs, December 2, 2026.
How do you use claude-mem? What you type, what you get
After installing, you don't need to type anything: note-taking and the session-start reminder run by themselves. When you want to look something up from the past, you ask the agent in plain language; the agent uses the mem-search skill or the MCP search tools. The examples below are derived from the usage in the documentation; the result depends on the notes in memory.
› /learn-codebase› npx claude-mem doctorSeeing the notes: the local service opens a web viewer; you read the saved observations and the My Work summary in your browser. If you want some content never to enter memory, wrap it in <private> … </private> tags.
Source: the README, the search tools docs and the installation docs, December 2, 2026. The plugin also brings other skills such as mem-search, learn-codebase and timeline-report; the list changes with versions.
How do you install claude-mem? Claude Code, Codex and other agents
The recommended route is the one-command installer: it registers the plugin, sets up the hooks and the local service, and installs Bun and uv itself if they're missing. At the end of setup you choose the provider that will write the notes; for Claude, the route is your own Anthropic API key (see "Which model takes notes?" below). Requirements: Node.js 20.19+ or 22.12+ and Claude Code 2.1.139 or later.
› npx claude-mem installAt the end the installer opens a setup page in your browser: you choose the agents, the provider and whether you want local memory or the cloud sync trial. Local memory needs no claude-mem account. When it's done, restart Claude Code.
› /plugin marketplace add thedotmack/claude-mem
/plugin install claude-memThen restart Claude Code. This route is the developer's own marketplace, not the official Anthropic one.
For Codex, Cursor, Gemini CLI, OpenCode and the other agents listed in the documentation, the same npx claude-mem install is used; the installer lets you choose from the agents it finds on your computer. For Claude Desktop and Copilot in VS Code, the documentation describes only the search tools.
!npm install -g claude-mem installs only the library; it doesn't set up the hooks or the service, so the plugin won't work.
Source: the README (Install) and the installation docs (System Requirements), December 2, 2026.
Which model takes notes in claude-mem? Providers and the effect on usage
A language model writes the observations and summaries. According to the configuration docs, the default provider is claude and the default model is haiku; CLAUDE_MEM_CLAUDE_AUTH_METHOD defaults to subscription, so if you choose nothing, the notes are written through your Claude Code login. The route this guide recommends is connecting Claude with your own Anthropic API key or choosing another provider below.
› "CLAUDE_MEM_CLAUDE_AUTH_METHOD": "api-key"The key itself goes into the ~/.claude-mem/.env file as an ANTHROPIC_API_KEY line. Requests on the key are billed per request; set a spending limit on the key's workspace in the Anthropic Console.
| Provider | What happens | Cost |
|---|---|---|
| Anthropic API key (recommended Claude route) | CLAUDE_MEM_CLAUDE_AUTH_METHOD: api-key and ANTHROPIC_API_KEY in ~/.claude-mem/.env | As much as API usage |
| OpenRouter or Gemini key | Notes are written on your own key, outside your Claude plan | That provider's price |
| Codex or an OpenAI-compatible endpoint | The observer runs on another agent or server | That account's price |
| claude-mem observer (cmem.ai) | A model hosted by the developer writes the notes | Paid (from $30/month) |
Fallback provider: if the provider you chose can't answer (spent allowance, outage), the work moves to Claude by default; if there's a Claude Code login on the computer, that login is used. If you don't want that, set CLAUDE_MEM_QUOTA_FALLBACK_PROVIDER to off; the work waits. Quota guard: when running on the subscription login, the observer stops once the five-hour window reaches 95% or the weekly window reaches 93%; the thresholds are adjustable. With an API key this guard doesn't apply.
Which to choose: if you'll use Claude, connect it with your own Anthropic API key; if you want a model other than Claude, choose an OpenRouter or Gemini key. Refreshing the My Work summary is a separate model task too, and on Claude Code it runs on your Claude subscription by default; if you don't want that, set CLAUDE_MEM_WORK_VIEW_AGENT to off.
Checked December 2, 2026. Source: the configuration docs (CLAUDE_MEM_PROVIDER, CLAUDE_MEM_MODEL, Quota Guard), the installation docs (Memory Provider Options), the Quota Fallback docs and cmem.ai/pricing. The default model and thresholds can change with versions.
Which agents does claude-mem work with?
| Claude CodeYes | The main target; requires 2.1.139 or later. |
|---|---|
| CodexYes | Installed with the installer. |
| CursorYes | Installed with the installer. |
| Gemini CLIYes | Installed with the installer. |
| OpenCodeYes | Installed with the installer. |
| Claude DesktopPartly | MCP search tools only. |
| Copilot in VS CodePartly | Search and saving notes by hand; sessions aren't saved automatically. |
The README says it works with Claude Code, Codex, Cursor, OpenCode and 11 more agents; the full list is on the documentation's integration pages. Computers: macOS, Linux and Windows.
Source: the README and the installation docs, December 2, 2026. The table lists only agents named in the documentation.
What does claude-mem access? Data, analytics and auto-update
- Every tool call the agent makes: files read and written, commands, outputs
- The prompts you write and the session summary
- Tool screenshots (on by default)
- The database, search index, settings and screenshot copies in the
~/.claude-memfolder - Adds hooks, MCP tools and skills to Claude Code
- Puts a context index at the start of a new session
- Activity goes to the model provider you choose so it can write notes
- If you turn on cloud sync, notes upload to cmem.ai (optional)
- Anonymous usage analytics are on by default; the installer asks once at the end
- If the setup page creates a sign-in link, a numbers-only usage summary goes to cmem.ai; your email only if you share it
| Setting or command | What it does |
|---|---|
npx claude-mem telemetry disable | Turns off anonymous usage analytics (DO_NOT_TRACK is honored too) |
CLAUDE_MEM_AUTO_UPDATE: false | Turns off the daily auto-update (~/.claude-mem/settings.json) |
CLAUDE_MEM_DISABLE_TOOL_HOOKS: 1 | Stops capturing tool calls; the session-start, prompt and session-end hooks keep working (env in ~/.claude/settings.json) |
CLAUDE_MEM_DISABLE_SUMMARY: 1 | Turns off the end-of-session summary; no model call is made at that step (env in ~/.claude/settings.json) |
CLAUDE_MEM_DISABLE_OBSERVATION: 1 | Turns off only the capture of tool calls |
/plugin | Disabling claude-mem from Claude Code's plugin menu stops everything completely |
<private> … </private> | Tagged content isn't written to memory |
!claude-mem updates itself daily to the release the developer promotes, which means its code changes without you looking; if you don't want that, turn off auto-update.
Source: the README and the telemetry, auto-update and troubleshooting docs, December 2, 2026. These are the developer's statements and not a security certificate.
Is claude-mem available in Turkish? Turkish note mode and interface
| Notes in TurkishYes | If you set CLAUDE_MEM_MODE to code--tr, observations and summaries are written in Turkish. |
|---|---|
| My WorkYes | Supports Turkish according to the documentation. |
| Viewer and setup screenNo | The documentation lists English, Chinese, Korean, French, Portuguese and Russian; Turkish isn't among them. |
The repository also has a Turkish translation of the README. The agent already understands requests you write in Turkish; the mode only decides which language the notes are kept in.
Is claude-mem free? Before you start: usage, cloud and license
!claude-mem opens separate model sessions in the background to write notes and the My Work summary; with the default setting they run through your Claude Code login. For Claude, choose your own API key (CLAUDE_MEM_CLAUDE_AUTH_METHOD=api-key + ANTHROPIC_API_KEY in ~/.claude-mem/.env) or another provider; turn off the fallback with CLAUDE_MEM_QUOTA_FALLBACK_PROVIDER=off and the My Work refresh with CLAUDE_MEM_WORK_VIEW_AGENT=off. To stop model calls completely, disable the plugin from the /plugin menu.
The software itself is free and open source (Apache 2.0). The paid parts are optional: Cloud Sync, which syncs notes across devices, and the hosted observer, where a model hosted by the developer writes the notes. Prices are in US dollars; there's no Turkish lira price.
| Option | Price | Note |
|---|---|---|
| Local memory | Free | The note-writing model's cost is separate |
| Cloud Sync | $12/month or $99/year | 30-day trial without a card on the monthly plan |
| Hosted observer | Pro $30/month, Heavy $70/month, CMEM Max $100/month | The pricing page says paid from day one |
Source: cmem.ai/pricing, the README and the installation docs, December 2, 2026. The README describes a 30-day trial for the observer on a page that asks for a payment method, while the pricing page says the hosted model is paid from day one; check the pricing page for current terms. This is not legal advice; read the LICENSE file for the license.
How do you update, turn off and uninstall claude-mem?
- Update:
npx claude-mem update. If auto-update is on, this already happens daily by itself. - Turn off for now: Disable the plugin from Claude Code's
/pluginmenu; it stays installed, and no hooks or model calls run. If you only want to cut it back partly, add"CLAUDE_MEM_DISABLE_TOOL_HOOKS": "1"(tool calls) and"CLAUDE_MEM_DISABLE_SUMMARY": "1"(end-of-session summary) underenvin~/.claude/settings.json. - Uninstall: Remove the plugin from Claude Code's
/pluginmenu, then delete the launcher withnpx claude-mem uninstall. The command doesn't touch the PATH line in your shell file; it prints the line to remove. - Data: Notes live in the
~/.claude-memfolder; whether the uninstall command deletes this folder isn't clear in the official sources, so delete the folder yourself if you want.
Source: the installation, troubleshooting and auto-update docs, December 2, 2026.
Frequently asked questions
Does claude-mem use up my Claude allowance?
With the default setting, a separate model session writes the notes and the My Work summary through your Claude Code login. Instead, you can use your own API key by setting CLAUDE_MEM_CLAUDE_AUTH_METHOD to api-key and putting ANTHROPIC_API_KEY in ~/.claude-mem/.env, or choose an OpenRouter or Gemini key. To stop it completely, disable the plugin from the /plugin menu.
Does claude-mem work with Codex?
Yes. According to the documentation, Codex, Cursor, Gemini CLI and OpenCode are installed with the same installer.
Can claude-mem keep notes in Turkish?
Yes. If you set CLAUDE_MEM_MODE to code--tr, observations and summaries are written in Turkish. The viewer interface isn't in Turkish.
How do you turn off or uninstall claude-mem?
To pause it, disable the plugin from Claude Code's /plugin menu; CLAUDE_MEM_DISABLE_TOOL_HOOKS=1 only stops capturing tool calls, and the end-of-session summary also needs CLAUDE_MEM_DISABLE_SUMMARY=1. To remove it completely, remove the plugin from Claude Code's /plugin menu and run npx claude-mem uninstall; delete the ~/.claude-mem folder yourself if you want.
Related guides
Sources
- claude-mem GitHub (README)
- claude-mem installation docs
- claude-mem configuration docs
- Quota Fallback
- Telemetry docs
- Auto-update docs
- claude-mem pricing
- GitHub releases
Not clear in the official sources: Whether the uninstall command deletes the ~/.claude-mem folder · whether the hosted observer has a trial (the README and the pricing page differ) · payment and tax terms in Turkey (prices are in US dollars only) · how much usage note-taking spends in a session (depends on the workload; the documentation gives no figure). Each is covered in the relevant section along with what you can do.



