Skip to main content

Key differences

Installation

API mapping

Session management

Adding memories

Searching

Getting all memories

Migration steps

  1. Replace client initialization - Use Supermemory client instead of Zep
  2. Map sessions to container tags - Replace session_id="user_123" with containerTag: "user_123"
  3. Update method calls - Use add() and search.execute() instead of memory.add() and memory.search()
  4. Change search parameter - Use q instead of text
  5. Handle async processing - Documents process asynchronously (status: queued → done)

Complete example

Important notes

  • No session creation needed - Just use containerTag in requests
  • Messages are documents - Store with metadata.role and metadata.type
  • Async processing - Documents may take a moment to be searchable
  • Response structure - Supermemory returns chunks with scores, not direct memory content

Migrating existing data

Quick migration (all-in-one)

Complete migration in one script:

Full migration script

For a complete migration script with error handling, verification, and progress tracking, copy this TypeScript script:

Resources