Use buckets
Updated: 23 November 2026
A bucket is S3-compatible storage for files: uploads, images, exports, the app's backups. It lives in Hetzner Object Storage in Falkenstein (Germany) and is private: only requests with the project's key get through. Every S3 library works (AWS SDKs, boto3, minio, rclone, aws s3). A bucket costs €0.02 per GB and month, billed by the hour; empty buckets cost nothing. Limits and messages are under limits.
Short version for the agent
create_bucketwithproject,name(for exampleuploads) andservices(the services that use the bucket).- The answer gives
access.endpoint,access.region, the S3 namebucket.s3_nameandaccess_key_idshortened (HF…WXYZ). The named services get all of it as secrets, the secret key included; the answer does not show it. - In the contract, list the secrets on the service so that they reach the app:json
"secrets": ["AWS_ENDPOINT_URL_S3", "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_REGION", "S3_BUCKET"] plan_deploymentandapply_deployment. The app reads the endpoint fromAWS_ENDPOINT_URL_S3(newer AWS SDKs do this on their own) and the bucket fromS3_BUCKET.list_bucketsshows size, cost and the month's download volume.
Secrets
create_bucket writes for each service in services:
| Secret | Content |
|---|---|
AWS_ENDPOINT_URL_S3 | https://s3.helfinity.cloud |
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY | The project's key |
AWS_REGION | fsn1 |
S3_BUCKET_<NAME> | S3 name of this bucket, e.g. S3_BUCKET_UPLOADS=uploads-myproject |
S3_BUCKET | S3 name of the first bucket the service gets; another bucket does not overwrite it |
A project has one key for all its buckets. The platform does not show the secret part to the agent, so that it does not end up in the chat or a file; the services get it as the secret AWS_SECRET_ACCESS_KEY. If you need it outside the platform, for a local script or your CI for example, ask your agent for create_bucket with reveal_secret: true, which shows both parts of the key in full (with the name of an existing bucket this works at any time and changes nothing). To give another service access, call create_bucket again with the same name and that service in services: the bucket stays as it is, the service gets the secrets and the answer says created: false.
Names and addresses
The name in the project (uploads) becomes <name>-<project> in S3, e.g. uploads-myproject, because S3 names are unique across the platform. Both addressing styles work:
- Path style:
https://s3.helfinity.cloud/uploads-myproject/image.png - Virtual host style:
https://uploads-myproject.s3.helfinity.cloud/image.png
Examples
Node.js (AWS SDK v3):
import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3";
const s3 = new S3Client({}); // reads endpoint, region and key from the environment
await s3.send(new PutObjectCommand({ Bucket: process.env.S3_BUCKET, Key: "images/a.png", Body: data }));Python (boto3):
import os, boto3
s3 = boto3.client("s3", endpoint_url=os.environ["AWS_ENDPOINT_URL_S3"])
s3.upload_file("a.png", os.environ["S3_BUCKET"], "images/a.png")From your own computer (with the key from the answer of create_bucket):
aws --endpoint-url https://s3.helfinity.cloud s3 cp ./export.zip s3://uploads-myproject/Files for visitors
There are no public buckets. For downloads in the browser, the app creates a signed URL (presigned URL, valid up to 7 days) and redirects there, or it serves the file itself. Uploads from the browser also go through a signed PUT URL.
What S3 can do here
Supported: reading, writing, deleting objects (also 1000 at once), listing (ListObjects v1 and v2), metadata (x-amz-meta-*), copying within the project, multipart uploads, signed URLs, the SDKs' checksums.
Not supported (S3 NotImplemented): versioning, Object Lock, bucket policies, ACLs, CORS, lifecycle rules, tags, website hosting, SSE-C. Buckets are created and deleted only by the MCP tool, not by CreateBucket/DeleteBucket over S3.
Delete
delete_bucket deletes only an empty bucket (otherwise BUCKET_NOT_EMPTY): delete the objects first, e.g. with aws s3 rm --recursive s3://uploads-myproject. If the project is deleted, the contents are kept for 7 days for recovery and are then deleted.
When money runs short
If the project's spending is frozen (budget reached or credit empty), reading and deleting continue, writing does not. After an emergency stop the bucket is closed. Stored data keeps costing until it is deleted.