What is A-MEM?
A-MEM (Agentic Memory) is a research memory system for LLM agents that stores each piece of information as a structured note and links related notes into an evolving network, inspired by the Zettelkasten method. It sits in the Agent Memory category of the Agents & Automation tools and is open-source, written in Python and licensed MIT.
Overview
A-MEM (Agentic Memory) is a research memory system for LLM agents that stores each piece of information as a structured note and links related notes into an evolving network, inspired by the Zettelkasten method. Instead of plain storage and retrieval, it generates tags, context, and keywords for new memories and connects them to existing ones.
It is aimed at developers and researchers building agents that need to reuse past experiences rather than start fresh on every task. It fits the memory-frameworks category by sitting between your agent and a vector store, handling organization, linking, and evolution on top of basic save and search.
A-MEM uses ChromaDB for vector storage and semantic search, and supports OpenAI or local Ollama models as the LLM backend. Note that this repository is meant for building agents; the authors point to a separate repo to reproduce the paper's published results.
What it does
- Dynamic memory organization based on Zettelkasten principles, building an interconnected note network
- Semantic indexing, linking, and similarity search backed by ChromaDB vector storage
- Automatic note generation with structured attributes: tags, context, and extracted keywords
- Continuous memory evolution that updates metadata and creates links when memories are added or changed
- Pluggable LLM backends, supporting OpenAI (GPT-4, GPT-3.5) and Ollama for local deployment
- Standard CRUD operations: add, read, search, update, and delete notes by ID
Getting started
A-MEM is installed from source. Clone the repo, install the package into a virtual environment, then initialize the memory system in Python.
Clone the repository
Get the source from GitHub and move into the project directory.
git clone https://github.com/agiresearch/A-mem.git
cd A-memCreate a virtual environment and install
A virtual environment is recommended. Install the package with pip (use -e for editable/development mode).
python -m venv .venv
source .venv/bin/activate # On Windows, use: .venv\Scripts\activate
pip install .Initialize the memory system and add a note
Create an AgenticMemorySystem with an embedding model and an LLM backend, then add and search memories.
from agentic_memory.memory_system import AgenticMemorySystem
memory_system = AgenticMemorySystem(
model_name='all-MiniLM-L6-v2', # Embedding model for ChromaDB
llm_backend="openai", # LLM backend (openai/ollama)
llm_model="gpt-4o-mini" # LLM model name
)
memory_id = memory_system.add_note("Deep learning neural networks")
results = memory_system.search_agentic("neural networks", k=5)
for result in results:
print(result['id'], result['content'])Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Give an LLM agent long-term memory so it can reuse past tasks and conversations instead of starting fresh each time
- Build a self-organizing knowledge base where related notes are automatically tagged and linked
- Run agent memory locally with Ollama models and ChromaDB when you want to avoid sending data to a hosted API
- Experiment with or extend the A-MEM research framework for studies on memory organization in LLM agents
How A-MEM compares
A-MEM alongside other open-source agent memory tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Claude-Mem | ★ 121k | Persistent memory layer for coding agents: it captures what an agent does during a session, compresses it into semantic summaries, and injects the relevant parts back into later sessions. |
| Mem0 | ★ 69.7k | A memory layer that you add to existing LLM agents to extract, store, and recall user facts and preferences across sessions using vector, graph, and key-value backends. |
| Hindsight | ★ 64.3k | An agent memory server that stores facts and experiences, consolidates them into observations and mental models, and serves them back through retain, recall, and reflect operations. |
| MemPalace | ★ 60.8k | Local-first agent memory that stores conversations verbatim instead of summarising them, with a structured palace index, pluggable vector backends and an MCP server. |
| OpenViking | ★ 43.1k | A context database that stores an agent's memories, resources, and skills as one browsable viking:// filesystem with three-tier (abstract/overview/details) on-demand loading. |
| Cognee | ★ 33.7k | A graph-native memory engine that turns raw documents and conversations into a queryable knowledge graph for agents that need to build lasting knowledge. |
| Graphiti | ★ 33.2k | A library that builds a temporal knowledge graph from an agent's conversations and data so facts can be tracked and queried as they change over time. |
| A-MEM | ★ 1.2k | Agentic memory that lets LLM agents organize and link their notes Zettelkasten-style |

