A Full Minecraft Java Server Now Runs Entirely on Cloudflare and Sleeps When Nobody's Playing
The build comes from a developer who goes by sshkeda on GitHub. It needs a Cloudflare Pro zone, because Spectrum won't run on a Free one, and the world waits in R2 storage between naps.

A player types a hostname into Minecraft’s Multiplayer screen, and five Cloudflare products wake up to answer.
Spectrum catches the TCP connection on port 25565 and hands it to a Worker. The Worker passes it to a Durable Object. The Durable Object starts a container running Paper, the Minecraft Java server, and relays bytes between the player and the box. The world itself sits in R2, Cloudflare’s object storage.
The project is called Minecraft Server on Orange Cloud, it’s MIT licensed, and the pitch fits on a sticker: no VPS to patch and no ports to forward. You deploy it with one command into your own Cloudflare account. Players join at a hostname on your domain.
The trick is the sleeping. After 10 minutes with nobody online, the server saves the world and shuts the container down. The next player to connect wakes it in about 30 seconds. While it’s awake, the container saves the world to R2 roughly every 5 minutes, and every wake restores that world before Paper starts. Your survival world is a tarball that gets unpacked each time somebody knocks. (Its name is survival/latest.tar.gz, if you want to download it.)
Setup takes a few more steps than the sticker lets on. You need macOS or Linux with glibc (Windows and Alpine are out), Bun or Node, and Docker running. You also need a Cloudflare account on Workers Paid with R2 enabled, and a domain whose zone is on Pro or Business.
The deploy runs through Alchemy, which keeps its state in a Worker on your workers.dev subdomain. You sign in with OAuth and keep All Scopes, because Basic Scopes can’t create the Spectrum route. Then you fill in a .env with the Minecraft EULA, a hostname with no DNS record yet, and the usernames allowed in.
The whitelist is on by default. With it on, an empty player list lets nobody join, you included.
The money works like this. The $5 Workers Paid plan is one fixed cost. The other is a Pro zone at $25 a month, or $20 billed yearly, because Spectrum doesn’t work on Free zones. That’s $25 to $30 before a single creeper spawns. Spectrum, it turns out, has a dress code.
On top of that you pay for the container only while it’s awake. At Cloudflare’s published rates, the README says, a server played two hours a day adds about $5 a month. One that never sleeps adds about $40 to $90.
The limits are spelled out. There is one world per stage, with no console, plugins or mods. Only the latest checkpoint is kept, so an unclean stop loses everything since the last successful save. That’s usually a few minutes, longer if saves to R2 were failing. The world and a compressed copy of it have to fit together on the container’s 12 GB disk, and bigger worlds take longer to wake.
Nothing in the world runs while it sleeps. Any Minecraft connection wakes the server, server list refreshes included. Port scans that send no Minecraft handshake don’t.
Spectrum routes to Workers are in public beta, and so is Alchemy. The README also notes the project isn’t affiliated with Mojang, Microsoft or Cloudflare, which is a fair thing to say about a build this loud.
Expect copies of this pattern for other games. Anything that talks TCP on a fixed port and can save its state to object storage fits the same relay: a Worker at the door, a Durable Object holding the line, a container waking up behind it. The sleep-until-knocked part is the reusable piece, and it likely shows up well beyond blocks.
The obstacle is the entry price. A Pro zone for Spectrum means the clever part is gated behind a $25 subscription, so the first wave of imitators will probably be people who already pay for a zone. If Spectrum routes leave beta on friendlier terms, the same trick could reach hobbyists who run one small server and want nothing else.
“No VPS to patch” also comes with a subscription of its own. Zero maintenance has a monthly fee now, same as everything else.
Minecraft’s whole premise is that sleeping skips the night. Here, sleeping skips the invoice. (A bed made of billing hours.)
Nothing in the world runs while it sleeps, creepers included.