# Upstash AgentKit for TanStack AI: Persistence, Resumable Streams, and Memory on Redis

DevFeed: [Upstash AgentKit for TanStack AI: Persistence, Resumable Streams, and Memory on Redis](<https://devfeed.tech/articles/upstash-agentkit-for-tanstack-ai-persistence-resumable-streams-and-memory-on-redis-78696.md>)

Original publisher: [Read original article](<https://upstash.com/blog/upstash-agentkit-for-tanstack-ai>)

Author: Cahid Arda Oz

Published: 2026-10-01T00:00:00Z

Content type: article

Language: en

Sources: [Upstash](<https://devfeed.tech/sources/upstash.md>)

Topics: [Persistence](<https://devfeed.tech/topics/persistence.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [Zustand](<https://devfeed.tech/topics/zustand.md>)

Tags: [agentkit](<https://devfeed.tech/tags/agentkit.md>), [agents](<https://devfeed.tech/tags/agents.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [locks](<https://devfeed.tech/tags/locks.md>), [rag](<https://devfeed.tech/tags/rag.md>), [rate-limiting](<https://devfeed.tech/tags/rate-limiting.md>), [redis](<https://devfeed.tech/tags/redis.md>), [tanstack](<https://devfeed.tech/tags/tanstack.md>)

## AI overview

Upstash introduces an AgentKit package for TanStack AI that stores agent state in Redis, with chat persistence, resumable streams, distributed locks, long-term memory, tool caching, rate limiting, and RAG search tools. It describes how these features support shared state across serverless instances and details implementation choices such as lease based locks and Redis Search memory recall.

## Source excerpt

A new Upstash AgentKit package for TanStack AI: chat persistence, resumable streams, distributed locks, long-term memory, tool caching, rate limiting, and RAG tools on one Upstash Redis database.