12/15/2025
API Key Generalization
Date: December 11, 2024 Topic: Configuration & Developer Experience
Overview
As part of our move towards provider agnostic architecture, we standardized the configuration keys. The library no longer strictly expects a "Google" API key, but rather a generic apiKey that corresponds to your chosen provider.
Key Changes
1. Configuration Property Rename
Old: googleApiKey
New:
apiKey
2. Environment Variables
We now support a generic MEMORI_API_KEY environment variable, though provider-specific keys (like OPENAI_API_KEY or GOOGLE_API_KEY) are still detected if the generic one is missing.
3. Impact on Developers
This is a breaking change for users manually passing googleApiKey in the constructor.
Before:
const memori = new Memori({ googleApiKey: "..." });
After:
const memori = new Memori({ apiKey: "..." });