amazon-opensearch-memory
Amazon OpenSearch Memory
Overview
Amazon OpenSearch Memory gives agents durable memory. You create a space, declare the memory strategies that decide what is extracted, write conversation turns as events, and search the memories the service extracts from them asynchronously.
All commands use the AWS CLI service opensearchmemory (boto3 client opensearchmemory): each API operation is a hyphenated lowercase command, such as aws opensearchmemory create-space, and accepts --cli-input-json file://request.json. Endpoints are https://osm.<region>.api.aws for spaces and https://<space-id>.osm.<region>.on.aws for events and memories; the SDK picks them automatically. The AWS MCP server is recommended for sandboxed execution and audit logging. If its tools report that the OpenSearch Memory service or an operation is not supported, run the same AWS CLI commands in a local shell instead. Do not substitute Amazon Bedrock AgentCore Memory or OpenSearch Serverless APIs: they are different services.
Prerequisites
- An AWS CLI v2 or boto3 version that includes OpenSearch Memory. Confirm with
aws opensearchmemory help, and confirm thataws opensearchmemory search-memories helplists--search-query. If either is missing, upgrade the AWS CLI before continuing. - Credentials with the
osm:actions you need (see references/security-and-encryption.md). - A Region that offers OpenSearch Memory; check AWS Services by Region. Pass
--regionon every command.