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
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)