Step 1: Get a MemoryLake key
Sign up for MemoryLake and create an API key in the console. The Free tier includes memory storage to start.Keep your MemoryLake key in an environment variable such as
MEMORYLAKE_API_KEY. See Authentication for details on managing keys.Step 2: Pick a mode and swap the base URL
Choose how you want to connect, then point your SDK at the matching Router endpoint:| Mode | Base URL | Keys |
|---|---|---|
| BYOK (bring your own key) | https://router.memorylake.ai/v1/openai | Your provider key + MemoryLake key |
| MemoryLake-hosted | https://router.memorylake.ai/v1 | MemoryLake key only |
x-memorylake-api-key header. For hosted, just use your MemoryLake key — no provider account required.
See Deployment Modes for a full comparison.
BYOK — your provider key
MemoryLake-hosted — one key
Step 3: Call as normal
Send requests exactly as you do today. Memory is recalled and stored automatically — no extra calls, no retrieval code.TypeScript
Next Steps
Deployment Modes
Full comparison of BYOK and hosted, plus supported providers.
Observability
Understand the diagnostic headers and graceful fallback.