A developer-focused API for storing and retrieving user memories to personalize and augment LLM behavior.

New Dynamic dreaming is now default
The context cloud for agents. Supermemory gives your agents state-of-the-art memory, RAG, user profiles, connectors, and extractors, all built in. Extremely low latency. Works with any model. Used by the best teams All the legos to build the perfect context for your agent. Focused primitives for ingesting, understanding, routing, and retrieving context. 01 · MEMORY Memory & Continual Learning State-of-the-art memory that is persistent, structured, and built as a knowledge graph using our custom user understanding model, powered by dynamic dreaming and a custom graph engine. Bring your data We build understanding. Your agent just knows.
Context infrastructure for AI agents. One API, every capability.
Stores chunks. Returns chunks. Each session starts from zero. Embeddings, namespaces, spaces Append-only; no contradiction logic Retrieval, not memory Facts that evolve. Knowledge that merges, contradicts, and gets forgotten across every session. User profiles and ontology-aware graph Update, merge, contradict, infer One API: ingest, retrieve, remember How it works How it works. Four primitives, one graph. Install, ingest, understand, retrieve. Then a fifth step that makes the previous four worth the effort. quickstart.ts TS TypeScript PY Python $_ cURL 1 2 3 4 5 6 7 8 // 1. Install the SDK npm install supermemory
// 2. Initialize the client import { Supermemory } from "supermemory";
const sm = new Supermemory(); 01 / PLUG IN Plug into your stack in minutes. SDKs for every major language and model harness. Runs in every runtime, from edge functions to long-lived servers. 02 / INGEST Bring in any type of data, from anywhere. Supermemory automatically extracts the content for you, in a way that's optimized for retrieval and memory generation. 03 / UNDERSTAND Entity model learns from raw context. Our model resolves people, places, and concepts as they evolve over time. 04 / RETRIEVE Memories form inside our custom gr