All comparisons

Best storage for files AI agents write and your app reads from S3 (2026)

If your agents run shell tools, git, SQLite or editors on their files and your backend reads the results as S3 objects, use an Archil disk: the agent gets a real POSIX file system, and your backend reads the same files through Archil's S3-compatible API as soon as they're written, or as ordinary objects in your own bucket about 20 seconds after the last write. If your agent only writes finished files through an SDK call or a tool, you don't need a file system: write them straight to Amazon S3, Cloudflare R2, Tigris or Google Cloud Storage, which is simpler and cheaper. On AWS compute, Amazon S3 Files is the native middle ground, giving NFS access to a bucket and exporting changes after 60 seconds without writes.

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

The short list

  1. Archil: Best for agents that work in a real file system (git, SQLite, editors, shell tools) while your backend reads the same files as S3 objects
  2. Plain S3, R2, Tigris or GCS via SDK: Best for agents that write finished outputs (reports, images, JSON, artifacts) through an SDK call or a tool, with no file system in between
  3. Amazon S3 Files: Best for agents on AWS compute (EC2, Lambda, EKS, ECS) that need shared file access to an S3 bucket, with everything inside one AWS account
  4. Cloudflare Sandbox bucket mounts on R2: Best for agents already running in Cloudflare Sandboxes that save files your Workers read from R2
  5. Tigris with TigrisFS: Best for teams storing outputs in Tigris for free egress, whose agents need a simple file view of a bucket
  6. Mountpoint for Amazon S3: Best for agents that read inputs from S3 and write each output once, start to finish, as a new file
  7. Amazon EFS plus a copy to S3: Best for teams already on EFS that only need agent output in S3 for batch jobs, not right away
  8. JuiceFS: Best for a self-hosted POSIX file system on object storage, when nothing else needs to read the bucket directly

Side by side

OptionAgent getsBackend readsAgent's write visible to backendBackend's object visible to agentPer-tenant boundaryCost basis
ArchilPOSIX file system: random writes, atomic renames, locks; mounts in any Linux sandbox or machineArchil's S3 API on any disk; plain objects in your S3, GCS, R2 or S3-compatible bucket on native-format disksS3 API: once the write commits (fsync, or the client's background flush about once a second). Your bucket: usually about 20 s after the last writeThrough the S3 API: on the next file open; directory listings cached up to 5 min by default. Written straight to your bucket: usually 5 to 10 minA disk per tenant; mount tokens, IAM grants and S3 credentials each reach one disk$0.20 per GiB-month of active data, plus your bucket; S3 API reads from outside Archil $0.07 per GB on Developer and Team
Plain S3, R2, Tigris or GCS via SDKObjects through an SDK or a tool call; no file systemThe same bucketAs soon as the upload returnsAs soon as the upload returnsSTS-scoped credentials per prefix, or a bucket per tenantS3 Standard $0.023 per GB-month (us-east-1); R2 $0.015 and Tigris $0.02, both with free egress
Amazon S3 FilesNFS 4.1 and 4.2 file system with locks; AWS compute in one VPCThe linked S3 bucket (Versioning required)After 60 s without writes to the file, as a new object versionAutomatically, through S3 Event NotificationsAccess points (25,000 per file system) with IAM$0.30 per GB-month on its fast layer, $0.03 per GB read and $0.06 per GB written (us-east-1), plus S3
Cloudflare Sandbox bucket mounts on R2A FUSE mount of the bucket inside Cloudflare Sandboxes, using s3fsThe R2 bucketWhen s3fs uploads the fileNo sync delay in productionYour R2 credentials; a prefix mount shows one directoryR2 $0.015 per GB-month, free egress, plus Sandbox compute
Tigris with TigrisFSFUSE mount (a GeeseFS fork); no hard links or locksThe Tigris bucketAfter the write-back cache flushes in the backgroundNot documentedThe access keys you issue$0.02 per GB-month, free egress
Mountpoint for Amazon S3Sequential writes to new files; no in-place edits, renames or linksThe S3 bucketOn close or fsyncImmediately by default; up to the metadata TTL with caching onIAM on the bucket or prefixOpen source; S3 storage and requests
Amazon EFS plus a copy to S3NFS file system on AWS computeOnly what your copy job has copiedAt the next copy; scheduled DataSync tasks run at most hourlyOnly if you copy backEFS access points with IAMEFS Standard $0.30 per GB-month plus per-GB access, plus S3 and the copy
JuiceFSPOSIX file system with atomic renames and locksNot from the bucket: it holds blocks. Through the JuiceFS S3 Gateway you runThrough the gateway, after the client flushesOnly data written through JuiceFSUp to youOpen source; object storage plus a metadata database you run

What to look for

  • Does the agent need files, or just objects?

    An agent that calls PutObject or a 'save file' tool doesn't need a file system. An agent that runs git, npm install, sqlite3, grep -r or an editor does: those tools need in-place edits, atomic renames and directories, which S3's API doesn't have. Decide this first; it rules out half the list either way.

  • Can the backend read plain objects?

    Your app, a queue worker, Athena or a CDN should read the agent's output with an ordinary S3 client, not a special library. Most options keep each file as an object at its path. JuiceFS doesn't: the bucket holds numbered blocks, and only JuiceFS can put them back together.

  • How fast each side sees the other

    Check both directions. Agent to backend: does an object appear when the agent closes the file, after a quiet period, or after a copy job? Backend to agent: when your app drops an input file in the bucket, how long until the agent's mount shows it?

  • Per-tenant isolation

    If each customer has its own agent, the agent's credentials should reach only that customer's files, and your backend should be able to issue narrow, expiring credentials for its own reads and uploads. A directory per tenant on one shared mount isn't a boundary.

  • Where the agents run

    AWS-native file systems mount on AWS compute in one VPC. Sandbox-provider mounts work inside that provider. If agents run in third-party sandboxes, on another cloud or in your customers' accounts, check that the storage mounts there.

  • Cost

    Object storage is the cheapest place to keep the files. A file system layer adds a charge for active data, and some options add per-GB read and write charges or egress. Count what your backend's reads cost, not just storage.

Each option in detail

Best for: agents that work in a real file system (git, SQLite, editors, shell tools) while your backend reads the same files as S3 objects

Create an Archil disk and mount it where the agent runs: an Archil sandbox, another provider's sandbox, a container or any Linux machine. The agent sees an ordinary POSIX file system. Your backend reads the same files in one of two ways. Every disk is also an S3-compatible bucket at Archil's endpoint, strongly consistent with the file system, so a file the agent writes is readable over S3 as soon as the write commits. And a disk synced to your own S3, GCS, R2 or S3-compatible bucket in the native format writes each file there as an ordinary object at its path, usually about 20 seconds after its last write, so Athena, Spark, a CDN or aws s3 read it with no Archil credentials at all.

Strengths

  • Full POSIX for the agent: random writes, appends, atomic file and directory renames, flock and fcntl locks; plain sqlite3 works with one writer machine per file
  • Two ways for the backend to read: Archil's S3 API at once, or your own bucket as plain objects
  • Writes are durable on an SSD layer replicated across Availability Zones when fsync returns, before they reach your bucket
  • A disk per tenant, created in about 9 ms, with per-disk S3 credentials that can expire or be read-only; a tenant's own bucket can admit only that tenant's disk
  • Mounts on up to 5,000 clients per disk, in Archil sandboxes and in Daytona, E2B, Modal, Vercel Sandbox and Cloudflare Containers

Tradeoffs

  • If the agent only writes finished outputs through an API, this is an extra service you don't need; use the bucket directly
  • Your bucket lags the disk: usually about 20 seconds after the last write, up to 10 minutes for a file that keeps changing, and you can't force a sync. Objects your app writes straight to the bucket take 5 to 10 minutes to appear; write through the S3 API when that matters
  • Archil's S3 API isn't a full S3 bucket: path-style only, recent AWS SDKs need request checksums set to when_required, no versioning, lifecycle rules or bucket policies, browser CORS by allowlist, and it isn't built for high-throughput streaming
  • In your bucket, POSIX metadata isn't visible, symlinks are small text objects, and a directory rename shows partial results until it finishes
  • Native-format disks can't be checkpointed or branched; use an Archil-managed disk for that, or Archil's proprietary format in your bucket on Enterprise
  • Mounting outside Archil and bringing your own bucket need the Developer plan ($10 monthly minimum) or above, and S3 API reads from outside Archil count as data transfer, $0.07 per GB on Developer and Team

2. Plain S3, R2, Tigris or GCS via SDK

docs.aws.amazon.com

Best for: agents that write finished outputs (reports, images, JSON, artifacts) through an SDK call or a tool, with no file system in between

If the agent can save its results with PutObject, skip the file system. Give it a tool that uploads to your bucket, or temporary credentials scoped to its prefix, and your backend reads the objects the moment the upload returns. Amazon S3 Standard costs $0.023 per GB-month in us-east-1, with $0.005 per 1,000 PUTs and $0.0004 per 1,000 GETs. Cloudflare R2 ($0.015 per GB-month) and Tigris ($0.02) charge nothing for egress, which matters if your app serves the files to users. A sandbox's local disk can hold scratch work, uploaded at the end of a run.

Strengths

  • The simplest and cheapest option, with nothing new to run
  • No sync delay: objects are readable as soon as they're written
  • Per-tenant isolation with STS session policies or session tags on one prefix, or a bucket per tenant
  • Works from any language and any sandbox

Tradeoffs

  • Not a file system: git, package managers and SQLite can't run on it, and every edit rewrites the whole object
  • Files an agent writes to its sandbox disk are invisible to your backend until uploaded, and lost if the sandbox dies first
  • The next session has to download its files again before tools can use them
  • Small files cost a request each, and S3 egress to the internet is billed

Best for: agents on AWS compute (EC2, Lambda, EKS, ECS) that need shared file access to an S3 bucket, with everything inside one AWS account

S3 Files is a shared file system built on Amazon EFS that fronts an S3 bucket over NFS 4.1 and 4.2, with read-after-write consistency, locks and POSIX permissions. Changes export to the bucket as new object versions after 60 seconds without writes to the file, and objects other applications write to the bucket are reflected in the file system through S3 Event Notifications. If both sides change a file, the bucket wins and the file system's copy moves to a lost-and-found directory.

Strengths

  • Native to AWS: IAM, VPC and billing in one place, no outside vendor
  • Backend writes into the bucket reach the file system automatically
  • Up to 25,000 access points per file system, each enforcing a root directory and POSIX identity
  • Large reads stream from S3 with no file system data charge

Tradeoffs

  • AWS compute only, in one VPC per file system; third-party sandboxes can't mount it
  • Requires S3 Versioning, and each export of a changed file is a new version you store
  • A 60-second quiet period before the bucket sees a change, and renames become a copy and delete per object
  • $0.30 per GB-month on the fast layer, plus $0.03 per GB read and $0.06 per GB written in us-east-1; no hard links

4. Cloudflare Sandbox bucket mounts on R2

developers.cloudflare.com

Best for: agents already running in Cloudflare Sandboxes that save files your Workers read from R2

The Cloudflare Sandbox SDK mounts an R2 bucket, or any S3-compatible bucket, as a local path in the sandbox, read-write by default, and can mount just one prefix. In production the mount has no sync delay. The SDK's credential notes describe s3fs, so the mount inherits s3fs-fuse's limits, and R2 charges nothing for egress.

Strengths

  • No extra vendor if you're on Cloudflare; Workers read the same R2 objects
  • R2 storage at $0.015 per GB-month with free egress
  • A credential proxy option keeps bucket keys out of the container

Tradeoffs

  • s3fs rewrites the whole object on random writes or appends, has no atomic renames or hard links, and doesn't coordinate several clients mounting one bucket
  • Only inside Cloudflare Sandboxes; local development uses a periodic sync instead of a mount
  • Explicit credentials are written to the container's disk unless you turn on the credential proxy, which is off by default
  • R2 normalizes object keys to Unicode NFC, which can trip up file names created on macOS

5. Tigris with TigrisFS

tigrisdata.com · Archil vs Tigris

Best for: teams storing outputs in Tigris for free egress, whose agents need a simple file view of a bucket

Tigris is an S3-compatible object store with no egress fees, at $0.02 per GB-month for Standard storage. TigrisFS, a fork of GeeseFS, mounts a bucket with FUSE and keeps every file as a plain object your backend reads with any S3 SDK. Writes go to a write-back cache and flush to the bucket in the background.

Strengths

  • Plain objects with no extra metadata service; open source (Apache 2.0)
  • Free egress, and one global endpoint
  • Partial writes, truncate, fsync, symlinks and directory renames, per GeeseFS's compatibility table

Tradeoffs

  • No hard links or locking, and GeeseFS doesn't support concurrent updates of one file from several hosts
  • Writes reach the bucket asynchronously, with no documented upper bound
  • Each sandbox runs its own FUSE mount and cache

6. Mountpoint for Amazon S3

github.com · Archil vs Mountpoint for Amazon S3

Best for: agents that read inputs from S3 and write each output once, start to finish, as a new file

Mountpoint is AWS's open-source FUSE client. Reads are fast, and new files written sequentially become S3 objects on close or fsync, so a backend sees them right away. It refuses everything else an agent's tools tend to do: seeking back in a file, renaming, linking or locking.

Strengths

  • Free and open source, nothing else to run
  • Objects visible on close; by default new objects in the bucket show up immediately

Tradeoffs

  • No in-place edits, no renames on general purpose buckets, no links or locks, so git, npm and SQLite fail
  • One writer per file and no coordination between mounts
  • Amazon S3 only; AWS says other S3-compatible services may work but aren't supported

7. Amazon EFS plus a copy to S3

docs.aws.amazon.com · Archil vs Amazon EFS

Best for: teams already on EFS that only need agent output in S3 for batch jobs, not right away

Agents work on an EFS file system, and a job copies the results to S3, either your own script or an AWS DataSync task. The agent gets a full NFS file system and the backend gets plain objects, but only as fresh as the last copy, and you pay for both stores.

Strengths

  • Full NFS semantics for the agent
  • Each side uses a familiar AWS service

Tradeoffs

  • The backend sees files only after the copy; scheduled DataSync tasks can't run more often than once an hour
  • Two copies of the data: EFS Standard is $0.30 per GB-month in us-east-1, plus $0.03 per GB read and $0.06 per GB written, on top of S3
  • AWS compute only, and you build and monitor the copy

Best for: a self-hosted POSIX file system on object storage, when nothing else needs to read the bucket directly

JuiceFS gives agents a capable POSIX file system on top of object storage, with metadata in Redis, PostgreSQL, MySQL, TiKV or SQLite. It doesn't meet this page's second requirement: file data is split into chunks, slices and blocks, and in JuiceFS's own words, after writing a file 'you cannot find the original file directly in the object storage.' A backend reads files through the JuiceFS S3 Gateway, a MinIO-based server you run.

Strengths

  • Open source (Apache 2.0) with atomic renames, links and locks
  • Works on many object stores, including on-premises

Tradeoffs

  • The bucket holds numbered blocks, so Athena, Spark, CDNs and aws s3 can't read your files from it
  • You run the metadata database and, for S3 access, the gateway, whose writes aren't serialized across instances
  • Data already in a bucket isn't visible until it's written through JuiceFS

When plain S3 is the right answer

Many agents never need a file system. If yours produces a report, an image or a JSON result and hands it back through a tool call, upload it to the bucket and stop there: S3, R2, Tigris or GCS is cheaper and simpler than anything else on this page, and your backend reads the object the moment it's written.

A file system earns its place when the agent's own tools need it: a coding agent running git and a test suite, a data agent opening a SQLite file, an agent that greps and edits hundreds of files across many steps. There, uploading at the end means the backend can't see work in progress, and the next session starts by downloading everything again.

Two ways your backend reads an Archil disk

Archil's S3 API reads the disk directly, so it sees a write as soon as it commits, and it can also write: PutObject, multipart uploads, appends, deletes and presigned URLs, with credentials scoped to one disk. Use it when your backend needs the agent's files immediately, or uploads inputs the agent should see.

A disk synced to your own bucket in the native format also leaves every file there as an ordinary object at its path. Use that when the data must live in your account, or when tools that can't use a custom endpoint (Athena, Spark, a CDN, a customer's own pipeline) read it. Timing, from Consistency: about 20 seconds after a file's last write to reach the bucket, and 5 to 10 minutes for objects written straight to the bucket to appear on the disk.

Which one should you use?

If you needPick
Agents run git, SQLite or shell tools on files; your backend reads S3Archil
Agents save finished outputs through an SDK or a tool callPlain S3, R2, Tigris or GCS
Everything on AWS compute, inside one accountAmazon S3 Files
Agents already in Cloudflare Sandboxes, writing simple outputs to R2Cloudflare Sandbox bucket mounts
Outputs served to users from a store with free egressR2 or Tigris, directly or behind an Archil disk
Each output written once from start to finish, on AWSMountpoint for Amazon S3
A self-hosted file system where nothing else reads the bucketJuiceFS

Questions people ask

What's the best storage for files AI agents write that my app reads from S3?

If the agents use file tools (git, SQLite, editors, shell commands), an Archil disk: agents mount it as a file system, and your app reads the same files over Archil's S3 API right away, or as plain objects in your own bucket about 20 seconds after each file's last write. If the agents only upload finished outputs, write them straight to S3, R2, Tigris or GCS.

Do my agents need a file system, or can they just use the S3 API?

If an agent saves whole files through a tool call or SDK, the S3 API is enough and is the simplest option. It needs a file system when its tools do: git, package managers, SQLite and editors need in-place edits, atomic renames and directories, which S3 doesn't provide.

How quickly does my backend see a file an agent wrote on Archil?

Over Archil's S3 API, as soon as the write commits to the disk: when the agent calls fsync, or after the client's background flush, which runs about once a second. In your own bucket, Archil copies a file once it has gone 15 seconds without a write, so it usually lands about 20 seconds after the last write, and no later than 10 minutes for a file that keeps changing.

Does Archil have an S3-compatible API?

Yes. Every disk is an S3-compatible bucket named by its disk ID, with ListObjectsV2, GetObject with ranges, PutObject, multipart uploads, CopyObject, deletes, appends and presigned URLs. Credentials are scoped to one disk and can expire or be read-only. It's path-style only, recent AWS SDKs need request checksums set to when_required, and it has no versioning, lifecycle rules or bucket policies. See S3 API.

Can the agent's files stay as normal objects in my own S3 bucket?

Yes, with a disk that uses your bucket as its data source, on Developer and above. Each file is written as an ordinary object at its path in S3, GCS, R2 or an S3-compatible store, readable by any S3 tool without Archil, and deleting the disk leaves the objects in place. These native-format disks can't be checkpointed or branched.

How do I give each customer isolated storage their agent reads as files and my backend reads over S3?

Create one Archil disk per customer from your backend. Mount tokens, IAM grants and S3 credentials each reach one disk, so the customer's agent mounts only its own files and your backend reads them with that disk's S3 credentials. A customer can bring its own bucket, with a bucket policy that admits only its disk. Without a file system requirement, an S3 prefix per customer with STS-scoped credentials works. See Best per-tenant storage for multi-tenant AI agents.

Can my backend read JuiceFS files straight from the bucket?

No. JuiceFS stores file data as numbered blocks plus a metadata database, so the original files aren't in the bucket. Read them through a JuiceFS mount or the JuiceFS S3 Gateway, which you run.

How is Amazon S3 Files different from Archil for this?

Both keep files as objects in your bucket. S3 Files mounts over NFS on AWS compute in one VPC, needs S3 Versioning, and exports a changed file after 60 seconds without writes. Archil mounts in any Linux sandbox or machine, works with GCS, R2 and S3-compatible buckets as well, and also serves the disk over its own S3 API with no sync wait. See Archil vs Amazon S3 Files.

How we chose

We compared ways to give AI agents somewhere to write files while an app or backend reads the same data as S3 objects: what the agent sees, what the backend reads, how fast each side sees the other's writes, how tenants are isolated, where it runs and what it costs. Facts come from each vendor's own docs and pricing pages as of the date above; AWS prices are from the AWS price list API for us-east-1. Sources: Amazon S3 Files, its synchronization and quotas; Amazon S3 pricing; Cloudflare Sandbox bucket mounts and R2 pricing; s3fs-fuse; TigrisFS, GeeseFS and Tigris pricing; Mountpoint semantics; DataSync scheduling; JuiceFS architecture and S3 Gateway; for Archil, Data sources, S3 API, Consistency and Pricing. Archil makes Archil, and ranks it first for agents that work in a file system; when agents only write finished outputs through an API, plain object storage is the better pick, and S3 Files fits teams that keep everything on AWS.