# claude-mem

> Records what your coding agent does in each session and brings relevant context back into later sessions.

- Type: agent or tool
- Field: Coding & Development
- Repository: https://github.com/thedotmack/claude-mem
- GitHub stars: 120917
- Licence: Apache-2.0
- Language: TypeScript
- Last push: 2026-11-30
- Page: https://imutechz.in/agents/claude-mem

## What it is
Claude-Mem gives coding agents memory across sessions. A second agent runs beside the main one and takes notes while it works. The next session starts with a short index of what matters, and details are pulled in only when needed. It works with Claude Code, Codex, Cursor, OpenCode and other agents. Memory is stored in /.claude-mem on your machine, and cloud sync is opt-in.

## Features
- Captures what the agent does during sessions
- Injects a short index of past context into new sessions
- Memory search tools
- Supports Claude Code, Codex, Cursor, OpenCode and more
- Memory stored locally in /.claude-mem
- Choice of memory provider, such as your own OpenRouter or Gemini key

## Best for
- Avoiding re-explaining a project every session
- Carrying fixes and decisions between sessions
- Searching past agent work
- Using memory across several coding agents

## Pros
- Memory stays on your machine, with cloud sync opt-in
- Installer detects agents on your machine
- Can skip account sign-in with an explicit flag

## Cons
- Anonymous usage analytics are on by default
- Some agents get memory search only, and their sessions are not recorded

## Install
```
npx claude-mem install
/plugin marketplace add thedotmack/claude-mem
/plugin install claude-mem
```

## Usage
```
npx claude-mem install --ide opencode
```

Tags: agent-memory, claude-code, persistent-context, codex, cursor, plugin, context, sessions
