Skip to main content

Overview

AsyncMem0Storage provides asynchronous integration with the Mem0 memory platform. Supports both the hosted Mem0 Platform (AsyncMemoryClient) and self-hosted Mem0 Open Source (AsyncMemory) deployments.

Install

Install the Mem0 storage optional dependency group:

Basic Usage

Parameters

ParameterTypeDefaultDescription
memory_clientAsyncMemory or AsyncMemoryClientNonePre-configured async Mem0 client
api_keystrNoneMem0 Platform API key (or use MEM0_API_KEY env var)
hoststrNoneMem0 Platform host URL
org_idstrNoneMem0 Platform organization ID
project_idstrNoneMem0 Platform project ID
configMemoryConfigNoneConfiguration for self-hosted AsyncMemory
session_tablestrNoneCustom name for the session table (used in metadata)
user_memory_tablestrNoneCustom name for the user memory table
knowledge_tablestrNoneCustom name for the knowledge registry table (used by KnowledgeBase)
cultural_knowledge_tablestrNoneCustom name for the cultural knowledge table
default_user_idstr"upsonic_default"Default user ID for Mem0 operations
idstrNoneUnique identifier for this storage instance

Self-Hosted Usage