All comparisons

Best file systems for AI agents and agent sandboxes (2026)

For a throwaway sandbox that one agent uses and then discards, the local disk with OverlayFS that Docker and most sandbox images already use is the right file system: it's the fastest and costs nothing extra. When the agent's files must outlive the sandbox, be shared by several sandboxes, or be branched per attempt, mount a shared POSIX file system instead: Archil does all three on any cloud and inside most sandbox providers, runs git and SQLite, and branches a disk in about 33 ms. If everything stays on AWS, Amazon S3 Files is the native choice; if you want open source you host yourself, JuiceFS.

Updated . Competitor facts are from each vendor's own docs and pricing pages.

The short list

  1. Archil: Best for agent workspaces that must outlive the sandbox, be shared by many sandboxes, branch per attempt, and work across clouds and sandbox providers
  2. Local disk with OverlayFS: Best for throwaway sandboxes where one agent runs a task and nothing needs to be kept
  3. Amazon S3 Files: Best for agents on AWS compute that need a shared file system over data already in an S3 bucket
  4. JuiceFS: Best for teams that want an open-source shared file system they run themselves, on any cloud or on-premises
  5. Amazon EFS: Best for AWS workloads that share large files at high throughput, where AWS Backup and IAM matter more than small-file speed
  6. Google Filestore agent volumes: Best for agent fleets on GKE that need one small, persistent NFS volume per agent, with cold storage for idle ones
  7. Sandbox provider volumes (Modal, Daytona, Blaxel): Best for sharing files between sandboxes when every agent runs on the same sandbox platform
  8. AgentFS: Best for a single agent whose changes should sit in a reviewable copy-on-write layer, kept as one SQLite file
  9. TigerFS: Best for text and Markdown workspaces that several agents and people edit at once, with history and undo

Side by side

OptionWhat it isOutlives the sandboxShared by many sandboxesgit, SQLite and renamesSnapshots or branchesRuns onYour own bucketPricing basis
ArchilShared POSIX file system; also the durable root disk of Archil sandboxesYes, replicated across Availability ZonesUp to 5,000 clients per diskFull POSIX: hard links, atomic directory renames, flock and fcntl locksCheckpoint in about 13 ms, branch in about 33 ms (p50), on Archil-managed disksAny cloud; Archil sandboxes, E2B, Daytona, Modal, Vercel Sandbox, KubernetesYes: S3, GCS, R2 or S3-compatible, as ordinary objects (those disks can't branch)$0.20 per GiB-month of active data
Local disk with OverlayFSThe sandbox's own disk; image layers plus a writable upper layerNo: the writable layer is deleted with the containerNoLocal-disk semantics, with OverlayFS quirks: the first write copies the whole file up, and renaming a lower-layer directory fails with EXDEV unless redirect_dir is onBtrfs or ZFS snapshots on one machine, if the host uses themWherever the sandbox runsNoIncluded with the sandbox
Amazon S3 FilesNFS file system over an S3 bucket, built on Amazon EFSYesYes, up to 25,000 connections per file systemNo hard links; advisory locks; a directory rename copies and deletes every object under it in the bucketNone; S3 Versioning keeps object historyAWS: EC2, Lambda, EKS, ECSYes, Amazon S3Per GB-month on its high-performance storage, plus access charges
JuiceFSOpen-source distributed file system: data in object storage, metadata in a databaseYesYesFull POSIX per its docs, with flock and fcntl locksjuicefs clone per file or directory; not atomic for directoriesAnywhereYour bucket, in JuiceFS's own chunk formatCommunity Edition free (Apache 2.0); you pay for storage and the metadata database
Amazon EFSManaged NFSYesYes, close-to-open consistencyNFS semantics with advisory locks; every create and rename round-trips to the serverNone native; AWS Backup and replicationAWSNoPer GB-month by storage class, plus throughput
Google Filestore agent volumesMany small managed NFS volumes, one per agent workspaceYes; detached volumes move to a cold tier after 7 days by defaultYes, ReadWriteManyNFSv3 with byte-range locksFork a workspace from a volume snapshot with createFromSourceGoogle Cloud: GKE pods under gVisor, or VMs and containers over Private Service ConnectNoCapacity plus provisioned IOPS, no minimum; access by allowlist
Sandbox provider volumes (Modal, Daytona, Blaxel)A shared volume inside one sandbox platformYesYes; last write wins on the same file (Modal, Daytona)Modal: no distributed file locking, readers reload to see changes. Daytona: not for databasesNot documentedThat provider onlyNoDaytona: included. Blaxel Agent Drive: private preview
AgentFSA copy-on-write file system kept in one SQLite file, in betaYes, as a file you keepNot live: copy the file, or sync it through Turso Cloud"POSIX-like" per its README; FUSE on Linux, NFS on macOSCopy the database fileAnywhere, including the browserNoOpen source (MIT)
TigerFSA file system stored in PostgreSQL: files are rows, directories are tablesYes, in the databaseYes, with ACID transactionsNot documented: the README doesn't cover hard links, mmap or large binary filesPer-file history, savepoints and undo; a fork commandAnywhere that reaches PostgreSQLNo, data is in PostgreSQLOpen source (MIT); you pay for PostgreSQL

What to look for

  • Does it survive the sandbox?

    A container's writable layer is deleted with the container, and a microVM's scratch disk goes with the VM. If the agent's repository, node_modules or half-finished work should still be there tomorrow, it needs to live on something that outlives the sandbox.

  • Can many sandboxes and agents share it?

    Parallel agents, a sandbox plus your backend, or a person reviewing an agent's output all mean several machines on one set of files. Check how many clients can mount it, whether they can all write, and what happens when two write the same file.

  • Is it complete enough for git, SQLite and package managers?

    Agents run ordinary tools. git needs atomic renames and many small files, package managers need hard links and directory renames, and SQLite needs locks and in-place writes. Some file systems built for agents document only a "POSIX-like" interface, and network file systems vary in how well SQLite's locking works on them.

  • Snapshots and branches per attempt

    Agents try things. A checkpoint before a risky step, or a writable branch per attempt, saves copying the workspace and lets you keep the winner.

  • Does it work across clouds and sandbox providers?

    A provider's volume mounts only in that provider's sandboxes, and a cloud's managed file system usually mounts only from that cloud. A file system that mounts anywhere lets you change sandbox providers without moving data.

  • Is it backed by your own bucket?

    Some file systems keep files as ordinary objects in your S3, GCS or R2 bucket, readable by any S3 tool. Others store data in their own chunk format, a database, or a vendor-managed store. That decides how you get data out and whether other tools can read it.

  • What it costs

    Local disk comes with the sandbox. Shared file systems bill per GB-month, plus throughput, access or transfer charges, or you pay for the database and object storage you run them on.

Each option in detail

Best for: agent workspaces that must outlive the sandbox, be shared by many sandboxes, branch per attempt, and work across clouds and sandbox providers

An Archil disk is a POSIX file system served from SSD replicated across Availability Zones, either Archil-managed or synced both ways with your own S3, GCS, R2 or S3-compatible bucket. It mounts on Linux, macOS, Kubernetes and inside other providers' sandboxes (E2B, Daytona, Modal, Vercel Sandbox). It covers both layers on this page: in Archil sandboxes the root file system is an ext4 volume on a durable Archil disk, so OverlayFS and Docker work inside the sandbox and the whole root survives stop and forks with the sandbox; extra disks mount alongside it to share files with other sandboxes.

Strengths

  • Full POSIX on mounted disks: random writes, hard and symbolic links, atomic directory renames, flock and fcntl locks; git, npm and SQLite run on it (compatibility)
  • Up to 5,000 clients per disk; in conditional mode every sandbox can write anywhere, and a write is durable when fsync returns (sharing disks)
  • Checkpoint in about 13 ms and branch in about 33 ms at p50, whatever the disk's size (limits)
  • Fast on agent work: a react git clone took 9.8 s on Archil and 81.5 s on Amazon EFS, and creating and deleting a 16 KiB scratch file took 2.9 ms at p50 against 156 ms on Amazon S3 Files (benchmarks)
  • One client reads at up to 8 GiB/s from several storage servers in parallel

Tradeoffs

  • A managed service, not open source; BYOC runs it in your own cloud account on Enterprise
  • A disk that keeps files as ordinary objects in your bucket can't be checkpointed or branched; branching needs Archil's proprietary format (Archil-managed disks, or your own bucket in that format on Enterprise). Branches can't be deleted yet or merged back
  • By default a disk mounts exclusively on one machine; several writers use conditional mode, where the last write to the same part of a file wins
  • A FUSE-mounted Archil disk can't be an OverlayFS upper directory, because renameat2 flags aren't supported yet; keep Docker's data on the sandbox's root disk
  • On Developer and Team, data leaving Archil costs $0.07 per GB; Enterprise PrivateLink or VPC peering avoids that
  • Public regions are three AWS regions and one Google Cloud region

2. Local disk with OverlayFS

docs.kernel.org

Best for: throwaway sandboxes where one agent runs a task and nothing needs to be kept

This is what an agent gets by default. A container's root file system is its read-only image layers with a writable layer on top, merged by OverlayFS (Docker's overlay2 storage driver, for example). It's local disk, so it's the fastest option here and needs no setup. It also disappears with the sandbox: Docker's docs say the writable layer is deleted when the container is deleted, and recommend volumes for write-heavy data and anything that must persist.

Strengths

  • Local-disk latency, with no network round-trips
  • Nothing to set up or pay for beyond the sandbox
  • Every attempt starts from the same clean image, which is what you want for untrusted, one-off tasks
  • On a Btrfs or ZFS host, snapshots are instant and writable, on that one machine (Btrfs)

Tradeoffs

  • Gone when the container or VM is deleted, unless you copy files out
  • Not shared: another sandbox can't see it
  • OverlayFS quirks: the first write to a lower-layer file copies the whole file up, renaming a lower-layer directory fails with EXDEV unless redirect_dir is enabled, and hard links can break on copy-up
  • Docker notes a performance overhead for write-intensive work such as databases on the writable layer

Best for: agents on AWS compute that need a shared file system over data already in an S3 bucket

S3 Files turns an S3 bucket, or a prefix in it, into a shared NFS 4.1 and 4.2 file system built on Amazon EFS, mountable from EC2, Lambda, EKS and ECS. It gives read-after-write consistency, file locking and POSIX permissions, and writes changes back to the bucket as new object versions after 60 seconds without writes.

Strengths

  • No migration and no vendor outside AWS; the files stay ordinary S3 objects
  • IAM and access points for multi-tenant isolation
  • Large reads stream from S3 with no file system data charge

Tradeoffs

  • AWS compute only, and the bucket needs S3 Versioning
  • No hard links, all locks are advisory, and renaming a directory copies and deletes every object under it in the bucket (limits, synchronization)
  • The bucket wins conflicts; the file system's copy moves to a lost and found directory
  • No snapshots or branches
  • Slower than Archil on small-file writes in Archil's agent workspace benchmark: 30 ms against 8.2 ms p50 for a temp-file-and-rename save

Best for: teams that want an open-source shared file system they run themselves, on any cloud or on-premises

JuiceFS splits files into chunks in object storage and keeps metadata in a database such as Redis, MySQL, PostgreSQL, TiKV or SQLite. Its docs describe full POSIX compatibility, BSD and POSIX locks, and strong consistency across mounts. JuiceFS's own comparison of AgentFS, TigerFS and JuiceFS positions it for large shared workspaces where hundreds of agents mount the same file system.

Strengths

  • Apache 2.0 Community Edition; runs anywhere, including on-premises
  • FUSE, a Kubernetes CSI driver, Python and Hadoop SDKs, and an S3 gateway
  • juicefs clone copies a file or directory by metadata only (clone)

Tradeoffs

  • Files are chunks in the bucket; other tools can't read them as ordinary objects
  • You run and scale the metadata database
  • Copies are per file or directory, and clone isn't atomic for directories
  • Cold small-file reads took 37 ms at p50 with Redis metadata, against 7.5 ms on Archil, in Archil's agent workspace benchmark; JuiceFS was faster on cold stat, directory listings and find

Best for: AWS workloads that share large files at high throughput, where AWS Backup and IAM matter more than small-file speed

EFS is mature, serverless NFS for AWS compute, with close-to-open consistency and NFS v4 advisory locks (features). Regional file systems store data across Availability Zones. It's built for many clients sharing files; every create, rename and attribute change round-trips to the server.

Strengths

  • Mature, with AWS Backup, replication and IAM
  • Fast on large sequential writes
  • Shared NFS locks across clients

Tradeoffs

  • Slow on the small-file work agents do: npm ci took 86.3 s on EFS and 7.6 s on Archil, and 10,000 SQLite transactions took 523 s against 23.9 s (benchmark)
  • No snapshots or branches, and no S3 access to the files
  • AWS only

6. Google Filestore agent volumes

docs.cloud.google.com

Best for: agent fleets on GKE that need one small, persistent NFS volume per agent, with cold storage for idle ones

Filestore agent volumes are managed NFS volumes built for agent sandboxes: one regional pool holds up to 20 million volumes, 50,000 of them active. Google says volumes are created or deleted in one to two seconds and mount into pre-warmed sandboxes in under 100 ms. On GKE, the Filestore CSI driver mounts them into gVisor-isolated pods; other orchestrators use the REST API and mount over Private Service Connect. Detached volumes move to a cold tier in object storage after 7 days by default.

Strengths

  • Designed for many per-agent workspaces, with cold tiering for idle ones
  • ReadWriteMany NFSv3 with byte-range locking, so several pods can share a volume
  • Fork a workspace from a volume snapshot with createFromSource
  • Billed for capacity and provisioned IOPS, with no minimum commitment or base pool fee

Tradeoffs

  • Allowlisted GA: you request access first
  • Google Cloud only, inside your VPC
  • NFSv3, with the usual network file system latency on metadata-heavy work
  • The Agent Substrate integration is in preview and doesn't automate snapshots, cloning or tiering

7. Sandbox provider volumes (Modal, Daytona, Blaxel)

modal.com · Archil vs Modal

Best for: sharing files between sandboxes when every agent runs on the same sandbox platform

Most sandbox platforms offer a volume that outlives one sandbox and mounts in several. Modal Volumes commit changes in the background, and other containers see them after they reload the Volume. Daytona Volumes are FUSE mounts backed by S3-compatible storage, included at no extra cost. Blaxel Agent Drive mounts one drive read-write in several sandboxes, in private preview.

Strengths

  • Built into the platform, with nothing else to run
  • Shared across that platform's sandboxes
  • Daytona Volumes cost nothing extra

Tradeoffs

  • Each mounts only in its own platform (Modal Volumes are also reachable from Modal's SDK and CLI)
  • Last write wins on the same file in Modal and Daytona; Modal has no distributed file locking, and v1 Volumes, still the default, cap at 500,000 inodes
  • Daytona Volumes aren't for databases and are slower than the sandbox's local disk; 100 volumes per organization
  • Blaxel Agent Drive is in one region (us-was-1) during the preview, and drive size isn't configurable yet

8. AgentFS

github.com

Best for: a single agent whose changes should sit in a reviewable copy-on-write layer, kept as one SQLite file

AgentFS, from Turso, keeps an agent's file system, a key-value store and a log of every tool call in one SQLite database. agentfs run starts an agent over a copy-on-write layer so your original files stay untouched until you apply the changes, and agentfs diff shows what it changed (agentfs.ai). It mounts with FUSE on Linux and NFS on macOS, runs in the browser on OPFS, and has TypeScript, Python and Rust SDKs.

Strengths

  • Open source (MIT)
  • One file per agent: snapshot it with cp, inspect it with SQL, move it between machines
  • A built-in audit trail of file operations and tool calls

Tradeoffs

  • Beta, per its README
  • Its README describes a "POSIX-like" interface and documents no limits, so test git and SQLite on it first
  • No live sharing between machines; Turso Cloud can sync the file, but that's not several sandboxes on one file system
  • Throughput and latency aren't documented

9. TigerFS

github.com

Best for: text and Markdown workspaces that several agents and people edit at once, with history and undo

TigerFS, from Timescale (TigerData), mounts a PostgreSQL database as a directory: every file is a row, directories are tables and file contents are columns. Writes are ACID transactions, so several agents can claim tasks by moving files between folders without races. Workspaces can keep every write in an operation log, browsable per file, with savepoints and undo. It mounts with FUSE on Linux and NFS on macOS.

Strengths

  • Open source (MIT), on any PostgreSQL
  • Transactional writes and atomic moves across agents
  • History, savepoints and undo for every change

Tradeoffs

  • Early: version 0.7, and the README says so
  • The README doesn't document hard links, mmap, large binary files or git on it
  • Every file is a database row, so file data lives in PostgreSQL rather than in object storage

The file system inside one sandbox vs one many sandboxes share

These are two different layers, and most agents need both. The first is the sandbox's own root file system: the image plus whatever the agent installs and writes. In a container that's OverlayFS on the host's local disk, and it lasts as long as the container. Making that layer durable means the sandbox platform has to keep the disk, as Archil sandboxes do with an ext4 root on an Archil disk, or you copy files out before the sandbox goes away.

The second is a file system mounted into the sandbox from outside: Archil, S3 Files, EFS, JuiceFS, Filestore agent volumes or a provider's volume. It survives any one sandbox, and several sandboxes, your backend and people can all mount it. A common setup keeps the toolchain and caches on the sandbox's local disk and puts the repository, data and outputs on the shared mount. See how to keep an agent's environment across sandbox restarts.

AgentFS and TigerFS sit in between. They present a database as a file system: AgentFS a local SQLite file for one agent, TigerFS a PostgreSQL database many agents share. That buys auditing, history and transactions, at the cost of a younger, less documented POSIX surface.

Running git and SQLite on a shared file system

git and package managers are dominated by small-file creates, renames and deletes. On NFS each of those waits for the server, which is why npm ci took 86.3 s on Amazon EFS and 7.6 s on Archil in the same benchmark: Archil clients take ownership of a path and acknowledge creates and writes locally.

SQLite is designed for one machine. Its own docs warn that locking on some network file systems has caused corruption and recommend a client/server database when many machines write. On Archil, plain sqlite3 on a mounted disk works with one writer machine per database file. For several writers, the `@archildata/sqlite` integration handles coordination; it's TypeScript only, in AWS regions, and billed per query.

Which one should you use?

If you needPick
One agent, one task, nothing to keepThe sandbox's local disk with OverlayFS
Workspaces that outlive the sandbox and move between sandbox providers or cloudsArchil
Many sandboxes writing one workspace, with a branch per attemptArchil
Files kept as ordinary objects in your own S3, GCS or R2 bucketArchil, or Amazon S3 Files on AWS
A shared file system over an existing S3 bucket, AWS compute onlyAmazon S3 Files
Open source you run yourselfJuiceFS
Large shared files and AWS Backup on AWSAmazon EFS
One NFS volume per agent on GKEGoogle Filestore agent volumes
Every agent on one sandbox platformThat platform's volumes: Modal, Daytona or Blaxel
A reviewable copy-on-write layer for one agent, as one fileAgentFS
Text workspaces edited by agents and people, with history and undoTigerFS

Questions people ask

What is the best file system for AI agent sandboxes?

For a sandbox that one agent uses once and throws away, the local disk with OverlayFS the container already has. For a workspace that must outlive the sandbox, be shared or be branched, a shared POSIX file system mounted into the sandbox: Archil on any cloud or sandbox provider, Amazon S3 Files or EFS on AWS, JuiceFS if you want to host it yourself.

What is the best shared file system for AI agents?

One that several sandboxes can mount and write, that runs git and SQLite, and that's fast on small files. Archil mounts on up to 5,000 clients per disk, across clouds and inside E2B, Daytona, Modal and Vercel sandboxes, and branches in about 33 ms. Amazon S3 Files is the AWS-native option over an existing bucket, and JuiceFS the open-source one.

Is OverlayFS enough for an AI agent sandbox?

For throwaway tasks, yes. It's local and fast, and every run starts from a clean image. It isn't durable or shared: the writable layer is deleted with the container. Put anything you want to keep on a mounted file system, or use a sandbox whose root disk persists.

Can several AI agents write to the same file system at once?

Yes, on a shared file system. On Archil, mount in conditional mode and give each agent its own directory; if two write the same part of a file, the last write wins. S3 Files and EFS use NFS advisory locks, TigerFS uses PostgreSQL transactions, and Modal and Daytona volumes are last-write-wins. Hand off finished work through your orchestrator, not by polling the file system.

AgentFS vs TigerFS vs JuiceFS: which should I use?

AgentFS for one agent whose changes should sit in a copy-on-write layer you can review, kept as one SQLite file. TigerFS for text workspaces that several agents and people edit, with transactions, history and undo in PostgreSQL. JuiceFS for a general shared POSIX file system over object storage that many agents mount. AgentFS is in beta and TigerFS is at version 0.7.

Can I run git and SQLite on a shared file system for agents?

git, yes, on any file system with full POSIX renames and links, though NFS is slow on it. SQLite works best with one writer machine per database file; SQLite's docs warn about locking on network file systems. On Archil, plain sqlite3 works with one writer machine per file, and @archildata/sqlite handles several writers.

What are Google Filestore agent volumes?

A Filestore option for agent sandboxes: many small managed NFSv3 volumes in one regional pool, mounted into GKE pods running under gVisor or over Private Service Connect. Idle volumes move to a cold tier, and workspaces can be forked from snapshots. It's Allowlisted GA, so you request access first, and it runs only on Google Cloud.

Which agent file systems keep files in my own S3 bucket?

Archil (S3, GCS, R2 or S3-compatible) and Amazon S3 Files (Amazon S3) keep each file as an ordinary object at its path. JuiceFS writes to your bucket in its own chunk format. EFS, Filestore, provider volumes, AgentFS and TigerFS keep data in their own stores. On Archil, a disk in your bucket's native format can't branch.

How we chose

We covered the file systems teams use inside agent sandboxes and the ones they mount into many sandboxes at once, and compared what each documents on surviving the sandbox, sharing, POSIX behavior, snapshots and branches, where it runs, where data lives and pricing. Competitor facts come from each project's own docs, READMEs and pricing pages as of the date above; small-file numbers are from Archil's published benchmarks, which you can rerun from the method. Archil makes Archil, and ranks it first for files that must outlive the sandbox or be shared; for throwaway single-agent sandboxes, local disk with OverlayFS is the better choice, and the AWS-native options fit when everything stays in AWS. For storage for agents more broadly, including agent memory, see best storage for AI agents.