Skip to content

Self-hosting on S3

If the hosted cache isn’t a fit (compliance, air-gapped CI, regional residency, or you just want to run your own), bento speaks the S3 protocol natively. Any S3-compatible bucket works — AWS S3, Cloudflare R2, MinIO, Backblaze B2, etc.

Configuration in bento.toml:

[cache]
local = true
remote = "s3://my-bucket/bento-cache"
remote_region = "us-east-1"
# remote_endpoint = "https://<account>.r2.cloudflarestorage.com" # non-AWS

Credentials come from the standard AWS env chain (AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY, or any IAM-credential-supplier).

Full reference: Configuration › [cache].