$npx skillfedfor your agent

langgraph-checkpoint-postgres

Library with a Postgres implementation of LangGraph checkpoint saver.

With conditionsPyPI DatabaseReleased Aug 20267.9M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — langgraph_checkpoint_postgres-3.1.2-py3-none-any.whl
v3.1.2 · released 2026-08-07 · Python >=3.10 · 4 runtime deps: langgraph-checkpoint, orjson, psycopg-pool, psycopg

Yes, if you are building LangGraph applications that require durable state persistence. The package is actively maintained, has no known vulnerabilities, installs with low friction, and is MIT-licensed. Install it when you need Postgres-backed checkpoints for production workflows; skip it if you only need in-memory state or are using a different checkpoint backend.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >=3.10 and a running Postgres database.
  • When manually creating connections, must pass autocommit=True and row_factory=dict_row to psycopg; omitting these causes TypeError during checkpoint operations.
  • Low friction install with a pure-Python wheel and four straightforward runtime dependencies.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for both open-source and commercial projects.

last release 2026-08-07 (7 days) · last repo commit 2026-08-14 · 39,690 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,916,243 downloads/mo, #1,682 on PyPI

Verify before relying

from langgraph.checkpoint.postgres import PostgresSaver

DB_URI = "postgres://user:pass@localhost:5432/db?sslmode=disable"
with PostgresSaver.from_conn_string(DB_URI) as checkpointer:
    checkpointer.setup()
    checkpointer.put({"configurable": {"thread_id": "1"}}, checkpoint_data, {}, {})
  • Performance characteristics and scalability limits for high-volume checkpoint operations.
  • Whether msgpack deserialization restrictions (LANGGRAPH_STRICT_MSGPACK) are enforced by default or require explicit configuration.
  • Compatibility with specific Postgres versions or deployment environments (cloud-hosted, self-managed).
Same gist for agents: .md · .json

What it is and what it does

This package integrates Postgres as a durable backend for LangGraph's checkpoint system, allowing you to persist the state of long-running workflows and agents across restarts and failures. It provides both synchronous (PostgresSaver) and asynchronous (AsyncPostgresSaver) implementations that store and retrieve checkpoint data—including channel values, versions, and execution history—directly in Postgres tables.

The package depends on psycopg (Psycopg 3) for database connectivity, orjson for efficient serialization, and langgraph-checkpoint for the checkpoint interface contract. Setup requires calling .setup() once to create the necessary tables, and subsequent operations use simple put/get/list methods to manage checkpoints. The documentation emphasizes security: you should set LANGGRAPH_STRICT_MSGPACK=true or provide an explicit allowed_msgpack_modules list to prevent code execution if the database is compromised.

Use it for

  • Store agent execution state in Postgres so multi-step workflows survive application restarts or crashes.
  • Implement resumable LLM workflows where you can pause, inspect, and resume from any checkpoint.
  • Build multi-tenant systems where each tenant's workflow state is isolated and persisted in a shared Postgres instance.
  • Enable async workflows with AsyncPostgresSaver for non-blocking checkpoint operations in high-concurrency applications.
  • Audit and replay workflow execution by querying checkpoint history from Postgres.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are building LangGraph applications that require durable state persistence.

The package is actively maintained, has no known vulnerabilities, installs with low friction, and is MIT-licensed. Install it when you need Postgres-backed checkpoints for production workflows; skip it if you only need in-memory state or are using a different checkpoint backend.

Install

langgraph-checkpoint-postgres on PyPI

Before you install

Low friction install with a pure-Python wheel and four straightforward runtime dependencies. The package is actively maintained with a recent release and no known vulnerabilities.

Requires Python >=3.10 and a running Postgres database. When manually creating connections, must pass autocommit=True and row_factory=dict_row to psycopg; omitting these causes TypeError during checkpoint operations.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for both open-source and commercial projects.

Quickstart

from langgraph.checkpoint.postgres import PostgresSaver

DB_URI = "postgres://user:pass@localhost:5432/db?sslmode=disable"
with PostgresSaver.from_conn_string(DB_URI) as checkpointer:
    checkpointer.setup()
    checkpointer.put({"configurable": {"thread_id": "1"}}, checkpoint_data, {}, {})

Verify before relying

  • Performance characteristics and scalability limits for high-volume checkpoint operations.
  • Whether msgpack deserialization restrictions (LANGGRAPH_STRICT_MSGPACK) are enforced by default or require explicit configuration.
  • Compatibility with specific Postgres versions or deployment environments (cloud-hosted, self-managed).

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
langgraph-checkpointorjsonpsycopg-poolpsycopg
MaintenanceActively maintained 7 days since the last release
Last repo commit
First released
Downloads7,916,243 / month, #1,682 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: langgraph_checkpoint_postgres-3.1.2-py3-none-any.whl

Tags

Capabilities
langgraph postgres checkpoint storagestate persistence for langgraph workflowspostgres checkpoint saverlanggraph durable memory backendworkflow state persistence databaselanggraph async checkpoint postgres
Topics
langgraph-integrationstate-persistenceasync-support

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “langgraph postgres checkpoint storage”

Give your agent the search over MCP, or paste the wish link into any chat.

More Database packages

psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
redis Worth it
PyPI · Database · released Jul 2026

Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.

Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.

MITpure Python · 3.10+
268.3Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.

Install it if you need to connect Python applications to YDB databases.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.

Install it if you need to manipulate, format, or analyze SQL text programmatically.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo

See also langgraph-checkpoint · langgraph-checkpoint-sqlite · langgraph-checkpoint-mongodb · langgraph-checkpoint-aws · langgraph-checkpoint-redis · langgraph · langgraph-cli · langgraph-supervisor · llama-index-storage-docstore-postgres · dbos