LangGraph Redis Persistence

Add Redis-backed checkpoints, stores, and caching and memory middleware to LangGraph applications.

Stars
★ 246
Last updated
1d ago v0.6.0
FARS reviewed
Nov 08, 2026
License
MIT
Primary language
Python

At a glance

How it runs
Library / SDKFramework
Works with
Platform-specific
Cost
Free, no paid service needed
Setup effort
Medium · a few setup steps
You'll need
PythonRedis 8.0+ or Redis Stack with RedisJSON and RediSearchlanggraph-checkpoint>=2.0.24redis>=5.2.1redisvl>=0.5.1Network access
Typical use
Python developers building LangGraph conversations that need to save, restore, and list checkpoints by thread.
Not a fit if
  • Teams unable to provide RedisJSON and RediSearch
  • Developers not building with LangGraph or LangChain agents
Website
redis-developer.github.io ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-12-02latest release v0.6.0 (2026-11-02)
Source review
63/100 · Some gaps

What does this agent do, and when should you use it?

This is an importable Python library with Redis implementations for LangGraph checkpoint savers, Stores, and LangChain agent middleware. Checkpointers have synchronous, asynchronous, and shallow variants that retain only the latest checkpoint; Stores provide key-value persistence with optional vector search. Middleware offers semantic caching, tool-result caching, conversation memory, and semantic routing for LangChain agents, with integration through langchain.agents.create_agent(). Data is stored in Redis, and first use requires creating indices with setup() or the corresponding asynchronous setup method. The library requires RedisJSON and RediSearch; Redis 8.0+ includes both modules by default. It does not provide a hosted service or standalone agent interface.

Install langgraph-checkpoint-redis in an application and connect it to Redis. Use RedisSaver or AsyncRedisSaver to write, retrieve, and list LangGraph checkpoints, or choose ShallowRedisSaver to keep only the latest checkpoint. Use RedisStore or AsyncRedisStore for key-value data and optionally configure a vector-search index. Create the required indices with setup(), asetup(), or the Store's corresponding setup method. Configure SemanticCacheMiddleware, ToolResultCacheMiddleware, ConversationMemoryMiddleware, or SemanticRouterMiddleware for a LangChain agent and run it through create_agent(). TTL settings can expire data, refresh expiration on reads, and govern which tool results are cacheable.

  1. Python developers building LangGraph conversations that need to save, restore, and list checkpoints by thread.
  2. Teams that need persistent key-value memory across threads and want to retrieve it by vector similarity in Redis.
  3. LangChain agent developers who want to cache model responses by semantic similarity to reduce repeated calls.
  4. Application teams with deterministic tools or expensive API computations that need configurable tool-result caching.
  5. Agent developers who need to retrieve relevant past messages and inject them into conversation context.
  6. Teams that want Redis TTL to clean up checkpoint or Store entries automatically, with optional expiration refresh on reads.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • pip install langgraph-checkpoint-redis

How do you install or deploy this agent?

You need a Python application, a reachable Redis instance, and RedisJSON and RediSearch. The README lists redis>=5.2.1, redisvl>=0.5.1, and langgraph-checkpoint>=2.0.24 as main dependencies. Redis 8.0+ includes the required modules by default; for earlier versions, use Redis Stack or install the modules separately. Install the package with:

pip install langgraph-checkpoint-redis

The README does not specify a Python version range. For Azure Managed Redis, Azure Cache for Redis, or Redis Enterprise, it recommends a standard redis.Redis client rather than RedisCluster; connection settings depend on the endpoint and TLS configuration.

How do you use this agent?

Initialize the indices, then write and retrieve a checkpoint:

from langgraph.checkpoint.redis import RedisSaver

config = {"configurable": {"thread_id": "1", "checkpoint_ns": ""}}

with RedisSaver.from_conn_string("redis://localhost:6379") as saver:
    saver.setup()
    # Pass a LangGraph-produced checkpoint, metadata, and new versions to put()
    saved_config = saver.put(config, checkpoint, metadata, new_versions)
    loaded_checkpoint = saver.get(config)

For async applications, import AsyncRedisSaver from langgraph.checkpoint.redis.aio and use asetup(), aput(), aget(), and alist(). The checkpoint, metadata, and new_versions values should come from a LangGraph flow; the README shows the checkpoint shape but not a complete standalone minimal graph example. For a Store, construct RedisStore, call setup(), and use it in the application; pass the relevant configuration to enable vector search or TTL.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • One library provides full checkpoint history, a latest-only shallow implementation, and both sync and async interfaces.
  • Redis Stores support optional vector search and share the Redis deployment boundary with checkpointing and middleware.
  • TTL works for checkpoints and Stores, can refresh on reads, and is disabled by default so data persists.
  • Tool caching can be controlled with tool metadata, volatile and ignored argument names, and side-effect name prefixes.
Limitations
  • The deployment must provide RedisJSON and RediSearch; missing modules cause index creation or checkpoint operations to fail.
  • Applications must run Python, supply a Redis connection, and initialize indices before first use.
  • For Azure and Redis Enterprise configurations, the README calls for a standard Redis client; RedisCluster examples do not apply.
  • The README does not specify a supported Python version range, hosted service, or complete deployment bundle for standalone middleware use.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
LangGraph Redis Persistence This agent 63 · Some gaps Library / SDKFree ★ 246 1d ago Python —
MemPalace Memory 72 · Some gaps CLIFree + model costs ★ 61k 2d ago Python Codex · Claude Code
Oracle AI Developer Hub 39 · Major gaps Library / SDKFree + model costs ★ 4.5k 2d ago Jupyter Notebook —
Dynamiq Agent Orchestration 61 · Some gaps Library / SDKFree + model costs ★ 1.1k 6d ago Python OpenAI API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
63/ 100 5-point scale 3.2 / 5
Trust 13/29
Reliability 6/14
Adaptability 14/18
Convention 13/18
Effectiveness 12/13
Verifiability 5/8
Why each dimension lost points
Trust13 / 29 · 2.2/5

The workflow declares read access for contents, pull requests, and issues and runs only when a comment or issue mentions @claude. It also requests id-token: write, whose purpose is not explained in the supplied material, so this is not full marks. The docs describe checkpoint, write, index, and TTL data flows and explain cache decisions. Connection examples include password fields, but provide no credential storage or redaction guidance. Dependencies have version ranges, but the packet contains no vulnerability audit or mitigation evidence. TTL can expire data automatically, and an operation to remove TTL is shown; there is no general rollback procedure. The repository and LICENSE identify Redis copyright, but maintainer, publisher, and update responsibility are unclear.

Reliability6 / 14 · 2.1/5

The README, installation guide, and project configuration describe RedisJSON and RediSearch requirements and Redis 8 support. However, the README's dependency minimums differ from pyproject.toml, Python version descriptions are not fully aligned, and the supplied README sample ends mid-section. Test configuration shows container-based integration testing and readiness polling, but some Redis startup and cleanup errors are ignored. Static evidence gives only limited information about runtime error responses.

Adaptability14 / 18 · 3.9/5

Documentation covers checkpointing, stores, vector search, middleware, sync and async use, TTL, cluster mode, and Azure/Enterprise scenarios. Cache settings explain cacheability metadata, volatile arguments, and side-effect name prefixes, though cacheability can still be overridden and the packet does not define every boundary. Triggers are primarily explicit caller configuration; repository-level Agent activation scope is not clearly specified. Redis, Python, managed Redis, and container examples provide good environment guidance.

Convention13 / 18 · 3.6/5

The packet includes user guides, installation and getting-started material, examples, and project configuration; organization is clear, though the complete documentation navigation is not shown. Installation instructions cover pip, Poetry, Redis modules, versions, and setup verification. Core component names are stable, but package and module names vary and the concepts are numerous. The README offers extensive examples and FAQ-like guidance. It also notes limitations such as required Redis modules, shallow checkpoints retaining only the latest item, and Azure client selection. The MIT license is explicit. The package configuration gives a version, but the supplied material has no changelog or upgrade notes. Contributor instructions describe development workflows but do not establish maintenance responsibility; publisher identity is unknown as specified.

Effectiveness12 / 13 · 4.6/5

Checkpointing, persistent storage, vector search, and caching middleware directly support LangGraph applications. Sync and async examples and configuration tables make the output usable. Redis persistence, TTL, cross-thread storage, and caching add clear capabilities beyond basic in-memory workflows. Cost-benefit evidence is limited: the docs claim caching can reduce cost and latency without quantification, while Redis modules and operations add deployment costs.

Verifiability5 / 8 · 3.1/5

Important settings and cache policies have concrete parameters and examples, installation guidance supports setup, and test configuration shows an integration-test approach; no execution results are supplied, so this review does not claim tests passed. The README, installation guide, and pyproject.toml partially corroborate core dependencies and runtime requirements, with version-description differences. Docs generally present examples as usage guidance, but some performance and compatibility claims lack supporting evidence, and the supplied sample is incomplete; these prevent full marks.

Risks and how to mitigate them
  • Before release, reconcile the dependency minimums and Python version descriptions in the README and pyproject.toml; the supplied material differs.
  • Before deployment, confirm RedisJSON and RediSearch are enabled, and assess credential handling and the workflow's id-token permission.
  • Caching can reuse prior results; configure it with tool side effects and data freshness in mind.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision d06e1376ceb4 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/langgraph-redis.svg)](https://followagents.com/en/agents/langgraph-redis)
<a href="https://followagents.com/en/agents/langgraph-redis"><img src="https://followagents.com/badge/langgraph-redis.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.6.0 0.6.0
    Release notes excerpt
    Changes - chore(release): bumped release version to 0.6.0 (#235) - chore(deps-dev): bump setuptools from 80.10.1 to 84.1.0 (#234) - chore(deps-dev): bump transformers from 5.5.0 to 5.10.1 (#233) - chore(deps-dev): bump black from 26.3.1 to 26.10.1 (#231) - chore(deps-dev): bump fsspec from 2026.1.0 to 2026.6.0 (#230) - ci(github): test latest runtime deps and Redis 8, drop Redis Stack 6.2 (#216) - chore(deps): bump certifi from 2025.11.12 to 2026.10.18 (#228) - chore(deps): bump urllib3 from 2.7.0 to 2.8.0 (#229) - chore(deps-dev): bump anyio from 4.11.0 to 4.14.2 (#227) …
    View on GitHub ↗
  2. 0.5.2
    Release notes excerpt
    Changes - chore(release): bumped release version to 0.5.2 (#205) - fix(checkpoint): retry best-effort TTL application to prevent orphaned search index entries (#203) - chore(deps-dev): bump cryptography from 49.0.0 to 50.0.0 (#204) 🐛 Bug Fixes - fix(checkpoint): preserve DeltaChannel snapshots in Redis JSON (#202) Contributors We'd like to thank all the contributors who worked on this release! @LiamCollick, @dependabot, @dependabot[bot] and @limjoobin
    View on GitHub ↗
  3. 0.5.1
    Release notes excerpt
    Changes - chore(deps-dev): bump transformers from 5.0.0rc3 to 5.5.0 (#200) - chore(release): bumped release version to 0.5.1 (#199) 🐛 Bug Fixes - Fix nested set deserialization in JsonPlusRedisSerializer (#198) - fix: escape RediSearch-special characters in store delete queries (#197) Contributors We'd like to thank all the contributors who worked on this release! @dependabot, @dependabot[bot], @jerry153fish and @limjoobin
    View on GitHub ↗

FAQ

Do I need to install RedisJSON and RediSearch separately with Redis 8.0 or later?
The README says Redis 8.0+ includes both modules in the core distribution. For earlier Redis versions, use Redis Stack or install the modules separately.
Do checkpoints or Store entries expire automatically?
No. Without TTL configuration, data is persistent. Set default_ttl to expire entries and refresh_on_read to refresh expiration when they are read.
Can I keep only the latest checkpoint for each thread?
Yes. Use ShallowRedisSaver; the async variant is AsyncShallowRedisSaver. These implementations keep only the latest checkpoint.
Can I use this with Azure Managed Redis or Redis Enterprise?
The README includes configuration guidance and recommends a standard redis.Redis client instead of RedisCluster. These deployments typically require TLS, and the modules must be selected when creating the service.
Does the library include a model, hosted agent service, or standalone UI?
The README describes Redis persistence components and LangChain agent middleware. The application configures its model through the LangChain agent; the library does not document a hosted service or standalone agent UI.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts