r/opencode • u/lozangle • 1h ago
i built the cheapest way to run your agents (and everything they build)
Once I started using agents for basically everything, I ended up with a bunch of VPSs, running various projects and one-off things. For example a frontend, database, CI, internal tools, and a bunch of experiments that agents ran. Most of them were completely idle and I was still paying for every one. Sandboxes didn't fix this either, since they shut down when idle (& therefore everything the agents built, too).
So, to solve this, I made Heaven. Instead of paying per machine, you buy one block of compute (2 vCPUs, 8 GB RAM, 100 GB storage for $20/mo) and make as many VMs in it as you want. They share resources, so busy computers use the CPU and memory the idle ones don't. Adding another computer is completely free, and you can run as many as you want.
Idle VMs are never get shut down. After a few minutes memory is compressed in RAM, then moved to disk, so they take up very little space, and still start in microseconds. This means that your dev server, database, and any apps/applications keep running and there are no cold starts.
OpenCode is already installed on every VM, so you can ssh in & run opencode.
Some other stuff it does:
- Real VMs with root (QEMU/KVM), not containers. This means that you can run nested virtualization like docker.
- Copy a running VM in about 2 seconds (it's a ZFS clone), so every agent can start from a single clone
- Every VM gets its own HTTP address and website at name.heaven.dev with login in front of it, so whatever your agent builds is already hosted and shareable
- Snapshots, so when an agent nukes something you just roll back
- Agents can manage all of it themselves over SSH, CLI, MCP, and API
Everyone gets $5 in credits to try it @ https://heaven.dev
I'd love to hear what you think, and what you'd want it to do that it doesn't yet. Or any criticisms. Thanks!