All comparisons

Best per-tenant storage for multi-tenant AI agents (2026)

Give each tenant a storage unit whose credentials can't reach any other tenant, and make it something the tenant's agent can actually work in. If the agent runs shell tools, git, Python or SQLite, an Archil disk per tenant does both: credentials are scoped to one disk, it mounts as a POSIX file system in any sandbox, and an idle tenant's data drops to the archive rate. If the agent only reads and writes whole files through an API, an S3 prefix per tenant with STS-scoped credentials is the cheapest and scales to any number of tenants. On AWS with NFS clients, an EFS access point per tenant is the native file system option.

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

The short list

  1. Archil disk per tenant: Best for agents that run tools on files, with each customer's files isolated by credentials and kept between sessions
  2. S3 prefix per tenant: Best for very large numbers of tenants whose agents read and write whole files through an API
  3. EFS access point per tenant: Best for agents on AWS compute that need a shared NFS file system, with tenants separated inside one file system
  4. S3 bucket per tenant: Best for a modest number of large tenants that need their own encryption keys, policies or regions
  5. GCS managed folders or downscoped tokens: Best for Google Cloud stacks that want per-tenant prefixes with IAM
  6. Sandbox-provider volume per tenant: Best for small products that run every tenant's agent on one sandbox provider

Side by side

OptionIsolation boundaryAgent seesTenant limitWhere it worksPricing basis
Archil disk per tenantDisk tokens and IAM grants scoped to one diskPOSIX file system, plus an S3 API1,000 disks per region on Developer, 25,000 on Team, unlimited on EnterpriseAny Linux machine, container or FUSE-capable sandbox; Archil sandboxes$0.20 per GiB-month of active data; idle data at the archive rate or in your bucket
S3 prefix per tenantSTS session policy or session tags limiting credentials to one prefixObjects through the S3 APINone: prefixes aren't a resourceAnywhere that reaches Amazon S3$0.023 per GB-month (S3 Standard, us-east-1), plus $0.005 per 1,000 PUTs
EFS access point per tenantAccess point enforces a root directory and POSIX identity; IAM can require itNFS file system10,000 access points per file system; 1,000 file systems per Region by defaultAWS compute in the VPC; on-premises over Direct Connect or VPN$0.30 per GB-month (Standard, us-east-1), plus $0.03 per GB read and $0.06 per GB written
S3 bucket per tenantBucket policy and IAM per bucketObjects through the S3 API10,000 buckets per account by defaultAnywhere that reaches Amazon S3S3 storage and requests
GCS managed folders or downscoped tokensIAM on a managed folder, or a token limited to a prefixObjects through the GCS APINo limit on managed folders per bucketAnywhere that reaches Cloud StorageCloud Storage storage and operations
Sandbox-provider volume per tenantNone between volumes: Daytona and Modal keys reach every volume in the organization or environmentFile system inside that provider's sandboxesDaytona: 100 volumes per organizationThat provider onlyDaytona volumes free; Modal per GiB-month

What to look for

  • What enforces the boundary

    Isolation has to come from credentials, not from code that promises to stay in its directory. A subdirectory per tenant on a shared file system, or POSIX permissions alone, isn't a boundary if the agent runs untrusted code that can find the mount's credentials.

  • Can the agent work in it?

    Agents run git, package managers, Python and SQLite, which need in-place edits, renames and locks. Object storage gives whole-object reads and writes through an API; a file system gives the agent a directory it can cd into.

  • How many tenants

    Every option has a ceiling: buckets per account, access points per file system, disks per plan, volumes per organization. Check it against your tenant count in two years, not today's.

  • What an idle tenant costs

    Most tenants are idle most of the time. Prefer pricing that follows the data each tenant stores over a fixed cost per tenant or per provisioned capacity.

  • Provisioning and offboarding

    Creating a tenant's storage should be one API call at signup. Deleting it should remove the data, or hand it back, without touching anyone else's.

  • Where agents run

    AWS-native options assume AWS compute. If tenants' agents run in third-party sandboxes, on another cloud or in your customers' accounts, check that the storage mounts there.

Each option in detail

1. Archil disk per tenant

docs.archil.com

Best for: agents that run tools on files, with each customer's files isolated by credentials and kept between sessions

Create one Archil disk per tenant from your backend, in about 9 ms. A disk is Archil's unit of access isolation: disk tokens, IAM grants and S3 credentials each reach one disk, including its branches and checkpoints, so code holding one tenant's credentials can't reach another's files. The disk mounts as a POSIX file system in Archil sandboxes (which handle mount credentials for you), in other providers' sandboxes and on any Linux machine, and your web app reads the same files over S3.

Strengths

  • Credential-scoped isolation, with tokens that can expire or be single-use
  • A real file system for the agent, and an S3 API for your app
  • Cost follows each tenant's data: idle data falls back to $0.025 per GB-month on Archil-managed disks
  • A tenant can bring its own bucket, with a bucket policy that admits only that tenant's disk
  • Offboarding is one delete; a disk on the tenant's bucket leaves the objects with the tenant

Tradeoffs

  • Disk limits per region: 1,000 on Developer and 25,000 on Team; unlimited needs Enterprise
  • Branches share their disk's credentials, so they separate work within a tenant, not between tenants
  • Mounting outside Archil needs Developer or above, and data read out to external compute costs $0.07 per GB
  • A disk on a tenant's own bucket can't be checkpointed or branched (except in Archil's proprietary format, on Enterprise)

2. S3 prefix per tenant

docs.aws.amazon.com

Best for: very large numbers of tenants whose agents read and write whole files through an API

Keep every tenant under its own prefix in one bucket, and hand each agent temporary credentials from STS that can only reach that prefix, either with a session policy passed to AssumeRole or with session tags matched by IAM policy variables such as ${aws:PrincipalTag/tenant}. It's the cheapest pattern and has no meaningful tenant limit.

Strengths

  • No per-tenant resource to create or count
  • Pay only S3 storage and requests
  • Credentials expire: 1 hour by default, up to 12 hours

Tradeoffs

  • Not a file system: no in-place edits or atomic renames, so git and SQLite can't run on it directly
  • Isolation depends on getting the policy right; one wildcard mistake exposes every tenant
  • AWS-specific policy work, and per-request charges add up for small files

3. EFS access point per tenant

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

Best for: agents on AWS compute that need a shared NFS file system, with tenants separated inside one file system

An EFS access point pins a client to a root directory and a POSIX user and group, and a file system policy can require clients to use a specific access point through IAM. Create one per tenant and mount the tenant's access point in its agent's container or Lambda function.

Strengths

  • AWS-native, with IAM, VPC controls and AWS Backup
  • A real shared file system with NFS locks
  • Amazon S3 Files has the same kind of access point, up to 25,000 per file system, over data in an S3 bucket

Tradeoffs

  • 10,000 access points per file system by default, so larger tenant counts need more file systems or a quota increase
  • $0.30 per GB-month for Standard storage in us-east-1, whether a tenant is active or idle, unless lifecycle management moves files to a colder class
  • AWS compute only, apart from on-premises over Direct Connect or VPN
  • Slow on small files: a react git clone took 81.5 s on EFS and 9.8 s on Archil in Archil's benchmark

4. S3 bucket per tenant

docs.aws.amazon.com

Best for: a modest number of large tenants that need their own encryption keys, policies or regions

A bucket per tenant gives each its own bucket policy, KMS key, lifecycle rules and cost reporting, and the strongest separation S3 offers short of separate accounts.

Strengths

  • Simple policies, per-tenant keys and billing
  • Easy to hand a bucket over to the tenant

Tradeoffs

  • 10,000 buckets per account by default, so large tenant counts need quota increases or more accounts
  • Still objects, not a file system

5. GCS managed folders or downscoped tokens

cloud.google.com

Best for: Google Cloud stacks that want per-tenant prefixes with IAM

Cloud Storage managed folders take their own IAM policies, so a tenant's service account can be granted one folder. Credential Access Boundaries downscope a short-lived token to a bucket or prefix, the GCS equivalent of an STS session policy.

Strengths

  • Per-folder IAM without a bucket per tenant
  • Short-lived, downscoped tokens

Tradeoffs

  • Not a file system
  • A downscoped token holds at most 10 access boundary rules
  • Google Cloud-specific setup

6. Sandbox-provider volume per tenant

daytona.io

Best for: small products that run every tenant's agent on one sandbox provider

Daytona Volumes and Modal Volumes mount as file systems in that provider's sandboxes, so a volume per tenant gives each tenant's agent a persistent directory with no extra vendor. Neither scopes credentials to one volume: Daytona API keys cover every volume in the organization, and Modal access follows workspace environment roles. Daytona recommends one shared volume with a subpath per tenant, which separates tenants only at mount time.

Strengths

  • No extra service; Daytona volumes are free
  • A file system inside the sandbox

Tradeoffs

  • No credential boundary between tenants; isolation depends on your code mounting the right volume or subpath
  • Daytona allows 100 volumes per organization
  • Mounts only in that provider's sandboxes, and your backend reaches the files through that provider
  • Last write wins on the same file

A subdirectory per tenant isn't isolation

The tempting shortcut is one shared file system with a directory per tenant. Whatever credential mounts the file system mounts all of it, and POSIX permissions don't stop code running as root in a sandbox. Use subdirectories to organize one tenant's work, such as a directory per agent, and a separate disk, prefix credential or access point between tenants.

Archil's per-tenant storage guide compares the two approaches and covers tenant-scoped credentials, sandboxes and tenants that bring their own bucket.

Which one should you use?

If you needPick
Each tenant's agent runs tools on a file system, anywhereArchil disk per tenant
Millions of tenants, whole-file reads and writesS3 prefix per tenant with STS-scoped credentials
NFS on AWS compute, inside one file systemEFS access point per tenant
A few large tenants with their own keys and policiesS3 bucket per tenant
The same pattern on Google CloudGCS managed folders or downscoped tokens
Every agent already runs on one sandbox provider, with few tenantsThat provider's volumes

Questions people ask

How do I isolate storage per tenant for AI agents?

Give each tenant a unit of storage whose credentials reach nothing else: an Archil disk, an S3 prefix with STS-scoped credentials, an EFS access point enforced by IAM, or a bucket. Don't rely on a subdirectory of a shared mount.

Is a disk per tenant expensive with thousands of tenants?

On Archil, storage is metered on the data each disk holds, not on disk count. Data in the high-speed layer stays active for up to an hour after its last access; after that, an idle tenant pays the archive rate of $0.025 per GB-month on an Archil-managed disk, or only its bucket if it brought one.

Can tenants keep their data in their own bucket?

Yes. Create the tenant's Archil disk with the tenant's bucket as its data source; the tenant's bucket policy admits only that disk's sessions. Files stay ordinary objects, and deleting the disk leaves them with the tenant.

Are Archil branches a way to isolate tenants?

No. A branch shares its disk's credentials, so anyone who can mount the disk can reach every branch. Use a disk per tenant, and branches for parallel work within one tenant.

When is an S3 prefix per tenant the better choice?

When tenants number in the hundreds of thousands or more, store little, and their agents only read and write whole files through an API. It has no per-tenant resource and costs only S3 storage and requests.

How we chose

We compared the ways teams give each customer of an agent product isolated, persistent storage: what enforces the boundary, whether the agent gets a file system, how many tenants each option allows, where it works and how it's priced. Competitor facts come from each vendor's own docs and pricing pages as of the date above. Archil makes Archil, and ranks it first for agents that work on files; an S3 prefix per tenant is cheaper when agents only need object reads and writes, and EFS access points fit teams that stay on AWS.