# Best per-tenant storage for multi-tenant AI agents (2026): disk, S3 prefix, EFS access point or bucket per tenant

Source: https://archil.com/compare/best-per-tenant-storage-for-multi-tenant-ai-agents

How to give every customer of an agent product isolated, persistent storage their agent can read and write: an Archil disk per tenant, an S3 prefix per tenant with STS-scoped credentials, an EFS access point per tenant, a bucket per tenant, GCS managed folders and sandbox-provider volumes, compared on isolation, file system semantics, tenant limits and cost.

[All comparisons](https://archil.com/compare)

# 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 November 2026. Competitor facts are from each vendor's own docs and pricing pages.

## The short list

1.  [Archil disk per tenant](#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](#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](#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](#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](#gcs-managed-folders-or-downscoped-tokens): Best for Google Cloud stacks that want per-tenant prefixes with IAM
6.  [Sandbox-provider volume per tenant](#sandbox-provider-volume-per-tenant): Best for small products that run every tenant's agent on one sandbox provider

## Side by side

| Option | Isolation boundary | Agent sees | Tenant limit | Where it works | Pricing basis |
| --- | --- | --- | --- | --- | --- |
| Archil disk per tenant | Disk tokens and IAM grants scoped to one disk | POSIX file system, plus an S3 API | 1,000 disks per region on Developer, 25,000 on Team, unlimited on Enterprise | Any 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 tenant | STS session policy or session tags limiting credentials to one prefix | Objects through the S3 API | None: prefixes aren't a resource | Anywhere 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 tenant | Access point enforces a root directory and POSIX identity; IAM can require it | NFS file system | 10,000 access points per file system; 1,000 file systems per Region by default | AWS 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 tenant | Bucket policy and IAM per bucket | Objects through the S3 API | 10,000 buckets per account by default | Anywhere that reaches Amazon S3 | S3 storage and requests |
| GCS managed folders or downscoped tokens | IAM on a managed folder, or a token limited to a prefix | Objects through the GCS API | No limit on managed folders per bucket | Anywhere that reaches Cloud Storage | Cloud Storage storage and operations |
| Sandbox-provider volume per tenant | None between volumes: Daytona and Modal keys reach every volume in the organization or environment | File system inside that provider's sandboxes | Daytona: 100 volumes per organization | That provider only | Daytona 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](https://docs.archil.com/guides/storage/per-tenant-storage)

**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](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html)

**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](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) · [Archil vs Amazon EFS](https://archil.com/compare/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](https://docs.aws.amazon.com/AmazonS3/latest/userguide/BucketRestrictions.html)

**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](https://cloud.google.com/storage/docs/managed-folders)

**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](https://www.daytona.io/docs/en/volumes/)

**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](https://docs.archil.com/guides/storage/per-tenant-storage) compares the two approaches and covers tenant-scoped credentials, sandboxes and tenants that bring their own bucket.

## Which one should you use?

| If you need | Pick |
| --- | --- |
| Each tenant's agent runs tools on a file system, anywhere | Archil disk per tenant |
| Millions of tenants, whole-file reads and writes | S3 prefix per tenant with STS-scoped credentials |
| NFS on AWS compute, inside one file system | EFS access point per tenant |
| A few large tenants with their own keys and policies | S3 bucket per tenant |
| The same pattern on Google Cloud | GCS managed folders or downscoped tokens |
| Every agent already runs on one sandbox provider, with few tenants | That 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.

## Related

-   [Isolated per-tenant storage for multi-tenant AI agent applicationsDisk per tenant vs. a subdirectory per tenant.](https://archil.com/article/isolated-per-tenant-storage-for-multi-tenant-ai-agent-applications)
-   [Scaling a multi-tenant agent product to thousands of tenantsProvisioning, credentials and the cost of one disk per tenant.](https://archil.com/article/scaling-a-multi-tenant-ai-agent-product-to-thousands-of-tenants-provisioning-credentials-and-cost-of-one-disk-per-tenant)
-   [Best storage for AI agentsShared and persistent file systems for agents.](https://archil.com/compare/best-storage-for-ai-agents)

Or see [every comparison](https://archil.com/compare).
