Library with a SQLite implementation of LangGraph checkpoint saver.
Project Links
Meta
Requires Python: >=3.10
Classifiers
LangGraph SQLite Checkpoint
Implementation of LangGraph CheckpointSaver that uses SQLite DB (both sync and async, via aiosqlite)
Usage
from langgraph.checkpoint.sqlite import SqliteSaver
write_config = {"configurable": {"thread_id": "1", "checkpoint_ns": ""}}
read_config = {"configurable": {"thread_id": "1"}}
with SqliteSaver.from_conn_string(":memory:") as checkpointer:
checkpoint = {
"v": 4,
"ts": "2024-07-31T20:14:19.804150+00:00",
"id": "1ef4f797-8335-6428-8001-8a1503f9b875",
"channel_values": {
"my_key": "meow",
"node": "node"
},
"channel_versions": {
"__start__": 2,
"my_key": 3,
"start:node": 3,
"node": 3
},
"versions_seen": {
"__input__": {},
"__start__": {
"__start__": 1
},
"node": {
"start:node": 2
}
},
}
# store checkpoint
checkpointer.put(write_config, checkpoint, {}, {})
# load checkpoint
checkpointer.get(read_config)
# list checkpoints
list(checkpointer.list(read_config))
Async
from langgraph.checkpoint.sqlite.aio import AsyncSqliteSaver
async with AsyncSqliteSaver.from_conn_string(":memory:") as checkpointer:
checkpoint = {
"v": 4,
"ts": "2024-07-31T20:14:19.804150+00:00",
"id": "1ef4f797-8335-6428-8001-8a1503f9b875",
"channel_values": {
"my_key": "meow",
"node": "node"
},
"channel_versions": {
"__start__": 2,
"my_key": 3,
"start:node": 3,
"node": 3
},
"versions_seen": {
"__input__": {},
"__start__": {
"__start__": 1
},
"node": {
"start:node": 2
}
},
}
# store checkpoint
await checkpointer.aput(write_config, checkpoint, {}, {})
# load checkpoint
await checkpointer.aget(read_config)
# list checkpoints
[c async for c in checkpointer.alist(read_config)]
3.0.3
Jan 19, 2026
3.0.2
Jan 12, 2026
3.0.1
Dec 09, 2025
3.0.0
Oct 20, 2025
2.0.11
Jul 25, 2025
2.0.10
May 19, 2025
2.0.9
May 19, 2025
2.0.8
May 18, 2025
2.0.7
May 02, 2025
2.0.6
Mar 10, 2025
2.0.5
Feb 15, 2025
2.0.4
Feb 13, 2025
2.0.3
Jan 15, 2025
2.0.2
Jan 14, 2025
2.0.1
Oct 24, 2024
2.0.0
Oct 01, 2024
1.0.4
Sep 23, 2024
1.0.3
Sep 03, 2024
1.0.2
Sep 03, 2024
1.0.1
Aug 30, 2024
1.0.0
Aug 07, 2024
Wheel compatibility matrix
Files in release
Extras:
None
Dependencies:
aiosqlite
(>=0.20)
langgraph-checkpoint
(<5.0.0,>=3)
sqlite-vec
(>=0.1.6)