Your agent needs to work on data that already lives in S3: a few hundred GB of documents, a dataset, a repo snapshot. Agents are good with files. They reach for ls, grep, cat, Python, git and SQLite, and they are much worse at paging through ListObjectsV2. So the practical question is how to give the agent a file system over the bucket without copying the data somewhere else first.
There are three serious options today: Amazon S3 Files, Mountpoint for Amazon S3, and Archil. They all expose existing objects as files without a migration. They differ in which file operations actually work, where you can mount them, and when writes show up in the bucket.
The short version
| Amazon S3 Files | Mountpoint for Amazon S3 | Archil | |
|---|---|---|---|
| What it is | NFS file system for an S3 bucket, built on Amazon EFS | Open-source FUSE client that turns file operations into S3 requests | Managed POSIX file system with an SSD layer replicated across AZs, synced to your bucket |
| Buckets | Amazon S3, with Versioning enabled | Amazon S3 only | Amazon S3, GCS, Cloudflare R2, S3-compatible stores |
| Where you can mount | AWS compute | Anywhere you can run the client | Anywhere Linux runs, including other clouds and sandbox providers |
| Edit existing files | Yes | Sequential writes only; overwrite is opt-in and replaces the whole file | Yes, including random writes and appends |
| Rename | Works on the file system; in the bucket each object is copied and deleted, so not atomic | Files on S3 Express One Zone only; no directory rename | Atomic on the disk, including directories |
| Several machines writing | Yes, over NFS | No coordination between writers | Yes, up to 5,000 clients per disk |
| When writes reach the bucket | After 60 seconds without writes to the file, as a new object version | On close or fsync | In the background, usually ~20 seconds after the last write |
What breaks when an agent uses a "read-mostly" mount
Agent workloads are not data-lake workloads. In one session a coding or research agent will typically:
-
git cloneorgit checkout(lots of small files, renames, lock files) -
npm installorpip install(thousands of small files, directory renames) - open a SQLite database and update it in place
- append to a log or notes file across many tool calls
Mountpoint is built for the opposite pattern: large sequential reads and write-once files. That makes it excellent for training data and data lakes, and it's free. But in-place edits, appends, and directory renames don't work, so git, package managers and SQLite fail or need workarounds.
S3 Files gives you real NFS semantics on AWS. That's a big step up for agents running on EC2, ECS, EKS or Lambda in the same account. The trade-offs are that it's AWS-only, it requires bucket versioning, and a rename on the file system becomes a copy-and-delete per object in the bucket.
Archil keeps the bucket as the system of record but serves reads and writes from its own SSD layer, so in-place edits, appends and atomic renames behave like a local disk. It also runs outside AWS and works with GCS and R2.
When to pick each
Pick Mountpoint when reads of large objects dominate, one writer at a time creates new files sequentially, and you want a free client with no service in the data path.
Pick S3 Files when your agents run on AWS compute, you want IAM-governed access to existing S3 data with S3 Versioning as your history, and you already isolate the code that runs there.
Pick Archil when agents edit files in place, run git, npm or SQLite on the data, or rename directories; when several machines write the same tree; when the data is in GCS or R2; or when your agents run outside AWS, for example in E2B, Modal, Daytona or Vercel Sandbox.
What mounting an existing bucket looks like with Archil
Create a disk that points at the bucket. The objects already there show up as files, and files the agent writes land back in the bucket as normal objects at the matching key.
import * as archil from "disk"; const { disk, token } = await archil.createDisk({ name: "research-data", mounts: [{ type: "s3", bucketName: "my-bucket", bucketPrefix: "datasets/", accessKeyId: "AKIA...", secretAccessKey: "...", }], }); Then mount it wherever the agent runs:
curl -s https://archil.com/install | sh sudo mkdir -p /mnt/archil export ARCHIL_MOUNT_TOKEN="<disk-token>" sudo --preserve-env=ARCHIL_MOUNT_TOKEN archil mount <org>/research-data /mnt/archil --region aws-us-east-1 On S3 you can skip static keys and use a bucket policy scoped to the disk instead. A few behaviors are worth knowing before you point production data at it:
- Writes are durable once
fsyncreturns. Other Archil clients see them immediately; tools reading the bucket directly see them after the background copy. - Objects written straight to the bucket show up after Archil relists that directory, usually within 5 to 10 minutes. A directory that hasn't been listed yet picks them up on first read.
- Don't write the same file from the bucket side and the file system side at the same time.
- Deleting the disk leaves your data in the bucket.
The full walkthrough, including the bucket policy and the GCS and R2 variants, is in the docs: Mount an existing S3 bucket as a POSIX file system.
If you've run agents against Mountpoint or S3 Files and hit something I didn't cover here, I'd like to hear about it in the comments.

