Endpoints
Append
?boundary_id=<id> to enable memory on a request — see How It Works.
With the Anthropic SDK, set
base_url to https://app.memorylake.ai/anthropic (without /v1) — the SDK appends /v1/messages itself.MemoryLake-hosted
No provider account required. MemoryLake runs the major models for you, so a single MemoryLake API key is all you need to start.- One key for everything — nothing else to sign up for.
- GPT, Claude, and Qwen model families built in and ready to call by their native names.
- The simplest possible way to ship with memory.
Authorization: Bearer for OpenAI-style calls, x-api-key for Anthropic)
TypeScript
BYOK — Bring Your Own Key
Use your own provider account. Your provider key is encrypted in transit, forwarded to the provider per call, and never stored on our servers.- Keep your existing OpenAI / Anthropic account.
- Your key, your billing, your rate limits.
- Key is encrypted + passthrough only — never persisted or logged.
x-memorylake-api-key header
TypeScript
The native auth header differs by protocol: OpenAI-style calls use
Authorization: Bearer <key>; Anthropic calls use x-api-key: <key>. In BYOK mode your provider key goes there, and the MemoryLake key always rides in x-memorylake-api-key.Choosing a Mode
Key Safety, by Design
Supported Providers
Additional providers and protocols are added over time; the console’s Integrations → Memory Router API page always reflects the current catalog.
Next Steps
Quickstart
Copy-paste setup for both modes.
Observability
Trace requests and understand the error contract.