Memory

Pattern

Supermemory Tools

Save and recall facts with Supermemory tools — addMemory and searchMemories in a simple Remember / Recall playground.

BeginnerAug 2026View the full pattern on desktop
Supermemory Tools preview

Problems solved

  • Wire Supermemory provider tools into an AI SDK generateText call
  • Remember and recall user facts across turns via Supermemory
  • Keep tenant/user container scope server-derived

Use cases

  • Personalized assistant prototypes
  • Preference memory without a chat UI
  • Memory-provider integration demos

AI SDK APIs

generateTextisStepCount

Tags

memorysupermemorytoolspersonalizationlong-term-memoryai-sdk

Requirements

Node.js
24+
Memory
256MB
Other
  • Supermemory API key
  • Vercel AI Gateway API key

Environment variables

External services

supermemoryvercel-ai-gateway

Ready to use?

View the full interactive pattern with live preview and copy the source code.

View the pattern on desktop

Related patterns