MemoryKit

Quickstart

Store a memory and query it in under a minute.

Install the SDK

npm install memorykit

Create a memory and query it

import { MemoryKit } from "memorykit";
 
const mk = new MemoryKit({ apiKey: "ctx_..." });
 
// Store a memory
const memory = await mk.memories.create({
  content: "The user prefers dark mode and metric units.",
  tags: ["preferences"],
});
 
// Query with RAG
const result = await mk.memories.query({
  query: "What are the user's preferences?",
});
 
console.log(result.answer);

Next steps

On this page