# SessionStore

> An object you write that keeps saved chats off the local disk.

**Field:** Artificial Intelligence  
**Category:** Claude Agent SDK  
**Also known as:** sessionStore option, Agent SDK session storage, Claude Agent SDK SessionStore

## Think of it like

It is like saved games kept online, so any box can load them.

## Definition

SessionStore is the Agent SDK interface for keeping session transcripts off the local disk, such as in a database or S3. You pass one to the sessionStore option. It needs two methods. append writes new parts of the transcript, and load reads them back. With a store, another server can resume a session that began somewhere else.

## Example

Leo's agents run on many servers that come and go. He writes a store over Redis, so any server can pick up any chat.

## Why it matters

Servers come and go, and a transcript on a dead server's disk is lost.

## Common mistake

Expecting resume to work across servers without one. The default store is the local disk.

## Three principles

- **append and load.** The two methods.
- **Any backend.** Database, S3, Redis.
- **Resume anywhere.** Across servers.

## Related terms

- [resume Option](https://learn.benibix.com/term/ai/resume-option)
- [persistSession Option](https://learn.benibix.com/term/ai/persist-session-option)
- [Session Transcript](https://learn.benibix.com/term/ai/session-transcript)
- [Claude Agent SDK Hosting](https://learn.benibix.com/term/ai/agent-sdk-hosting)
- [Claude Agent SDK Session Pattern](https://learn.benibix.com/term/ai/agent-sdk-session-pattern)

---

Source: https://learn.benibix.com/term/ai/session-store
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-20
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
