Skip to main content
SQL stores workspace files in a database’s tables, laid out as AgentFS’s. The files last as long as the database does. One database holds one filesystem.

Configuration

For Python or Node, set path to the SQLite file. Leave it out to keep the database in memory:
A Postgres server, a Durable Object’s storage or a D1 database mounts from code, through its driver. See the SDK guides. Add capacity: 100MB under config to cap the bytes the files hold. See capacity.

SDK guides