DocsGet Started

Give your Agents Memory.

Add data to any agent in three lines of code.

Wrap any model with Satori to add persistent and user scoped memory.

import { streamText } from 'ai';
import { memoryTools, getMemoryContext } from "@satori/tools";

const tools = memoryTools({
  apiKey: process.env.SATORI_API_KEY ,
  baseUrl: 'https://api.usesatori.sh',
  userId: "john-doe-123",
});

const response = await streamText({
  model: ('openai:gpt-4.5'),
  prompt: 'Recommend a restaurant for dinner tonight',
  tools: tools
});