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:Memory path structure
All memory paths must start with/memories/:
Each file is stored as one document in the namespace, tagged with
metadata.source = "claude-memory". Its document ID is a reversible encoding of the path: /memories/preferences.txt is stored as cm_memories_s_preferences_d_txt.Commands reference
View (read/list)
Create
String replace
Insert
Delete
Rename
Complete example
Environment variables
Comparison with other approaches
Next steps
AI SDK integration
Use with Vercel AI SDK for streamlined development
OpenAI SDK
Memory tools for OpenAI function calling