Skip to main content
Memory Router works two ways. Unlike proxies that force you to bring your own key, you can keep your provider account or let MemoryLake run the models for you. Either change is just the base URL; everything else — prompts, streaming, tool calls — stays the same.

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 / Google account.
  • Your key, your billing, your rate limits.
  • Key is encrypted + passthrough only — never persisted or logged.
Base URL: https://router.memorylake.ai/v1/openai Keys: your provider key (as the SDK API key) + MemoryLake key (as the x-memorylake-api-key header)
TypeScript
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://router.memorylake.ai/v1/openai",
  apiKey: process.env.OPENAI_API_KEY,        // your provider key
  defaultHeaders: {
    "x-memorylake-api-key": process.env.MEMORYLAKE_API_KEY,
  },
});

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.
  • Mainstream models built in and ready to call.
  • The simplest possible way to ship with memory.
Base URL: https://router.memorylake.ai/v1 Keys: MemoryLake key only
TypeScript
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://router.memorylake.ai/v1",
  apiKey: process.env.MEMORYLAKE_API_KEY,
});

// Pick any built-in model, e.g. "claude-opus-4-8" or "gpt-5".

Choosing a Mode

BYOKMemoryLake-hosted
Provider accountRequired (yours)Not required
KeysProvider key + MemoryLake keyMemoryLake key only
Billing & rate limitsStay with your provider accountHandled by MemoryLake
Base URL…/v1/openai…/v1
Best forTeams with existing provider contracts and quotasFastest path to ship with memory

Key Safety, by Design

In BYOK mode your provider key is encrypted in transit and passed straight through to the provider on every call. MemoryLake never stores, logs, or reuses it.

Supported Providers

In BYOK mode, keep your provider account and key. In hosted mode, MemoryLake runs these models for you — the same memory layer either way.
ProviderStatus
OpenAI / GPTFully supported
Anthropic / ClaudeFully supported
Google GeminiFully supported
Groq, DeepSeek, OpenRouterFully supported
Any OpenAI-compatible endpointSupported
OpenAI Assistants APINot yet supported

Next Steps

Quickstart

Copy-paste setup for both modes.

Observability

Confirm behavior with diagnostic response headers.