Installation
Get Memori installed and connected to Memori Cloud in a few steps.
Install Memori
Install Memori
pip install memori
Install Your LLM Provider
Install the SDK for your preferred LLM provider:
LLM Provider SDKs
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:
- Name
MEMORI_API_KEY- Type
- string
- Required
- Required
- Description
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.
API Key Setup
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 pip show memori in your terminal to confirm the package is installed.