# Memory stores

A **memory store** is durable storage agents access at runtime for context across sessions.

## Create a memory store

```ts
const { data: store } = await client.memoryStore.create({
  body: { name: "product-faqs" },
})
```

## Attach to a project

```ts
await client.pod.project.memoryStore.add({
  path: { podId, id: projectId },
  body: { memoryStoreId: store.id },
})
```

## Upload a document

```ts
await client.memoryStore.files.upload({
  path: { id: store.id },
  // Multipart form data — see API reference
})
```

## Related

- **[File stores](/concepts/file-stores)** — raw file storage.
- **API reference:** [Memory stores](/api-reference#tag/memory-store)