Ubicloud: progs, Postgres state and SSH turn leased bare metal into a cloud
Open source alternative to AWS. Elastic compute, block storage (non replicated), firewall and load balancer, managed Postgres, K8s, AI inference, and IAM services.
At a glance
- What is it?
- ubicloud/ubicloud is an AGPL-3.0 Ruby control plane that stores desired state in Postgres, drives bare metal over SSH and builds VMs, managed Postgres, Kubernetes and runners on top. Self-hosting currently cloudifies Hetzner machines only.
- Who is it for?
- Choose Ubicloud if you have bare metal, or want GitHub Actions runners and managed Postgres on rented servers, and you can operate a Ruby and Postgres control plane yourself. Avoid it if you need replicated block storage, since the project describes its block storage as non replicated, or if your servers are not at Hetzner and you want the self-hosted path today.
- Can I use it commercially?
- Yes, with strict conditions. AGPL-3.0 is a network copyleft licence: if people use a modified version over a network, for example as a hosted service, you must offer them its source code under the same licence.
- Is it still maintained?
- Yes. The repository received new commits within the last day.
- What is it written in?
- Mainly Ruby, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- ubicloud/ubicloud12,426 ★ · +114
| Repository | 2026-10-08 | 2026-11-25 |
|---|---|---|
| ubicloud/ubicloud | 12.3k | 12.4k |
114 Stars in the last 48 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Desired state lives in Postgres and progs push each resource toward it over SSH
Every Ubicloud service follows one pattern. The control plane stores the desired state of each resource in Postgres. State machines, called progs and kept in the prog/ directory, move each resource toward that state by running commands on data plane hosts over SSH. A higher-level service is a composition of the same primitives you can use directly: VMs, block storage, private subnets and firewalls.
That design explains the repository layout. There is a model/ directory for the resources, a routes/ directory for the web and API surface, a rhizome/ directory, a migrate/ directory for database changes and a scheduling/ directory. The top level also carries a clover.rb entry point, a Procfile and a puma_config.rb. The Dockerfile builds in three stages: a Node image runs `npm run prod` to produce the Tailwind CSS, a Ruby 4.0.9 Alpine image runs `bundle install`, and the final image runs the app as a non-root ubicloud user, with foreman starting the parts listed in the Procfile and jemalloc preloaded to reduce memory fragmentation.
The README treats managed PostgreSQL as the example that asks the most of the primitives, because it needs fast and durable disks, a stable private network and careful failover.
Three Nexus progs own a Postgres database, its servers and its backups
On bare metal, each Postgres server is a Ubicloud VM with ubiblk block storage, inside a private subnet, behind a firewall. Three progs manage the database. `Prog::Postgres::PostgresResourceNexus` owns the database as a whole. `PostgresServerNexus` owns each primary, standby and read replica. `PostgresTimelineNexus` owns the backups. Failover, read replicas and major version upgrades are steps in these state machines.
Backups go through WAL-G, which sends base backups and WAL to object storage: Ubicloud's own MinIO clusters on bare metal, S3 on AWS and Cloud Storage on GCP. Point-in-time restore reads from there.
On AWS and GCP the same progs drive the provider's instances and disks, and the provider-specific parts live in model/postgres/aws/ and model/postgres/gcp/. The service list adds high availability with one or two standbys, PgBouncer, and metrics and log export.
Cloud Hypervisor inside Linux namespaces runs the VMs, and IPsec ties them together
The data plane leans on open source parts. For Elastic Compute, the control plane talks to Linux bare metal servers over SSH, and Cloud Hypervisor serves as the virtual machine monitor. Each VMM instance is contained within Linux namespaces for further isolation and security.
Networking uses IPsec tunneling to build an encrypted private network. IPv4 and IPv6 run dual-stack, with public and private networking both offered. The services table adds private subnets, firewalls and load balancers, and says VMs get encrypted disks.
There is a consequence for connecting to your machines. Ubicloud assigns new VMs IPv6 addresses. If your ISP lacks IPv6, the README suggests a VPN or tunnel broker such as Mullvad or Hurricane Electric, or leasing IPv4 addresses from your provider and adding them to the control plane.
Building your own cloud means docker-compose for the control plane and one script per Hetzner server
The self-hosted path starts with three commands from the README:
git clone [email protected]:ubicloud/ubicloud.git
# Generate secrets for demo
./demo/generate_env
# Run containers: db-migrator, app (web & respirate), postgresql
docker-compose -f demo/docker-compose.yml up
# Visit localhost:3000That brings up the control plane and the cloud console on port 3000. The next step is to lease machines. The README's example is a Hetzner server auction link, and it asks you to put `HETZNER_USER`, `HETZNER_PASSWORD`, `HETZNER_SSH_PUBLIC_KEY` and `HETZNER_SSH_PRIVATE_KEY` into the `.env` file. The SSH key is the one you set when you created the robot server.
Before running anything, use the Hetzner robot rescue system to install Ubuntu 24.04. Then cloudify each instance:
# Enter hostname/IP and provider
docker exec -it ubicloud-app ./demo/cloudify_serverAfter that, you can provision and manage cloud resources on those machines.
The cloudify script only handles Hetzner, even though the pitch names Leaseweb and AWS Bare Metal
The README says Ubicloud provides IaaS features on bare metal providers such as Hetzner, Leaseweb and AWS Bare Metal. The self-hosting instructions are narrower. They state the script cloudifies bare metal instances leased from Hetzner, and nothing more.
The cost of that gap is real work. If your servers sit at Leaseweb, the demo does not tell you how to bring them under the control plane. The managed service at console.ubicloud.com is the alternative, and the README says that by using it you receive the underlying provider's benefits, such as price or location.
Also check the instance prerequisites. The README requires Ubuntu 24.04 installed through the Hetzner rescue system, which means the machine must offer that rescue flow. Credentials for the Hetzner webservice come from a user you create by following Hetzner's own instructions, and Ubicloud's text does not cover that process.
Block storage is described as non replicated, and the service list is intentionally short
The repository description names its scope: elastic compute, block storage (non replicated), firewall and load balancer, managed Postgres, K8s, AI inference and IAM services. The words non replicated carry the limitation. A disk behind a VM is not copied to a second host by the block storage layer, so protection for stateful data has to come from somewhere else. Managed Postgres supplies it with standbys and WAL-G backups to object storage.
The project also states how far it intends to go. AWS offers about two hundred cloud services, and the README says Ubicloud will ultimately implement 10 percent of the services that make up 80 percent of that consumption. If you need an AWS service outside that slice, you will keep using AWS next to it.
The table lists Kubernetes as managed clusters with node pools, and AI inference as endpoints for open-weight models with API keys and a playground.
GitHub runners switch by editing runs-on, and the 3x price claim comes from the project
The first example workload in the README is CI on GitHub Actions. Runners come in x64 and arm64, in standard and premium sizes, and you switch by changing `runs-on`. The README says its managed cloud is about 3x cheaper than AWS and that moving a workflow is a one-line change. That price comparison is the project's claim, with no figures attached, so check a bill before planning around it.
The second example is a managed Postgres database with high availability and backups, where you pick the location: bare metal for price, or AWS next to the rest of your stack. The third is owning bare metal and wanting a cloud on it for portability, security or compliance.
You can manage everything from the console, the REST API with its OpenAPI spec in openapi/openapi.yml, the `ubi` CLI in cli/, or the Terraform provider. The package.json pins Node 24.12.0 and npm 11.6.2 in engines, and its scripts cover Tailwind builds and ERB linting, so front-end work on the console needs those versions too. The license is AGPL-3.0, which governs any modified version you run as a network service. The repository has no GitHub releases, and its last push was on 2026-11-02.
Editorial conclusion
Choose Ubicloud if you have bare metal, or want GitHub Actions runners and managed Postgres on rented servers, and you can operate a Ruby and Postgres control plane yourself. Avoid it if you need replicated block storage, since the project describes its block storage as non replicated, or if your servers are not at Hetzner and you want the self-hosted path today. Before committing, run the demo from the repository and cloudify one leased Hetzner machine to see how much of the setup you must handle yourself.
Frequently asked questions
How much does Ubicloud cost?
The README says the managed cloud is about 3x cheaper than AWS for GitHub Actions runners, and that the managed service passes along the underlying provider's benefits such as price or location.
is ubicloud free
The code is open source under AGPL-3.0, so you can run the control plane yourself with the demo docker-compose setup. A managed service at console.ubicloud.com is also offered..
ubicloud vs aws
Ubicloud positions itself as an open source alternative to AWS that runs on bare metal providers. It plans to implement 10% of the services that make up 80% of AWS consumption, so its service list is much shorter.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/ubicloud-ubicloud)Star history chart for your README
[](https://hysenlabs.com/projects/ubicloud-ubicloud)Was this useful?