3 cookbooks for using the official strands-valkey-session-manager community package to back Strands agents with Valkey - persisting conversation history, session metadata, and agent state.
Install strands-valkey-session-manager, create a ValkeySessionManager, and wire it to a Strands agent. Persistent conversation history in under 15 minutes.
Understand the key structure and shape of session, agent, and message objects. Use list_messages() and other built-in API methods to inspect and manage session data.
Delete sessions on logout, query raw keys to inspect what's stored, and share a session across multiple agents in an orchestrator pattern.
Chat with a Strands agent and watch session data persist to Valkey in real-time.
Open Interactive Demo