Installation
Get Memori installed and connected to Memori Cloud in a few steps.
Python
Install Memori
Install Memori (Python)
pip install memori
Install Your LLM Provider
Install the SDK for your preferred LLM provider:
LLM Provider SDKs (Python)
pip install openai
TypeScript
The TypeScript SDK is for Memori Cloud only. For self-hosted setups, use the Python SDK.
Install Memori
Install Memori (TypeScript)
npm install @memorilabs/memori
Install Your LLM Provider
LLM Provider SDKs (TypeScript)
npm 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
Verify Installation
pip show memori