Amazon opensearch memory
Integrates an AI agent with Amazon OpenSearch Memory (OpenSearch Memory, CLI aws opensearchmemory, IAM prefix osm:).
In detail
Integrates an AI agent with Amazon OpenSearch Memory (OpenSearch Memory, CLI `aws opensearchmemory`, IAM prefix `osm:`), a managed service that stores conversation events and extracts long-term memories from them. Use only when the user names OpenSearch Memory, an OpenSearch Memory space, or `aws opensearchmemory`, for creating or updating a space and its strategies (SEMANTIC, SUMMARY, CUSTOM), writing events, searching, listing, updating or deleting memories, event and memory retention, IAM policies or customer managed KMS keys for spaces, or OpenSearch Memory errors such as ResourceNotFoundException after a space is ACTIVE, ConflictException while UPDATING, a ValidationException on a search query, or memories not appearing. Does NOT cover Amazon Bedrock AgentCore Memory (use amazon-bedrock), agent memory on Amazon Neptune (use amazon-neptune), or your own vector search on OpenSearch Service or Serverless (use amazon-opensearch-service).
Safety check
- Not rated by Claude yet. We only sell skills Claude has read and rated 7 out of 10 or higher, so this one is a free link to its author.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: amazon-opensearch-memory
description: Integrates an AI agent with Amazon OpenSearch Memory (OpenSearch Memory, CLI `aws opensearchmemory`, IAM prefix `osm:`), a managed service that stores conversation events and extracts long-term memories from them. Use only when the user names OpenSearch Memory, an OpenSearch Memory space, or `aws opensearchmemory`, for creating or updating a space and its strategies (SEMANTIC, SUMMARY, CUSTOM), writing events, searching, listing, updating or deleting memories, event and memory retention, IAM policies or customer managed KMS keys for spaces, or OpenSearch Memory errors such as ResourceNotFoundException after a space is ACTIVE, ConflictException while UPDATING, a ValidationException on a search query, or memories not appearing. Does NOT cover Amazon Bedrock AgentCore Memory (use amazon-bedrock), agent memory on Amazon Neptune (use amazon-neptune), or your own vector search on OpenSearch Service or Serverless (use amazon-opensearch-service).
version: 1
---
# 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 that `aws opensearchmemory search-memories help` lists `--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](references/security-and-encryption.md)).
- A Region that offers OpenSearch Memory; check [AWS Services by Region](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/). Pass `--region` on every command.
## Concepts
| Term | What it is |
|---|---|
| Space | Container for one application's events and memories. ID `sp-` + 12 hex. States: CREATING, ACTIVE, UPDATING, DELETING, FAILED (a deleted space returns `ResourceNotFoundException`) |
| Memory strategy | Declared on the space (0-10). Types: `SEMANTIC` (facts), `SUMMARY` (session summaries), `CUSTOM` (your extraction prompt). A space with no strategies stores events only and extracts nothing |
| Event | A conversation turn or batch of turns (or a JSON object, or a document in S3) for one actor and session. Readable immediately |
| Memory | A fact or summary extracted from events asynchronously, or written directly with `create-memory` |
| Actor / session | `actorId` identifies the end user; `sessionId` groups one conversation. Every memory search is scoped to one actor |
## Choose the task
| User wants to | Read |
|---|---|
| Create a space, add or change strategies, set retention, delete a space | [references/spaces-and-strategies.md](references/spaces-and-strategies.md) |
| Write conversation turns, read events back, write or edit memories directly, delete user data | [references/events-and-memories.md](references/events-and-memories.md) |
| Search or list memories, build a search query, filter by time or metadata | [references/search.md](references/search.md) |
| IAM policies, per-user isolation, customer managed KMS key | [references/security-and-encryption.md](references/security-and-encryption.md) |
| An error, or memories not appearing | [references/troubleshooting.md](references/troubleshooting.md) |
...From aws's repository, Apache-2.0 licence.
Related skills
-
Checked
Incident postmortem writer
Writes blameless incident postmortems with fishbone and five whys analysis, so the team fixes root causes.
8/101 credit -
Checked
Akka.NET cluster management
Sets up Akka.NET cluster bootstrapping, service discovery and health checks, with no static seed nodes needed.
7/101 credit -
Checked
Terraform and OpenTofu
Sets up Terraform or OpenTofu modules, state and secrets with safe plan and apply for predictable changes.
8/101 credit -
Checked
AWS Lambda web apps
Builds and deploys Express, Fastify or Hono apps on AWS Lambda web functions, so your site runs serverless.
7/101 credit -
Checked
Cloud IAM audit
Audits and designs access across AWS, GCP, Azure and identity providers for least privilege and clean SSO.
7/101 credit -
Checked
Grafana APM and RUM
Sets up Grafana Cloud app monitoring, Faro frontend RUM and LLM tracing to show latency and errors.
7/101 credit