Cloudflare lets you run Workers and Durable Objects on your own machines
An experimental workerd clustering mode runs Durable Objects across multiple self-hosted instances, backed by a single S3-compatible bucket and no separate database or consensus service.
Cloudflare shipped an experimental clustering mode for workerd, the open-source runtime behind Workers, that lets you run Workers and Durable Objects across your own machines instead of Cloudflare’s network. Previously workerd ran as a single instance and stored data only on local disk, mainly for local development.
Multiple workerd instances now form a cluster that shares one object storage bucket, Cloudflare’s own R2, Amazon S3 or Google Cloud Storage all work. Conditional writes to the bucket pick a leader for each Durable Object with no separate consensus service, and any instance can accept a request and forward it to that object’s leader. Lose an instance and another takes over its objects without losing acknowledged writes. An existing Workers project using supported wrangler.json config keys runs unchanged, or you can run it standalone with npx workerd serve . or from the published cloudflare/workerd Docker image. Clustering itself, plus most of the newly built-in services (D1, R2, Workflows and others), sits behind an --experimental flag; only Workers, Durable Objects and Durable Object Facets are marked supported rather than experimental.
export WORKERD_CLUSTER_BUCKET=s3://BUCKET/PREFIX
export WORKERD_CLUSTER_KEY=...
npx workerd serve --experimental . --cluster-addr 10.0.0.1:7000
Why it matters: Durable Objects’ main catch has always been that they only run on Cloudflare’s network. This gives you a path to run the same primitive, stateful SQLite-backed objects with alarms, in your own VPC, Kubernetes cluster or on-prem hardware, which matters for data residency or for teams building stateful AI agents who don’t want that state locked to one vendor.
The caveat: Cloudflare is explicit that a cluster is meant to run one application whose code you trust, not a hardened sandbox, and calls this a feedback-gathering release, not a production recommendation yet.