Skip to main content
The mem0 backend uses Mem0 as long-term storage. It is a managed service where Mem0 handles memory extraction, storage, and retrieval, requiring no self-hosted vector store or local embedding — recommended for production.

When to use

  • Production needing a managed memory service;
  • You want Mem0 to automatically extract and manage memories;
  • You have a Mem0 account and API key, or can auto-fetch one via Volcengine credentials.

Dependencies

Usage

You can also pass config explicitly via backend_config:

Parameters

Constructor parameters

backend_config supports the following settings:

Mem0 config

mem0_config is a Mem0Config with env prefix DATABASE_MEM0_:

API key resolution order

If api_key is provided directly, it is used as is; otherwise VeADK tries to fetch the API key via api_key_id or project_id; initialization fails if neither is set.

Environment variables

If api_key is not provided directly, VeADK tries to obtain it via api_key_id or project_id; an error is raised if neither is set.
Last modified on September 19, 2026