Persist a LangGraph Run with a SQLite Checkpointer
Intermediate · 30 minutes · 5 tasks, checked automatically · 100 points
In this lab you will build a stateful LangGraph conversation graph, attach a SQLite-backed checkpointer so every state transition is durably stored, run the graph in one Python process, then resume the exact same thread from a brand-new process — proving that memory survives a process restart. This is the foundation of long-running, fault-tolerant LangGraph agents.
What you’ll learn
- Install LangGraph with its SQLite checkpointer dependency inside the toolbox container
- Build a minimal stateful chat graph backed by a SQLite database file on disk
- Run the graph in a first process to accumulate conversation state
- Restart Python (simulating a process exit) and resume the same thread from the persisted checkpoint
- Verify the full checkpoint history is intact and the resumed response references prior context
How this lab works
- Start the lab: One click starts a sandbox with a local model and the agent’s toolbox: no API key and no token bill.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work inspects the agent, its config and its output, and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: Locally, against a model on your computer: no API key, no tokens
- Model: qwen2.5:3b
- Open source: github.com/langchain-ai/langgraph
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop (or Podman / Rancher Desktop) installed and running
- A model sandbox started in the Agent Playground
Topics: langgraph, checkpointer, sqlite, persistence, state, thread, resume, agents, ollama, qwen2.5
Create a free account to start this lab.
Keep going
- Install, Inspect, and Disable an OpenClaw Plugin from ClawHub
- OpenClaw Message Queue Channel: Agent-Powered Request/Reply
- Shape Agent Behaviour with SOUL.md, USER.md and AGENTS.md
- Hermes Session Memory: Full-Text Search and Fact Recall
- Hierarchical CrewAI: Manager Agent Delegating to Specialists
- CrewAI Memory: Persistent Recall Across Executions