ZERO EXTERNAL DATABASES · v0.9.29

agentmemory

Give your coding agent a memory that survives the session. 95.2% retrieval recall on LongMemEval-S with about 92% fewer input tokens than full-context replay, all on your own machine.

95.2%
RETRIEVAL R@5 · LONGMEMEVAL-S
92%
FEWER INPUT TOKENS PER SESSION
54
MCP TOOLS
130
REST ENDPOINTS
0
EXTERNAL DATABASES
1655
TESTS PASSING
The stack

Three layers.
No framework tax.

Built on the iii engine: every memory operation is a worker, a function, or a trigger. No external databases, queues, or vector stores. The entire runtime is one process.

01

Hooks

12 auto-capture hooks piped into every coding agent. Every tool call, every prompt, every stop becomes a compressed observation, stamped with its origin and agent.

02

Recall

Hybrid retrieval on the primary recall path: BM25, vector, and knowledge graph scores ranked together, reranked on device. Superseded versions stay out of results.

03

Consolidate

With an LLM provider key, consolidation runs on session stop: raw observations compress into semantic memories, duplicates merge, stale rows decay, audit rows record it all.

What's inside

Twelve things you did not want to build.

agentmemory is not a library or a vector store. It is a complete memory runtime: capture, recall, consolidate, observe, federate.

Command center

Two UIs.
One memory runtime.

agentmemory ships a real-time viewer for your memories and an engine-level console for every function, trigger, and OTel span. Both are first-class, installed inline by the CLI on first run.

Ship-with viewer · port 3113

The agentmemory server auto-starts a real-time viewer on port 3113. No install, no config. Tabs refresh live as hooks fire, and any past session replays in place.

  • LIVE OBSERVATION STREAM · EVERY HOOK AS IT FIRES
  • SESSION EXPLORER · REPLAY ANY PAST SESSION
  • MEMORY BROWSER · FILTER BY PROJECT / TYPE / CONFIDENCE
  • KNOWLEDGE GRAPH VISUALIZATION · FORCE-DIRECTED
  • HEALTH DASHBOARD · HEAP / RSS / EVENT LOOP LAG
$ open http://localhost:3113
Ship-with viewer · port 3113
agentmemory viewer live demo
Live

Memory that types back.

agentmemory@localhost:3111
IDLE
VS.

Vs. the field.

Only the agentmemory number is ours, measured on LongMemEval-S and reproducible from the repo. Competitor figures are their own published claims on their own benchmarks — different datasets, shown for ballpark. Ship what you want; we just picked the one with receipts.

AGENTMEMORYMEM0LETTAZEP / GRAPHITI
RETRIEVAL95.2% (LongMemEval-S)68.5% (LoCoMo)83.2% (LoCoMo)63.8% (LongMemEval)
EXTERNAL DEPS0Qdrant / pgvectorPostgres + vectorNeo4j
REST ENDPOINTS130
MCP TOOLS54
AUTO-CAPTURE HOOKS12Manual add()Agent self-edits
NATIVE AGENT PLUGINS6
OPEN SOURCEYes (Apache-2.0)YesYesYes
Works with

Seven native plugins.
Rest MCP-native.

Native plugins for Claude Code, Copilot CLI, Codex CLI, OpenClaw, Hermes, pi, and OpenHuman. OpenCode gets a plugin that attributes each session to its own project. Every other MCP client gets it for free. `agentmemory connect <agent>` auto-wires them all.

Ship it

One install.
Any agent.

Runs on your machine. Data stays local. Capture and recall need no LLM key; add one for Anthropic, OpenAI, Gemini, MiniMax, or OpenRouter to activate consolidation, graph extraction, and LLM compression.

1. INSTALL ONCE
2. START THE MEMORY SERVER
3. RUN THE DEMO
ZERO-INSTALL PATH: NPX
4. WIRE UP ANY AGENT

One MCP JSON fits almost everything. Pick your agent on the left, or paste the universal config on the right.

AGENTS
CursorOPENVS CodeOPEN

Cursor / VS Code are one-click via deeplink. Others copy the right snippet directly to your clipboard.

UNIVERSAL MCP JSONWORKS FOR CLAUDE DESKTOP · CURSOR · CLINE · ROO · WINDSURF · GEMINI · WARP · DROID · KIRO · ANTIGRAVITY · QWEN · MERGE INTO EXISTING mcpServers
{
  "mcpServers": {
    "agentmemory": {
      "command": "npx",
      "args": ["-y", "@agentmemory/mcp"],
      "env": {
        "AGENTMEMORY_URL": "http://localhost:3111"
      }
    }
  }
}