Overview
Mem0Storage integrates with the Mem0 memory platform. Supports both the hosted Mem0 Platform and self-hosted Mem0 Open Source deployments.
Install
Install the Mem0 storage optional dependency group:
Basic Usage
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
memory_client | Memory | MemoryClient | None | None | Pre-existing Mem0 client |
api_key | str | None | None | Mem0 Platform API key |
host | str | None | None | Mem0 Platform host URL |
org_id | str | None | None | Organization ID (Platform) |
project_id | str | None | None | Project ID (Platform) |
config | MemoryConfig | None | None | Config for self-hosted Mem0 |
session_table | str | None | "upsonic_sessions" | Session table name (metadata) |
user_memory_table | str | None | "upsonic_user_memories" | User memory table name (metadata) |
default_user_id | str | "upsonic_default" | Default user ID for Mem0 operations |
id | str | None | auto-generated | Storage instance ID |

