All 30 Dependencies

Every package claude-mem depends on, ranked by repo health score.

Claude-mem is an open-source persistent memory engine built specifically for AI coding agents like Claude Code, Codex, Gemini CLI, and OpenCode. It solves one of the most frustrating limitations of session-based AI assistants: the fact that every new session starts cold, with no knowledge of what was done before. Claude-mem intercepts the agent lifecycle through hooks, records every tool call and observation, then uses a background AI worker to compress that raw activity into structured, searchable memory.

The system is built around a five-hook lifecycle — SessionStart, UserPromptSubmit, PostToolUse, Stop, and SessionEnd — that work invisibly alongside your existing workflow. A background Bun worker service handles compression, storage in SQLite, and optional semantic indexing via ChromaDB. At the start of each new session, the most relevant past observations are retrieved using hybrid full-text and vector search, then injected into the agent's context window via progressive disclosure to keep token costs under control.

Beyond passive memory, claude-mem ships with a full MCP server exposing search tools directly to the agent, a real-time web viewer UI at localhost:37777, and a growing library of skills for the Claude Code plugin marketplace. The installation is a single npx command, and the plugin is also available through the Claude Code marketplace. Support spans multiple AI runtimes, with adapters for Cursor, Gemini CLI, OpenCode, and OpenClaw gateway deployments.

With over 83,000 stars and roughly 175 commits per month, claude-mem has emerged as the de facto memory layer for AI-assisted development workflows. It is released under the Apache 2.0 license, with the open-source core covering the memory engine, server, SDK, MCP tools, and all adapters.

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search