Skip to main content

LangGraph Integration

LangGraph models agents as state graphs: nodes run, state flows along edges, and checkpoints let you persist and resume the graph. LangGraph’s built-in checkpointers are usually in-memory or SQLite — fine for local, fragile in production. StateBase plugs in as a durable checkpointer: every graph state is persisted to StateBase, survives restarts, and is auditable via Traces.

Why StateBase + LangGraph


Setup


Durable Checkpointer

Use StateBase as the checkpointer in your graph:

Running the Graph

Because the checkpointer writes to StateBase, a crashed worker can be replaced by a new one that reads the same thread_id and continues — no local state to lose.

Auditing

Every graph checkpoint is a StateBase state update with reasoning, so you can inspect exactly what the graph was thinking at each node:

Next Steps