Skip to main content
Claude has a native memory tool that allows it to store and retrieve information across conversations. Supermemory provides a backend implementation that maps Claude’s memory commands to persistent storage.
This integration works with Claude’s built-in memory tool type, introduced in the Anthropic API. It requires the context-management beta flag.

Installation

Quick Start

Configuration

How It Works

Claude’s memory tool uses a file-system metaphor. Supermemory maps these operations to document storage:
Claude CommandSupermemory Action
viewSearch/retrieve documents
createAdd new document
str_replaceUpdate document content
insertInsert content at line
deleteDelete document
renameMove document to new path

Memory Path Structure

All memory paths must start with /memories/:

Commands Reference

View (Read/List)

Create

String Replace

Insert

Delete

Rename

Complete Example

Environment Variables

Next Steps

AI SDK Integration

Use with Vercel AI SDK for streamlined development

OpenAI SDK

Memory tools for OpenAI function calling