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: queueddone)

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