Skip to main content
LangGraph saves a thread’s state with a checkpointer. SqliteSaver, from the langgraph-checkpoint-sqlite package, writes every checkpoint to one SQLite file. On a sandbox’s or container’s local disk, that file goes away with the machine. On an Archil disk, it outlives the machine, and the next machine that mounts the disk continues the thread where it stopped, with the files the agent wrote right next to it.
SQLite takes one writing machine per database file. Mount the disk on one machine at a time, as below, or give each agent its own disk. If many workers on different machines serve the same threads at once, use LangGraph’s PostgresSaver instead, and keep the files on the disk. See one writer at a time.

Mount a disk

Create a disk in the Archil console and save a disk token for it. Then mount it on the machine that runs the agent:
Your own server, a container with FUSE access, or another provider’s sandbox. See Mount on Linux for the requirements.

Point the checkpointer at the disk

Install LangGraph and the SQLite checkpointer:
This graph has one node, work, where your model and tool calls go. Here it writes a file to the thread’s workspace on the disk, so you can see the files and the checkpoints persist together. The only Archil-specific line is the path passed to sqlite3.connect:
agent.py
Run two turns of the same thread:

Continue on another machine

Unmount the disk, which flushes every write to Archil, and mount it on a different machine. In an Archil sandbox, stopping or deleting the sandbox does the same; the disk and its data are kept.
The new machine picks up the thread’s earlier turns from the checkpoints and the files from the workspace:

What’s on the disk

Any LangGraph feature that reads checkpoints, such as get_state_history, time travel and human-in-the-loop interrupts, works across machines the same way, because it reads the same file. A checkpoint or branch of the disk captures the checkpoints and the workspace together.

One writer at a time

By default, a mount takes exclusive access to the disk, so a second machine can’t mount it for writing while the first one has it. That’s what SQLite needs: its file locks don’t extend across machines, and SQLite’s own docs say WAL mode needs every process using a database on the same host. A second archil mount while the disk is mounted elsewhere stops with:
To run many agents at once, give each agent, tenant or task its own disk, each with its own checkpoints.db. If many workers on different machines need to write the same threads at the same time, use PostgresSaver from langgraph-checkpoint-postgres for the checkpoints, keep the files on an Archil disk, and store their paths in the graph state.

Next steps

Agent frameworks

What CrewAI, the OpenAI Agents SDK and Microsoft Agent Framework keep in files.

Temporal

Durable workflows, with each activity in its own sandbox and its files on a disk.

Sharing disks

Exclusive, shared and conditional mounts.

Performance tips

Getting the most out of SQLite on a disk.