agentmemory
agentmemory is a persistent, searchable memory layer for AI coding agents. Instead of the sticky-note style memory files that Claude Code, Cursor, or Codex keep, agentmemory stores observations as structured, retrievable facts in a local SQLite database, and exposes them to any agent through MCP, hooks, or REST. The project reports 95.2% retrieval recall (R@5) on LongMemEval, claims 92% fewer tokens spent on context, ships 54 MCP tools and 12 auto hooks, and runs with zero external databases. The repository was created February 25, 2026, and shows about 27K stars.
Key Features
- Real retrieval over sticky notes: Observations are compressed into structured facts, deduplicated with SHA-256, privacy-filtered, embedded, and indexed in both BM25 and vector search.
- Works with every agent: Adapters for Claude Code, GitHub Copilot CLI, Cursor, Gemini CLI, Codex CLI, Hermes, OpenClaw, pi, and OpenCode, plus any MCP client.
- Local-first, zero external DBs: Everything runs on SQLite with no Qdrant, Postgres, or external API keys required.
- Benchmark-leading recall: 95.2% R@5 on LongMemEval, above Mem0 (68.5%) and Letta/MemGPT (83.2%) in the project's published benchmarks.
- 54 MCP tools and 12 auto hooks: The memory server on
:3111exposes tools for storing, retrieving, and reasoning over facts, and hooks auto-capture session context. - Native skills:
npx skills add rohitg00/agentmemory -yinstalls 17 skills so the agent knows when to reach for memory.
Use Cases
Who Should Use This Tool?
- Coding-agent users: Give Claude Code, Codex, or Cursor a long-term memory of decisions, preferences, and project facts.
- Teams running agents: Share one memory server across multiple agents so all tools see the same context.
- Privacy-conscious developers: Keep memory local on SQLite with no external database service.
Problems It Solves
- Re-explaining context: Agents no longer forget the project's conventions and your preferences between sessions.
- Memory bloat: Structured, compressed facts and dedup replace growing prompt-injected notes.
- Cross-tool silos: One server shared by Claude Code, Cursor, and Codex means context follows the work.
Pricing
agentmemory is open source under the Apache-2.0 license. npx @agentmemory/agentmemory runs the interactive setup and memory server locally at no cost. There is no hosted tier in the repository; you run it on your own machine.
Advantages & Unique Selling Points
- Benchmark-driven: Claims are tied to LongMemEval recall numbers and published comparisons rather than vague marketing.
- Zero external dependencies: No separate vector database or API service to provision and pay for.
- Broad agent coverage: One install wires the major coding agents, so the memory follows the work across tools.
Getting Started
Quick Start Guide
- Run
npx @agentmemory/agentmemory. - Pick the agents to wire (Claude Code, Cursor, Codex, Gemini CLI, OpenCode) and an LLM provider, or stay keyless.
- It seeds config, starts the memory server on
:3111, and offers a global install soagentmemoryworks anywhere. - Verify recall with
agentmemory demo --serve. - Add native skills so your agent knows when to reach for memory:
npx skills add rohitg00/agentmemory -y.
Frequently Asked Questions
Does it need a vector database?
No. Indexing uses BM25 plus vector search with local options and no external database.
Which agents are supported?
Claude Code, GitHub Copilot CLI, Cursor, Gemini CLI, Codex CLI, Hermes, OpenClaw, pi, OpenCode, and any MCP client via 20 adapters.
Is there a hosted version?
The project is local-first; there is no hosted tier in the repository.
How does it compare to Mem0?
agentmemory's published LongMemEval recall (95.2%) is higher than Mem0's (68.5%) in the project's benchmarks, and it runs entirely local with no external databases.
Alternatives
- Letta: MemGPT-style stateful agent memory runtime with a cloud option.
- LangGraph: a graph-based agent framework when you need orchestration on top of memory.
- Mem0: hosted and self-hosted agent memory with vector search.
Tips & Best Practices
- Verify the benchmark claims on your own data: LongMemEval recall is a useful signal, but run your own recall test on your codebase.
- Wire multiple agents: The value compounds when Claude Code, Cursor, and Codex share one memory server.
- Review privacy filtering: Confirm the privacy filter settings match your data handling needs before pointing production work at it.
Conclusion
agentmemory turns an agent's forgetfulness into a solved problem with a local, searchable memory that any major coding agent can use. If you are tired of re-explaining context and paying for memory infrastructure, it is the fastest local option to get retrieval-grade memory behind Claude Code, Cursor, or Codex.
Comments
No comments yet. Be the first to comment!
Related Tools
Cumora
cumora.ai
Cross-platform team chat where AI agents are first-class teammates. Cloud pods or BYOA Claude Code/Codex. Invite-only preview is free.
Hermes Agent
hermes-agent.nousresearch.com
Self-improving open-source AI agent by Nous Research with a built-in learning loop, multi-channel gateway, and model-agnostic runtime. MIT licensed.
FastClaw
fastclaw.ai
Lightweight AI Agent runtime and Multi-Agent Framework written in Go. An Agent Factory that creates, manages, and runs AI agents with personalities (SOUL.md), memory, skills, and tools — single binary, any LLM, cloud-ready.
Related Insights

Anthropic Subagent: The Multi-Agent Architecture Revolution
Deep dive into Anthropic multi-agent architecture design. Learn how Subagents break through context window limitations, achieve 90% performance improvements, and real-world applications in Claude Code.
Stop Cramming AI Assistants into Chat Boxes: Clawdbot Picked the Wrong Battlefield
Clawdbot is convenient, but putting it inside Slack or Discord was the wrong design choice from day one. Chat tools are not for operating tasks, and AI isn't for chatting.

Grok Bot and Hermes Bot: one person finally gets a think tank and a secretariat
Grok Bot now ships with Cursor Pro+. Hermes Bot runs on a VPS. They are not smarter chat boxes. The think tank advises, the secretariat executes, and you still make the call.