---
source: https://iinventedlight.com/library/notes/langgraph-checkpoint.md
title: "Persist LangGraph state with a checkpointer and thread_id"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (LangChain Docs); MIT (langchain-ai/langgraph (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: LangChain Docs, Checkpointers; langchain-ai/langgraph (GitHub), LangGraph Checkpoint. MIT; MIT."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-19
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-19
as_of: 2026-11-19
confidence: medium
untested: "Not reproduced (2026-11-19). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: agent-operations
topic_area: "agent operations: LangGraph checkpointers"
tags: [langgraph, checkpoint, persistence, thread-id]
client: Librarian
sources:
  - id: S1
    title: "Checkpointers"
    publisher: LangChain Docs
    url: https://docs.langchain.com/oss/python/langgraph/checkpointers.md
    accessed: 2026-11-19
    license: "MIT"
  - id: S2
    title: "LangGraph Checkpoint"
    publisher: langchain-ai/langgraph (GitHub)
    url: https://github.com/langchain-ai/langgraph/blob/main/libs/checkpoint/README.md
    accessed: 2026-11-19
    license: "MIT"
---
# Persist LangGraph state with a checkpointer and thread_id
**Answer:** A LangGraph checkpointer stores a snapshot of graph state at each super-step, grouped into threads. Compile a graph with a checkpointer, and specify a thread_id so execution can resume on that thread.

## Why a checkpointer

LangGraph checkpointers save graph state as checkpoints at each step. The snapshot sits at every super-step and is organized into threads. Compiling with a checkpointer unlocks human-in-the-loop workflows, time travel debugging, fault-tolerant execution, and conversational memory. When you use Agent Server, you do not need to implement or configure checkpointers manually.

## The checkpoint library

The langgraph-checkpoint library defines the base interface for LangGraph checkpointers. Checkpointers provide a persistence layer: they save graph state at every superstep. A checkpoint is a snapshot of the graph state at a given point in time. A checkpoint tuple holds the checkpoint plus config, metadata, and pending writes. A thread is a unique ID assigned to a series of checkpoints. When using a checkpointer, you must specify a thread_id (always required) and optionally checkpoint_id, under the configurable part of the config. InMemorySaver is the in-memory implementation. Each checkpointer should conform to BaseCheckpointSaver and implement put, put_writes, get_tuple, list, delete_thread, and get_next_version. Pending writes remember successful node results at a superstep if another node fails, so resume does not re-run those nodes.

| thread_id | checkpoint |
|---|---|
| thread_id | unique ID for a series of checkpoints |
| checkpoint_id | optional id of one checkpoint in a thread |
| InMemorySaver | in-memory BaseCheckpointSaver |
| put | store a checkpoint with config and metadata |

## See also

- [langgraph-interrupt](https://iinventedlight.com/library/notes/langgraph-interrupt/)
- [langgraph-subgraphs](https://iinventedlight.com/library/notes/langgraph-subgraphs/)
- [ao-architecture-cognitive-agents](https://iinventedlight.com/library/notes/ao-architecture-cognitive-agents/)

## Claims

- id: C1
  claim: A checkpointer saves a snapshot of graph state at each super-step, organized into threads.
  source: S1
  evidence: "snapshot of graph state at each super-step"

- id: C2
  claim: Checkpointers enable human-in-the-loop workflows and conversational memory.
  source: S1
  evidence: "human-in-the-loop workflows, time travel debugging"

- id: C3
  claim: The checkpoint library saves graph state at every superstep through BaseCheckpointSaver.
  source: S2
  evidence: "they save graph state at every superstep"

## Sources

- [S1] Checkpointers. LangChain Docs. https://docs.langchain.com/oss/python/langgraph/checkpointers.md . License: MIT. Accessed 2026-11-19.

- [S2] LangGraph Checkpoint. langchain-ai/langgraph (GitHub). https://github.com/langchain-ai/langgraph/blob/main/libs/checkpoint/README.md . License: MIT. Accessed 2026-11-19.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: LangChain Docs, Checkpointers; langchain-ai/langgraph (GitHub), LangGraph Checkpoint. MIT; MIT. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
