🧩SessionStore
Also known as sessionStore option, Agent SDK session storage, Claude Agent SDK SessionStore
An object you write that keeps saved chats off the local disk.
Think of it like
It is like saved games kept online, so any box can load them.
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.
Definition
Common mistake
Key takeaways
- 1append and load. The two methods.
- 2Any backend. Database, S3, Redis.
- 3Resume anywhere. Across servers.