Asked & Cited

Buyer guide

Best long-term memory tools for AI agents in 2026: 9 options compared

Which memory layer fits which agent, with the pricing we could verify, the trade-off for each, and how often top guides name them.

Short answer: pick by integration boundary first. Mem0 is the usual choice for adding per-user memory to an agent you already have. Zep fits facts that change over time. Letta fits a new agent that should manage its own memory. If your agents already run on AWS or Google Cloud, the built-in AgentCore Memory or Memory Bank removes a vendor. Cognee, Supermemory, Hindsight and LangMem cover graph, retrieval, self-hosted and LangGraph cases.

How we chose. A tool is included if it (1) is a memory layer, framework or managed service whose main job is persisting what an AI agent learns across sessions, (2) has a vendor page or documentation we could fetch and read on 18 November 2026, and (3) appears in public buyer guides or has a large public developer base. Entries are ordered by how often top buyer guides name them and then by how directly they solve the general case, not by payment. Where we could not verify pricing, we say so instead of guessing. We do not accept payment for inclusion, position or description, and sponsorship never changes the editorial list. See our editorial policy.

What we counted in the top guides

We ran two buyer phrasings ("best long-term memory tools for AI agents 2026" and "Mem0 vs Zep vs Letta vs Supermemory") and read the text returned for 12 top pages. Mem0, Zep and Letta were named on all 12. Cognee was named on 9, Supermemory on 7, LangMem on 6 and Hindsight on 4. AWS AgentCore Memory and Google Memory Bank each appeared on 1. Counts are minimums, because some pages returned only part of their text.

One more number: 9 of the 12 pages are published by companies that sell a product in or next to this category. That is normal for software guides, and it is why we link every claim below to the vendor's own page. For how we run these counts, see how we measure AI visibility, and for the same method on another category see our AI agent testing and evaluation market map.

Comparison table

VendorBest forPricing modelNotable strengthNotable limitNamed onSource
Mem0Adding per-user memory to an agent you already builtFree tier (limits per month); Custom plans for graph memory, SSO, on-premApache 2.0 open source, most widely adopted (69,092 GitHub stars)Graph memory and Dream consolidation sit on the Custom plan12 of 12Source
ZepAgents where facts change and history matters (support, CRM, account work)Free 10,000 credits/month; Flex $125/month; Flex Plus $375/month; Enterprise customTemporal context graph, SOC 2 Type II and HIPAA BAA on Enterprise, VPC deploymentCredit-based billing; first paid step is $125/month12 of 12Source
LettaNew, long-running agents that manage and edit their own memoryFree (3 stateful agents); Pro $20/month; Teams Pro; Enterprise customMemory is a git-backed set of Markdown files the agent edits, every change inspectableIt is an agent runtime, so adopting it shapes your whole architecture12 of 12Source
CogneeTeams that want an open-source knowledge-graph memory they can run themselvesOpen source (free); cloud free tier with 1M tokens; $5 per extra workspace; Enterprise customGraph plus vector memory; connectors for Slack, Notion, Linear, Google Drive; named production case studiesBi-temporal memory and conflict resolution are listed on the Enterprise tier9 of 12Source
SupermemoryMemory plus document retrieval from one API, with a path to self-hostingFree $0 ($5 credits); Pro $19; Max $100; Scale $399; Enterprise customMemory graph per user plus retrieval over files and synced sources; published per-token rate cardSelf-hosted local build is capped at 10,000 documents and its server source is not public7 of 12Source
LangMemTeams already building on LangGraphLibrary; no hosted pricing on its docsWorks with LangGraph's storage layer or any storage through functional primitivesA toolkit rather than a managed service; you run and operate the storage6 of 12Source
HindsightAgents that should learn from past runs, with a free self-hosted engineMIT open source; Hindsight Cloud pricing not verifiedMIT license, 61,582 GitHub stars, multi-strategy retrieval and a wiki-style "pages" layerCreated October 2025, so the production track record is short4 of 12Source
Amazon Bedrock AgentCore MemoryAgents already running on AWSConsumption-based AgentCore pricing, no upfront commitment; memory rates not verifiedFully managed short-term and long-term memory inside the AWS account and IAM modelAWS-specific; the long-term memory rates were not on the pricing text we read1 of 12Source
Google Agent Platform Memory BankAgents already running on Google CloudGoogle Cloud billing; Memory Bank rates not verifiedMemory extraction, consolidation and background generation, isolated per identity scopeGoogle Cloud-specific; pricing not on the pages we read1 of 12Source

The nine tools

1. Mem0

Mem0 is a memory layer you call from your own agent code. It extracts facts from conversations and stores them per user, agent or run, so the next session can retrieve them instead of replaying the transcript. The code is open source under Apache 2.0 and the company also runs a managed platform.

On its pricing page today, Mem0 lists two plans. Free allows unlimited end users, with 10,000 adds and 1,000 retrievals a month for the first 30 days (model calls included), then 50,000 adds and 10,000 retrievals a month if you bring your own LLM key. Usage past those limits is billed with a monthly cap you set. Custom adds graph memory (entity linking), user profiles, Dream (memory consolidation), SSO, audit logs and on-prem deployment. Several comparison pages still list $19 and $249 tiers; the vendor page we read on 18 November 2026 does not, so confirm before you budget.

Fits: product teams that want working memory in an afternoon. Trade-off: it is built around per-user recall, so shared team memory or fact history over time takes extra design. Mem0 reports 94.4 on LongMemEval for its April 2026 algorithm in its own repository; treat vendor benchmark scores as claims to reproduce on your data.

Source: https://mem0.ai/pricing

2. Zep

Zep is a managed context and memory service built on Graphiti, an open-source graph engine from the same company. S&P Global Market Intelligence, quoted on Zep's homepage, describes it as tackling agent memory limits through a temporal context graph: facts carry time, so the system can tell a current fact from a superseded one.

Its pricing page lists a free prototyping tier of 10,000 credits a month, Flex at $125 a month (50,000 credits, then $25 per 10,000), Flex Plus at $375 a month (200,000 credits) and Enterprise with custom credits. Enterprise adds SOC 2 Type II, a HIPAA BAA and deployment in your own VPC. Self-serve plans include unlimited memories, retrieval and users, and billing is by credits.

Fits: teams whose agents answer questions like "what was this customer's plan last quarter". Trade-off: you buy a managed service, and credit use rises with how much data you ingest. If you want to self-host, the route is Graphiti itself, which means running the storage and the surrounding application layers yourself.

Source: https://www.getzep.com/pricing/

3. Letta

Letta (formerly MemGPT) treats memory as part of the agent itself. Its docs describe MemFS, a git repository that belongs to the agent and is projected onto disk as Markdown files. Files at the memory root load into the system prompt on every turn, while indexed subdirectories stay out of context until the agent needs them.

Pricing from the vendor page: Free is limited to 3 stateful agents and 5 MiB per memory repository, with your own API keys. Pro is $20 a month with $20 in credits, up to 20 stateful agents and 50 MiB per repository. Teams Pro adds shared agents and access control, and Enterprise is volume-priced with SSO.

Fits: builders starting a stateful agent from scratch who want to read and review what it remembers. Trade-off: the MemFS docs state there is no semantic or vector index by default, so agents search memory with file tools. It is a harness, not a drop-in API for an agent framework you already run.

Source: https://www.letta.com/pricing

4. Cognee

Cognee builds a knowledge graph from your documents and agent activity and updates recall weights from feedback. Its homepage shows 33.4k GitHub stars and case studies with Bayer and the University of Wyoming, and says the full engine can run locally or on your own stack for free.

Cloud pricing is per token processed with one workspace and 1M tokens in the free tier, then $5 per additional workspace on Standard. Standard adds data source integrations (Slack, Notion, Linear, Google Drive) and code indexing. The top tier lists bi-temporal memory, provenance on every answer, BYO cloud and an SLA. Cognee reports 0.79 on its BEAM 100K benchmark, which is a vendor figure.

Fits: teams with scattered company knowledge (tickets, docs, chat) that agents should recall. Trade-off: graph construction has an ingestion cost that grows with the data you load, and the temporal features sit at the top tier.

Source: https://www.cognee.ai/pricing

5. Supermemory

Supermemory sells a memory graph per user (profiles and fact hierarchies) alongside retrieval over documents, with connectors and plugins for Claude Code, Cursor and others. Its pricing page publishes a full rate card: memory ingestion at $0.005 per 1K tokens for plain text and $0.010 for rich content, and search at $0.005 per 1K queries.

Plans are credit based. Free includes $5 of credits a month, Pro is $19 a month with $20 of credits and 3 seats, Max is $100 with $130 of credits, and Scale is $399 with $600 of credits, SOC 2, a HIPAA BAA and a self-hosted option. Enterprise is custom.

Fits: apps where agents need both remembered user context and grounded document retrieval. Trade-off: its docs say the free self-hosted "local" binary is limited to 10,000 stored documents and its server source is not in the public repository, so full self-hosting means the Scale or Enterprise route.

Source: https://supermemory.ai/pricing

6. LangMem

LangMem is LangChain's memory library. Its docs describe tooling to extract important information from conversations, refine agent behavior through prompt updates and maintain long-term memory, with native integration for LangGraph storage and primitives usable with any storage system.

The repository shows steady commits (latest on 16 November 2026) from a small contributor group. No hosted tier or price is published on the docs we read.

Fits: LangGraph teams that want memory with no new vendor contract. Trade-off: you own the database, the scaling and the evaluation of what gets remembered.

Source: https://langchain-ai.github.io/langmem/

7. Hindsight

Hindsight is an open-source agent memory engine from Vectorize. Its docs describe consolidating raw conversation into observations and then into "pages", living documents the memory bank rewrites as knowledge changes. A command mounts those pages as ordinary Markdown files, so an editor or an agent's file tools can read them without an SDK.

The repository is MIT-licensed, was created on 30 October 2025 and shows 61,582 stars. A hosted Hindsight Cloud is linked from the repository; we could not verify its pricing, so we do not state one.

Fits: teams that want to self-host for free and inspect memory as files. Trade-off: it is the newest project in this list, and Vectorize also publishes comparison articles, so read its rankings as vendor content.

Source: https://github.com/vectorize-io/hindsight

8. Amazon Bedrock AgentCore Memory

AgentCore Memory is AWS's managed memory service. AWS documents two types: short-term memory for turn-by-turn context in a session, and long-term memory that automatically extracts preferences, facts and session summaries across sessions.

AWS states that AgentCore features are priced on consumption with no upfront commitments or minimum fees, and that each feature can be used independently. We did not find memory-specific rates in the text we read, so check the pricing page for current numbers.

Fits: teams whose agents, identity and data already live in AWS. Trade-off: you get the least portability here; moving memory out later means exporting from an AWS service.

Source: https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/memory.html

9. Google Agent Platform Memory Bank

Memory Bank is part of Google Cloud's Gemini Enterprise Agent Platform (formerly under Vertex AI). Google's docs describe memory generation with an LLM, consolidation of new information into existing memories, asynchronous background generation, customizable extraction topics and few-shot examples, and isolated collections of memories per scope such as user and agent.

The documentation page was last updated on 17 November 2026. We did not verify pricing, so we do not state any.

Fits: teams building on Google Cloud's agent runtime and sessions. Trade-off: like AgentCore, it ties memory to one cloud provider.

Source: https://docs.cloud.google.com/gemini-enterprise-agent-platform/scale/memory-bank

How to choose

FAQ

What is the best long-term memory tool for AI agents?

There is no single winner. Mem0 is the quickest way to add per-user memory to an existing agent, Zep suits facts that change over time, Letta suits new agents that manage their own memory, and AgentCore Memory or Memory Bank suit teams committed to AWS or Google Cloud.

Do I need a memory tool, or is a bigger context window enough?

Stuffing the full history into the prompt works for short histories but costs more tokens and latency as conversations grow. Memory tools store extracted facts and retrieve only what is relevant. Test both on your own traffic before you decide.

Can I self-host long-term agent memory for free?

Yes. Mem0 (Apache 2.0), Cognee, Hindsight (MIT) and LangMem are open source, and Graphiti is Zep's open-source engine. You pay for your own database and LLM calls instead of a subscription.

Should I trust the benchmark scores vendors publish?

Treat them as claims. Mem0, Cognee and Zep each report strong scores on benchmarks such as LongMemEval, LoCoMo or BEAM, and one comparison page we read cites an independent run that scored Mem0 much lower than Mem0 reports. Run a test on a week of your own conversations.

How current is this list?

Every vendor entry links the page we read on 18 November 2026. Pricing in this category is changing quickly: Mem0's page now lists Free and Custom plans while older comparisons still show $19 and $249 tiers. Re-check before you buy.

If you sell one of these tools

Buyers now ask AI assistants for this exact shortlist, and the answers draw on pages like the 12 we read. If you want to know how often assistants name your company for these questions, start with the free AI Shortlist Report. For a full measurement, see the $750 AI visibility audit (credited toward the GEO program if you start within 30 days) or the $2,799/month GEO program. We guarantee the measurement and the work, not what any assistant will say. Background reading: who gets named first across 16 categories.

See who AI recommends instead of you

Get the free AI Shortlist Report: 3 buyer prompts, who gets named, why, and one fix to make first.

Get the free report Book a call

Sources

Related reading

Want this measured for your own company? See GEO services and pricing, the $750 AI visibility audit, GEO for B2B SaaS, or the AI visibility audit checklist to run a basic check yourself.

Who AI recommends, weekly

One short email a week: which vendors AI assistants name for real buyer questions, what changed, and why. No spam, unsubscribe any time.