Skip to main content

Installation

Get Memori installed and connected to Memori Cloud in a few steps.

Install Memori

pip install memori

Install Your LLM Provider

Install the SDK for your preferred LLM provider:
pip install openai

Set Your API Key

Sign up at app.memorilabs.ai to get your Memori API key. The SDK reads it automatically from the environment.
Your Memori API key from app.memorilabs.ai connects your application to Memori Cloud.
Set this as an environment variable. The Memori SDK reads it automatically on initialization.
export MEMORI_API_KEY="your-memori-api-key"

Set Your LLM Provider Key

You’ll also need an API key for your LLM provider:
# OpenAI
export OPENAI_API_KEY="your-openai-key"

# Anthropic
export ANTHROPIC_API_KEY="your-anthropic-key"

# Google Gemini
export GOOGLE_API_KEY="your-google-key"

Verify Installation

Run the following command to confirm the package is installed:
pip show memori
You should see output showing the Memori package version and location.

What’s Next?

1

Quick Start

Build your first memory-enabled application in under 3 minutes.Go to Quick Start →
2

Choose Your LLM

Explore integration guides for different LLM providers.View LLM integrations in the sidebar

Build docs developers (and LLMs) love