Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

langgraph-persistence

Skill by langchain-ai

Guides developers on adding persistence to LangGraph apps. It covers checkpointers, thread IDs, time travel, the Store and subgraph persistence modes.

  • Score 87
  • 1.4k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install langgraph-persistence

Built from the published package, never by AI.

git clone --depth 1 https://github.com/langchain-ai/langchain-skills /tmp/langchain-skills && mkdir -p ~/.claude/skills && cp -r /tmp/langchain-skills/config/skills/langgraph-persistence ~/.claude/skills/langgraph-persistence

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install langgraph-persistence in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant guidance on persistence in LangGraph. A checkpointer saves graph state at every super-step, and a thread_id keeps separate conversations apart. Time travel lets you browse checkpoint history, replay a past state or fork from it. The Store adds cross-thread memory for things like user preferences and facts.

The skill explains how to choose a checkpointer: InMemorySaver for testing and development, SqliteSaver for local development, and PostgresSaver for production. It also covers subgraph checkpointer modes (False, the default, and True for multi-turn memory). Examples are given in Python and TypeScript. It is aimed at developers building LangGraph apps that need to persist state or remember conversations.

Written from the project's SKILL.md and checked against it.

What it can do

  • CheckpointingSaves and loads graph state at every super-step using a checkpointer.
  • Thread-based memoryUses thread_id to keep separate conversation histories isolated.
  • Time travelBrowses checkpoint history and replays or forks from a past state.
  • Manual state updatesUpdates graph state with update_state before resuming execution.
  • Subgraph checkpointer modesSets checkpointer=False, the default, or True to control subgraph persistence.
  • Cross-thread memoryUses a Store, such as InMemoryStore, to keep data shared across threads.

What you need

  • LangGraph installed in Python or TypeScript
  • A PostgreSQL database for the PostgresSaver production example

Try asking

  • Add conversation memory to my LangGraph app using a thread_id.
  • Show me how to replay my graph from an earlier checkpoint.
  • Set up PostgresSaver for production in my LangGraph project.

Good to know

  • InMemorySaver is for testing and development only, not production.
  • SqliteSaver is rated as partially production ready.
  • Stateful subgraphs (checkpointer=True) cannot be called multiple times from a single node.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: config/skills/langgraph-persistence/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to langgraph-persistence

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

langgraph-persistence: common questions

What is the difference between a checkpointer and the Store in LangGraph?

A checkpointer handles short-term, thread-scoped conversation history. The Store handles long-term memory such as user preferences that can be shared across threads.

Which checkpointer should I use in production?

The source lists PostgresSaver as production ready. It recommends running setup() once during deployment rather than at application startup.

When should a subgraph use checkpointer=True?

Use it when the subgraph needs to remember state across invocations, such as multi-turn conversations. Each call then picks up where the last one left off.

How do I install langgraph-persistence?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is langgraph-persistence free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is langgraph-persistence safe to use?

It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to langgraph-persistence?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

langgraph-persistence Install

Add to stack

Loading.