Skip to main content

Prerequisites

You need to install the mem0ai and openai libraries.
Set MEM0_API_KEY to use the Mem0 Platform. The example Agent uses Agno’s default OpenAI model, so it also requires OPENAI_API_KEY. Get the Mem0 key from the Mem0 dashboard.
Without a Mem0 API key, the toolkit runs a local Mem0 Memory instance. Configure it with the config parameter.

Example

The following agent can store and retrieve memories using Mem0:

Toolkit Params

Toolkit Functions

Developer Resources