Official SDK

AWS Bedrock memory

A runnable reference architecture: a memory-augmented Converse loop plus the first Bedrock Agents action-group memory integration from any vendor.

Overview

bedrock-memorysync ships the two patterns AWS teams actually deploy. MemoryConverseLoop wraps any bedrock-runtime client: before each converse call the user’s relevant memories are recalled under a hard 1.2s fail-open budget and injected as a system block, and after the reply the user’s message is sent to fact extraction with a deterministic idempotency seed (the reply is not stored) — memory can never delay or break the model call. The Bedrock Agents action group (Lambda + importable function schema + SAM template) gives any agent four curated memory functions — remember, recall_context, search_memories, forget_memory — where remember reports what happened (sent to fact extraction, already sent, or nothing to remember) rather than a memory id, with a multi-tenant identity ladder (sessionAttributes → parameter → sessionId), structured FAILURE response states instead of raw Lambda errors, and deliberately NO delete-everything function. No memory vendor ships a Bedrock Agents action-group integration — Mem0’s Bedrock story is an OSS sidecar requiring self-hosted Mem0 plus an OpenSearch domain you operate; Zep, Supermemory, and Letta have nothing. AWS’s own AgentCore Memory is the native alternative — at the cost of total AWS lock-in, black-box extraction strategies, and no cross-platform recall. MemorySync is one API key, and the memories flow to and from every other surface.

Setup status and requirements

Supported version
bedrock-memorysync 1.1.0 (PyPI)
Last setup review
2026-09-01
Permissions
A MemorySync API key with read and write scopes; AWS credentials for your own Bedrock access.
Limits
Python 3.10+; boto3 1.34+ for the Converse API. The action-group Lambda runs on python3.12.
Open setup documentation →

Capabilities

Quick Start

import boto3
from bedrock_memorysync import MemoryConverseLoop
loop = MemoryConverseLoop(
bedrock_client=boto3.client("bedrock-runtime"),
model_id="anthropic.claude-3-haiku-20240307-v1:0",
user_id="customer-42",
system_prompt="You are a helpful travel assistant.",
)
loop.chat("I always prefer window seats")
# a new session, days later:
loop.new_session("support-2")
loop.chat("which seat should I book for Oslo?") # remembers

Use Cases

Bedrock agents that remember users across sessions

Enterprise Converse-API apps adding memory without new infrastructure

Escaping AgentCore lock-in while staying on Bedrock

Guides and related pages

Explore More

Add long-term memory to AWS Bedrock

Start free with 10,000 add requests a month and no credit card. Memory is stored per end user and comes back in every later session.