Storage
Storage setup
Every workspace starts on Lermy-hosted storage. Connect your own private S3-compatible bucket anytime for unlimited storage with zero markups.
Lermy-hosted storage
New workspaces get Lermy-hosted storage automatically, so your first project needs no cloud setup. Hosted storage has a hard quota per plan and never bills overages: 500 MB on Free, 2 GB on Starter, 10 GB on Team and the trial, and 50 GB on Scale. On Free, hosted evidence is kept 30 days; evidence in your own bucket follows your retention setting, including forever.
- Hosted evidence is stored privately under a prefix for each run, and uploads use the same short-lived signed URLs as your own bucket.
- When hosted storage is full, uploads stop with a clear message and the CLI exits with code
4. Free space by deleting runs, connect your own bucket, or upgrade. Nothing is deleted when you downgrade. - Check usage anytime with
lermy storage usageor in Workspace → Settings.
Moving evidence between hosted storage and your bucket
Changing a project's storage only affects future runs. To also move existing evidence, run a storage migration. Lermy copies each file, verifies its checksum, switches the run, and only then deletes the old copy.
# Preview what would move
lermy storage migrate --project <project-id> --to <connection-id> --all-runs --dry-run
# Point future runs at the new storage and move every ready run
lermy storage migrate --project <project-id> --to <connection-id> --all-runs --waitSupported providers and endpoint formats
Lermy works with any private S3-compatible bucket over HTTPS. Use the endpoint URL and region for your provider:
| Provider | Endpoint URL example | Region |
|---|---|---|
| AWS S3 | https://s3.us-east-1.amazonaws.com | Your bucket region (e.g. us-east-1) |
| Cloudflare R2 | https://<account-id>.r2.cloudflarestorage.com | auto |
| Backblaze B2 | https://s3.us-west-004.backblazeb2.com | Your bucket region (e.g. us-west-004) |
| MinIO / S3-compatible | https://s3.your-domain.com | Your configured region (e.g. us-east-1) |
On Backblaze B2, create an Application Key scoped to your bucket rather than using your master key.
Required bucket permissions
Keep the bucket private. Lermy checks that anonymous reads fail before saving a connection so private screenshots cannot accidentally become public. Your access key only needs access to this one bucket (Lermy never lists all buckets in your account or changes bucket visibility).
A least-privilege AWS S3 IAM policy, scoped to the prefixes Lermy uses:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "LermyEvidenceObjects",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject",
"s3:DeleteObjectVersion"
],
"Resource": [
"arn:aws:s3:::YOUR-BUCKET-NAME/organisations/*",
"arn:aws:s3:::YOUR-BUCKET-NAME/lermy-probes/*"
]
},
{
"Sid": "LermyEvidenceListing",
"Effect": "Allow",
"Action": ["s3:ListBucket", "s3:ListBucketVersions"],
"Resource": "arn:aws:s3:::YOUR-BUCKET-NAME",
"Condition": {
"StringLike": { "s3:prefix": ["organisations/*", "lermy-probes/*"] }
}
}
]
}Cloudflare R2 token and Backblaze B2 application key steps, plus how to revoke access, are on the Security page.
How Lermy organizes your bucket
- Every project gets its own folder prefix:
organisations/<org-id>/projects/<project-id>/. Lermy never reads or deletes anything outside its own prefixes. - You can add multiple buckets per organization and switch a project to a different bucket anytime; older PR reviews keep working from their original bucket.
- Rotate bucket credentials without downtime in Workspace → Settings or with
lermy storage rotate.
Ready? Follow the Quickstart to upload your first PR evidence run.