Strands + Valkey

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.

01

Getting Started

Install strands-valkey-session-manager, create a ValkeySessionManager, and wire it to a Strands agent. Persistent conversation history in under 15 minutes.

Beginner~15 minPython
02

Managing Session Data

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.

Intermediate~15 minPython
03

Managing Your Session Store

Delete sessions on logout, query raw keys to inspect what's stored, and share a session across multiple agents in an orchestrator pattern.

Intermediate~15 minPython

🎮 Try It Live

Chat with a Strands agent and watch session data persist to Valkey in real-time.

Open Interactive Demo
⭐ Strands on GitHub 📦 valkeyforai Repo