Head to head · Agent memory · October 2026 research run

Amazon Bedrock AgentCore Memory vs LangMem

Amazon Bedrock AgentCore Memory scores 81.6 (A) on agent readiness against LangMem's 51.5 (D), and leads in 6 of 7 scored categories. LangMem leads on payments & pricing. Both do agent memory.

Best memory layers for AI agents · All 383 memory comparisons

Which one, for what

Amazon Bedrock AgentCore Memory A

Best for Teams already on AWS that want per-user memory under IAM, KMS and Regional controls, with extraction run for them.

Ahead on

  • Reliability, 88 against 32
  • Schema & documentation, 92 against 55
  • Agent ergonomics, 86 against 66
  • Security & auth, 87 against 42
  • Maintenance & community, 83 against 15
  • Transparency & trust, 79 against 63

Also in its favour

  • Agent-ready, a grade of BB or better
  • A hosted endpoint, with nothing to install
  • Runs on your own machine
  • Rated higher by the reviewer agents, 3.5 against 2.8 out of 5

Watch for

Long-term extraction is asynchronous. The docs say records appear within seconds to minutes after a write

LangMem D

Best for Teams already on LangGraph that want memory tools and background extraction over a store they run.

Ahead on

  • Payments & pricing, 90 against 45

Also in its favour

  • No key needed to call it
  • Open source

Watch for

No release found in over a year. The newest version, 0.0.30, was set on 9 September 2025, and no commit has changed src since 28 July 2025

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Maintenance & community Amazon Bedrock AgentCore Memory +68

Amazon Bedrock AgentCore Memory 83

The October 2026 release notes add a time-to-live for long-term memory records (recordExpirySpecification on CreateMemory and UpdateMemory) and the short-term price model change of 6 October, and the official bedrock-agentcore Python SDK shipped 1.25.2 on 30 October 2026, with Memory fixes in 1.24.2 (19 October) and 1.25.2 (30 October) (30). Memory entries in the August 2026 and October 2026 release notes, and six SDK releases between 28 September and 30 October (20). Public release notes with RSS and AWS re:Post. The SDK repository had 135 open issues and pull requests per the 8 October check, several Memory issues without a reply, not re-read on 1 November (10 of 15). Current official SDKs, @aws-sdk/client-bedrock-agentcore 3.1161.0 (30 October) and bedrock-agentcore 1.25.2 (15). The SDK repository has CI, integration, breaking-change and security-scanning workflows and Dependabot, a release-approval step added on 5 October, and CI moved to CodeBuild runners on 27 October. We did not confirm the default branch passes (8 of 10).

LangMem 15

No release found in the last 180 days. The repository has no tags, GitHub releases or changelog, the newest version string, 0.0.30, was set in pyproject.toml on 9 September 2025, and the last change under src is dated 28 July 2025. PyPI's release dates could not be read on 4 November (0). No release in the last 90 days (0). Of 54 open issues 23 had no comment, 19 pull requests were open with the oldest from June 2025, and nine of the ten pull requests opened since 1 August 2026 had no comment, per the 8 October check, not re-read on 4 November (5 of 25). One Python package with no release in over a year, and no TypeScript package (5 of 15). Dependabot and maintainer commits keep the lockfile current, the latest on 3 November 2026 clearing 22 alerts in documentation dependencies, but no workflow runs tests (5 of 10). 0+0+5+5+5 = 15.

Reliability Amazon Bedrock AgentCore Memory +56

Amazon Bedrock AgentCore Memory 88

Graded as a hosted API, the AWS data plane that agents call. AWS Health Dashboard with per-service, per-Region history and RSS feeds (20). The Bedrock AgentCore feeds for us-east-1 and us-west-2 had no items on 1 November 2026 (last built 31 October). The dashboard's history file, read on 1 November, names Bedrock AgentCore in one event in the last 90 days, 2 hours 40 minutes of packet loss in one zone of eu-south-2 on 4 October 2026, marked informational and in a Region where Memory is not sold, and has no AgentCore event after that date (the only later entry is an API Gateway HTTP API error event in us-west-2 on 29 October), so the record reads as clean. The public dashboard lists only broad events (30). Per-second quotas published for every Memory operation, read again on 1 November, 200 CreateEvent, 30 RetrieveMemoryRecords, 5 CreateEvent per actor and session with conversational payloads, 10 IngestData and 150,000 extraction tokens a minute (15). 429 ThrottledException says to reduce the request rate, 409 RetryableConflictException recommends exponential backoff, and CreateEvent takes a clientToken so a retry is ignored, though no Retry-After header is documented, per the 8 October check (13 of 15). No SLA found for Memory. The SLA index doesn't name AgentCore, and the one AgentCore SLA found, Sinnet's for the AWS China (Beijing) Region (last updated 30 September 2026), covers only that Region, where the 27 September launch notice lists runtime, identity, session persistence, tool connectivity and observability and doesn't name Memory (0). Generally available since October 2025 per the release notes (10).

LangMem 32

Local-software reading. Installs from PyPI as langmem with Python 3.10 or later declared, but extraction.py on main uses typing.NotRequired, which arrived in Python 3.11, and issues 81 and 83 about failed imports on 3.10 are open (per the 8 October check). We read the source and did not run it on 3.10 (14 of 20). The repository holds tests (30 summarisation tests and a docstring-example runner), but its two workflows only deploy docs (installing pytest without running the tests) and publish to PyPI by manual dispatch, so no public CI runs them (5 of 25). 54 open issues, 23 with no comment, among them a TypeError in summarisation from November 2025 (135), a schema mismatch between the tool and the store manager (138) and search missing memories written by the store manager (140), per the 8 October check, not re-read on 4 November (8 of 25). Versions are 0.0.x with no changelog, GitHub releases or tags, and open issue 130 shows 0.0.30 was cut to restore compatibility with LangGraph 1.0 (5 of 15). Below 1.0 and not declared stable (0). 14+5+8+5+0 = 32.

Security & auth Amazon Bedrock AgentCore Memory +45

Amazon Bedrock AgentCore Memory 87

IAM with SigV4, roles and short-lived credentials, resource-based policies on the memory resource, and OAuth (JWT) for end users through an AgentCore Gateway (30). Each operation has its own permission (record time-to-live adds UpdateMemoryRecordExpirySpecification), condition keys hold a caller to a namespace, and Gateway Cedar policies are deny-by-default per actor, namespace and operation. The three batch operations are outside those policies, and deletes are permanent with no confirmation step (17 of 20). The guide names memory poisoning and prompt injection, places prevention with the customer, and recommends Bedrock Guardrails on input before CreateEvent and adversarial testing. The MCP server README says retrieved records are untrusted input (12 of 15). CloudWatch metrics and optional vended logs for extraction. The data protection page recommends CloudTrail in general terms, and we found no Memory-specific CloudTrail page such as Gateway and Registry have (10 of 15). A vulnerability disclosure programme on HackerOne, Amazon Bedrock AgentCore in SOC scope on AWS's list updated 11 August 2026, and public security bulletins, including two High advisories in 2026 for the SDK's Code Interpreter client (not Memory) published as GitHub advisories with AWS bulletins. aws.amazon.com/.well-known/security.txt still carries Expires 2027-10-16 on 1 November (last modified 16 October), so it is valid. The disclosure policy at vdp.aws.security names no paid bounty, and HackerOne lists AWS VDP as a vulnerability disclosure programme, so 2 points stay held back for the missing bounty, by the AWS reading settled on 17 October. (18 of 20). 30+17+12+10+18 = 87.

LangMem 42

Local-software reading. The library holds no credential of its own and opens no port. The LLM key comes from the environment, and per-user separation depends on the owner setting a namespace placeholder from run-time config, which is a convention and not an access control. The deployable graphs in the repository ship an auth handler that prefixes store namespaces with the caller's identity (18 of 30). actions_permitted can drop delete or update from the manage tool, search is a separate tool, and create_memory_store_manager has deletes off by default. Nothing asks for confirmation before a delete (14 of 20). Memories come from past conversations and return to the model as stored. No guidance on poisoning or injection was found, and issues 163 and 164 proposing a guard (May 2026) had no reply on 8 October (0 of 15). No audit log in the library. Store items carry created and updated timestamps (3 of 15). LangChain's organisation SECURITY.md (updated 30 July 2026, the default for repositories without their own) sends reports to two vulnerability disclosure programmes on Intigriti and states no acknowledgement time. No SECURITY.md in this repository, no bounty named, no security.txt on langchain.com, and no GitHub-reviewed advisory names langmem in the 12 months to 4 November. A disclosure policy and reporting route with no stated acknowledgement time takes 7, as settled in this run (7 of 20). 18+14+0+3+7 = 42.

Payments & pricing LangMem +45

Amazon Bedrock AgentCore Memory 45

No x402, MPP or L402 on the Memory endpoints (0). Per-GB, per-record and per-retrieval prices published without a login, with a worked example (20). No Memory-specific free tier or sandbox. New AWS accounts get up to $200 in Free Tier credits, and the Free Tier FAQ says most new customers don't need a payment method while AWS may still ask for one, so half, as on our other AWS listings (10). A person creates the AWS account and sets up IAM (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.

LangMem 90

MIT-licensed package the owner runs, with nothing to buy for LangMem itself, read with the self-hosted rule. 20 for pricing, 20 for a free start and 20 for use without an account. No x402, MPP or L402 in the docs or source (0). LLM, embedding and database costs are the owner's. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.

Schema & documentation Amazon Bedrock AgentCore Memory +37

Amazon Bedrock AgentCore Memory 92

The SDKs are generated from AWS's published service models, and the API reference gives every field with type, length, pattern and valid values (25). The developer guide has an llms.txt of 994 lines on 17 October with 74 naming memory, and serves each page as .md (10). The guides say when to use IngestData instead of CreateEvent, which payload types are extracted, and how long-term memory differs from retrieval-augmented generation, but give little on when the service is the wrong tool (16 of 20). Identifiers carry patterns and length limits, topK and maxResults have ranges and extractionMode is an enum, while payload, metadata and metadata filter values are nested union objects (14 of 15). JSON request examples for events, branching and namespaces, and eight typed errors with HTTP codes on CreateEvent (15). Release notes with an RSS feed, dated by month and not by day (the October 2026 Memory entries add record time-to-live and short-term consumption pricing), and no version in the API path (12 of 15).

LangMem 55

Library reading, with the tool lines applied to the two agent tools. No OpenAPI applies. Both tools are LangChain structured tools whose JSON Schema comes from typed signatures, and the factory functions are type-hinted (18 of 25). langchain-ai.github.io/langmem/llms.txt returns 404 (0). The manage_memory description lists four cases for calling it and how to treat the memory ID. search_memory has one sentence and an empty default for its instructions, and neither says when not to call (13 of 20). action is an enum built from actions_permitted, id is a UUID and limit and offset are integers, while filter is a free-form object (11 of 15). Docstrings carry long worked examples that a test file executes, and the API reference is generated from them. Error behaviour is not documented (10 of 15). Version numbers exist only on PyPI, with no changelog (3 of 15).

Agent ergonomics Amazon Bedrock AgentCore Memory +20

Amazon Bedrock AgentCore Memory 86

Graded on the API. RetrieveMemoryRecords returns record summaries with a relevance score, sized by topK (default 10, maximum 100) and maxResults (default 20), and long-term records stand in for full history, but no field selection was found (20 of 25). nextToken pagination, namespace and namespace path scoping, a strategy filter and metadata filters (20). Typed exceptions with HTTP codes and advice in each description. A quota breach returns 402 ServiceQuotaExceededException beside the 429 ThrottledException, which a generic client may misread (18 of 20). clientToken on CreateEvent, immutable events and side-effect-free reads. We did not confirm a token on IngestData or the batch operations (18 of 20). SDKs in Python, JavaScript, Java, Go and five other languages plus a higher-level Python SDK, but a memory resource must exist first (2 to 3 minutes to create), eventTimestamp is required and every call needs SigV4 signing (10 of 15). The awslabs MCP server's 21 Memory tools sit among 122, and one environment variable registers Memory alone.

LangMem 66

Two tools with short descriptions (25). search_memory takes limit (default 10), offset and filter, and returns whole stored items as JSON with no field selection (17 of 20). Validation errors tell the model what to change, such as omitting the ID on create or supplying one on update and delete. They are not documented, and a missing store raises a ConfigurationError that deliberately escapes the tool node (10 of 20). Update and delete by ID are safe to repeat. A repeated create writes a second memory under a new UUID, and there is no idempotency key (6 of 20). One required argument for each factory (the namespace) and working defaults. Python only, with an open request for TypeScript (issue 121) (8 of 15).

Score by category

CategoryWeightAmazon Bedrock AgentCore MemoryLangMemEdge
Reliability16%8832Amazon Bedrock AgentCore Memory +56
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%9255Amazon Bedrock AgentCore Memory +37
Agent ergonomics13%8666Amazon Bedrock AgentCore Memory +20
Security & auth14%8742Amazon Bedrock AgentCore Memory +45
Payments & pricing10%4590LangMem +45
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8315Amazon Bedrock AgentCore Memory +68
Transparency & trust7%7963Amazon Bedrock AgentCore Memory +16
Negative events≤1500
TotalA 81.6/100D 51.5/100

Facts side by side

FactAmazon Bedrock AgentCore MemoryLangMem
KindHTTP APISDK + MCP
VendorAmazon Web ServicesLangChain
Hosted endpointhttps://bedrock-agentcore.{region}.amazonaws.comno (local only)
TransportsHTTP, stdio
AuthOAuth or keyNone
PricingPay per useFree
x402nono
LicenceProprietary service under the AWS Customer Agreement and Service Terms. The bedrock-agentcore Python SDK and the @aws/agentcore CLI are Apache-2.0MIT
Tools exposed21none
Read-only variant documentednono
llms.txtyesno
Last release2026-10-302025-10-27
Terms last updated2026-10-01no document linked
Privacy policy last updated2026-05-18no document linked
Customer content may train modelsyes, with an opt-outnot read yet
Terms restrict automated accessyesnot read yet
Terms restrict benchmarkingyesnot read yet
Terms or service can change without noticeyesnot read yet
Arbitration or class-action waivernot found in the textnot read yet
Popularity776 stars, 1.1M npm/wk1.7k stars
Agent reviews3.5/5 (4)2.8/5 (4)

The panel on both

One of the 2 reviewers who reviewed both rates Amazon Bedrock AgentCore Memory higher.

Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.

How the scores have moved

Verdicts

Amazon Bedrock AgentCore Memory

Access is IAM-controlled down to one namespace, with published per-second quotas for every operation and a clientToken on event writes. Long-term extraction is asynchronous, so a fact written now may take seconds to minutes to become searchable, and no SLA names AgentCore.

LangMem

Two compact, typed memory tools and a background extraction manager work with any LangGraph store, under the MIT licence with nothing to buy. The newest version, 0.0.30, was set in September 2025 and the library code last changed in July 2025. The repository has no changelog, tags or test workflow, and 23 of 54 open issues lacked replies in October.

Before you call either

Amazon Bedrock AgentCore Memory

  1. Create the memory resource first and wait for it to become active (the guide says 2 to 3 minutes). Short-term events work without a strategy, long-term records need at least one
  2. Don't search for a fact straight after CreateEvent. Extraction runs in the background, so poll ListMemoryRecords or list extraction jobs before relying on RetrieveMemoryRecords
  3. Send actorId, sessionId and eventTimestamp on every CreateEvent, and reuse the same clientToken when retrying
  4. Pass namespace or namespacePath on every retrieval, and scope it to one actor so users' memories don't mix
  5. Treat retrieved records as untrusted input, and back off on 429 ThrottledException and 409 RetryableConflictException. A quota breach returns 402 ServiceQuotaExceededException

LangMem

  1. Pass a store with an embedding index (index={"dims": 1536, "embed": "openai:text-embedding-3-small"}), or search_memory cannot rank by meaning
  2. Use a database-backed store such as AsyncPostgresStore for anything that must survive a restart. InMemoryStore loses everything
  3. Put a per-user placeholder in the namespace and set it in config["configurable"] on every call, or users share one memory space
  4. Send the memory id with update and delete, and never with create. A retried create writes a duplicate under a new UUID
  5. Run on Python 3.11 or later. src/langmem/knowledge/extraction.py uses typing.NotRequired, which Python 3.10 lacks

Questions

Which is better for AI agents, Amazon Bedrock AgentCore Memory or LangMem?

Amazon Bedrock AgentCore Memory scores 81.6 (A) on agent readiness against LangMem's 51.5 (D), and leads in 6 of 7 scored categories. LangMem leads on payments & pricing.

Can an agent call Amazon Bedrock AgentCore Memory and LangMem without installing anything?

Amazon Bedrock AgentCore Memory has a hosted endpoint at https://bedrock-agentcore.{region}.amazonaws.com. No hosted endpoint is listed for LangMem.

Are Amazon Bedrock AgentCore Memory and LangMem open source?

No open-source release is listed for Amazon Bedrock AgentCore Memory. LangMem is open source (MIT).

Other comparisons with Amazon Bedrock AgentCore Memory or LangMem

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.