Run boxd in your own cloud: the self-host installer is open

A complete boxd cluster in your own Google Cloud project, AWS account or on your own servers, from an open-source installer, in about an hour. Free up to 16 worker vCPUs.

Michiel VoortmanMichiel Voortman13 min readProduct
A small round creature wheels a boxy machine on a trolley through the front door of its own warm workshop, while another holds the door and an open slatted crate sits on the step. In the distance a large cold hall full of machines glows dimly at the end of a dark street.
On this page · 13 min

Why we opened the installer

Some teams can't put agent workloads in someone else's cloud, so the platform has to come to theirs. Take a team that runs coding agents against its main repository. Each agent needs a full computer with the source code checked out, a token that can push branches, and often cloud credentials to run the tests. On a managed service, all three sit in the vendor's account.

For many teams that's fine. For a bank, a hospital supplier or any company whose security policy says source code and credentials stay inside its own cloud account, it rules the managed service out. The policy is about where the platform runs, so the only thing that satisfies it is running the platform in their account.

So the installer is now a public repository. It's open source under Apache-2.0, which means you can read what it will do to your account before it does it, and you can run it without asking us. The open part is the installer: the platform it downloads comes as signed binaries that are free to use but closed, and the sections below say what you can and can't check about them. Self-hosting here means running the whole platform yourself: the cluster (the group of servers that runs your machines) lives in your account, and you operate it.

What you get

You get the same product, because a self-hosted cluster runs the same release as boxd.sh, with the same console, CLI, API and SDKs. There's no separate self-host edition. What a licence changes is how large the cluster can grow, whether it can run Windows machines and whether you can switch off the usage report. If you've never used it, our introductory post covers the basics. In short, every user or agent gets a machine: a full Linux microVM (a small virtual machine with its own kernel) that keeps its disk.

On your own cluster, that comes with:

  • Each machine gets its own HTTPS URL under your domain and is reachable over SSH. You pick the machine sizes you offer.
  • You can save a machine as a snapshot and start new ones from it, or fork it, which makes a live copy of a running machine.
  • People sign in with Google or GitHub, or with single sign-on through Entra ID, Okta, Google Workspace or Keycloak.
  • The cluster requests TLS certificates for your zone on its own, from Google Trust Services on Google Cloud and from ZeroSSL on AWS and bare metal. Inside a corporate network it can use your own certificate authority instead.
  • The installer creates a storage bucket for disk backups, and you decide the schedule.
  • The console serves a CLI that's already pointed at your cluster, and it's the one our docs describe.

Self-hosted clusters can also run Windows Server machines next to Linux ones. That needs a licence key that includes Windows guests, and you build the Windows image from your own installation media.

What runs in your account

A boxd cluster is six roles, and the example install fits them on two nodes. A node is one server, either a cloud VM the installer creates or a host you prepared, and one node can carry several roles.

RoleWhat it does
controlKeeps the cluster's state
workerRuns the machines, as microVMs under KVM, the virtualisation built into Linux
proxyConnects every machine to the internet over HTTPS and SSH
consoleServes the web console, the API and the CLI
dnsAnswers DNS queries for your zone
metricsStores the graphs the console shows for each machine

In the example configuration, one control node carries everything except the worker role, and a second node is the worker. On Google Cloud the example sizes are an n2-standard-8 control node and an n2-standard-16 worker. You add workers when you need more capacity. You can also run three control nodes instead of one: they replicate the cluster's state between them, so the cluster no longer depends on a single server.

The roles are not six products to operate. The platform is a single Rust binary, so there's no Kubernetes, external Postgres or Redis to run, and the control role keeps the cluster's state itself. The installer can also deploy onto GKE for companies that have standardised on Kubernetes, but the three paths in this article don't use it.

Operating the cluster comes down to a short list. You run apply to upgrade, and each run moves the cluster to the newest release unless you pin one. You set the backup schedule, keep the state key safe, and add and remove people yourself, because there's no directory sync. And you watch the nodes, because nobody else is on call for them.

The install in five steps

Installing boxd takes about an hour once you have the permissions, and most of that is one command that runs on its own. Before you start you need three things: Docker on the computer you install from, somewhere to run the cluster (a Google Cloud project with billing, an AWS account, or your own Ubuntu hosts), and a DNS zone you can delegate. Delegating means telling the internet that a subdomain you own, say boxd.example.com, is answered by the cluster's own name servers. You do that with a couple of records at your DNS provider, so check that you're allowed to add them before you begin.

The commands below are for Google Cloud. AWS follows the same five steps with different sign-in and bucket commands, and bare metal skips the cloud steps because you prepare the hosts yourself: they share a private network, the proxy and dns nodes need public IP addresses, and the encrypted state is a file you back up instead of a bucket. The install guide has all three paths in full, including the checks left out here, such as whether your project has enough CPU quota. Every command goes through ./boxd-install, which runs the tooling inside a Docker image, so you install nothing else. The first run pulls about 1.8 GB.

1. Sign in to your cloud. After cloning the repository, sign in through the wrapper. This opens Google's sign-in flow and stores the credentials for the installer to use. The guide lists the commands that follow it to select your project.

Terminal
./boxd-install gcloud auth login --no-launch-browser

2. Make your state key, once. The state key encrypts everything the installer knows about your cluster. Generate it with the command below, which prints a random key, and keep it as BOXD_STATE_KEY in a file outside the repository, as the guide shows. If you lose it you lose the cluster's identity, and we can't recover it for you, so put a copy in your password manager.

Terminal
openssl rand -hex 32

3. Create the state bucket. The encrypted state lives in a storage bucket in your own project. The first command creates it with public access blocked, and the second turns on versioning so a bad write can be undone.

Terminal
./boxd-install gcloud storage buckets create gs://mycluster-state --location europe-west4 --uniform-bucket-level-access --public-access-prevention
./boxd-install gcloud storage buckets update gs://mycluster-state --versioning

4. Describe the cluster and apply. Before this step, create an OAuth client in your Google Cloud project, which is what lets people sign in with Google; the guide shows how. Then copy the example configuration and change every value marked CHANGE: your project, region, zone and node sizes. validate checks the file before anything is created, and providers edit stores the OAuth client's ID and secret. Then apply builds the cluster. It runs unattended for 20 to 40 minutes and ends by printing the DNS records you need.

Terminal
cp cluster.example.toml cluster.toml
./boxd-install validate
./boxd-install providers edit
./boxd-install apply 2>&1 | tee apply.log

5. Delegate DNS and sign in. Add the records apply printed to the parent zone at your DNS provider. The cluster requests its certificates once the delegation resolves, so expect a few minutes of TLS errors first. You can watch for the delegation with:

Terminal
dig NS boxd.example.com +short @1.1.1.1

When that returns your name server, open https://app.boxd.example.com and sign in before anyone else does, because the first person to sign in owns the cluster's organisation. Who can sign in at all is set by the OAuth client from step 4. The guide recommends making it internal, which limits sign-in to accounts in your own Google Workspace.

Running apply again is safe, and it's also how you roll out a configuration change or a new release later.

If you'd rather be walked through it, the repository includes a prompt for Claude Code. You start Claude Code in your copy of the repository, fill in your project and zone, and paste the prompt. It runs on your computer through the same wrapper, follows the install guide one step at a time and waits for your approval after each step. The prompt tells it to keep secrets out of the chat, and it tests the finished cluster at the end.

What you can verify yourself

Putting someone else's platform into your account takes trust, so here are the five things you can check yourself, and after them the one you can't.

  • What the installer does. It's open source, so everything it creates in your account is in the repository to read before you run it.
  • What it installs. The binaries, console, CLI, host kernel and machine image come as a release bundle that we sign. The installer checks that signature against the keys in the repository before it unpacks anything.
  • Who can read the cluster's secrets. The state, which includes TLS keys and provider secrets, is encrypted in a bucket you own, under the state key you made in step 2. We never see that key.
  • Who can reach the cluster. On AWS you can choose private ingress, where no node has a public IP address and people reach the cluster over your VPN. That mode needs your own certificate authority and a forwarding rule on your internal DNS. The Google Cloud install in the steps above gets public addresses, with your sign-in in front of the console.
  • What the cluster sends us. Each cluster sends us one usage report an hour, with counts only and no personal data: no names, emails, machine names or IP addresses. You can print the exact report on a control node, and the reference lists every field. Turning it off takes a licence key with telemetry opt-out.

What you can't check is the platform's own code, because the binaries are not open source. The signature tells you they came from us, and it doesn't tell you what they do. They're free to use within the limit below, for personal use and for your company's internal business operations, and their licence doesn't allow redistribution. The repository's licence files state both sets of terms, so read them if you plan to run the cluster for your own customers.

What it costs and where it stops

Self-hosting boxd is free up to 16 worker vCPUs, and a licence lifts the limit. The count is the logical CPUs of your worker hosts added together, not the vCPUs you hand out to machines. One 16-vCPU worker is the whole free tier, however many small machines you run on it. Free here means free of charge from us: the servers are yours, so your cloud provider still bills you for them.

It's free at that size because we want to support smaller teams, homelabs and anyone who wants to experiment on their own hardware. A cluster that goes over the limit keeps running and keeps its existing machines, but it refuses to create new ones. For more than 16 worker vCPUs, or for Windows machines, you need a licence key, and you get one by getting in touch with us. You can add the key to a running cluster and apply again.

The limits you should know before you start:

  • One zone per cluster. On Google Cloud and AWS, a cluster runs in a single zone of a single region. Three control nodes protect you from losing a server, but a zone outage still takes the whole cluster down.
  • Workers need hardware virtualisation. Workers run VMs, so in a cloud they need instance types that allow nested virtualisation (a VM running inside a cloud VM), and not every type does. On Google Cloud that means N2 or N1 types. On AWS it means C7i, M7i, R7i, C8i, M8i or R8i types, or any metal type. On bare metal, the hosts run Ubuntu 24.04 and the workers need KVM and a dedicated data disk.
  • The hourly usage report described above stays on unless your licence includes the opt-out.

Managed or self-hosted: which to pick

Pick by where the workload is allowed to live, because that's the problem self-hosting solves. The release is the same either way; what differs is whose account it runs in and who keeps it running.

  • Nothing forces the workload into your account: use boxd.sh. There's nothing to install, upgrade or watch, and self-hosting would mostly give you a cluster to operate.
  • The workload has to live in your account, or you have hardware you want to use: self-host. Start on the free tier with two nodes, and ask for a licence when you outgrow 16 worker vCPUs.
  • It has to live in your account, but you don't want to operate it: ask us about BYOC (bring your own cloud), where we run the cluster inside your cloud account.

If your requirement is about what machines can reach, and less about where they run, read about machines inside your own network before you decide.

To start, read the self-hosting page, then open the repository and follow the install steps. If you need more than the free tier, Windows machines, or a second opinion on your setup, talk to us.

Frequently asked

Is self-hosting boxd free?
Yes, up to 16 worker vCPUs, counted as the logical CPUs of your worker hosts added together. The free tier is there for smaller teams, homelabs and anyone who wants to experiment on their own hardware. Above 16 worker vCPUs, or for Windows machines, you need a licence key, which you get by contacting us at boxd.sh/contact.
Is self-hosting boxd hard?
It takes about an hour and five steps: sign in to your cloud, make a state key, create a storage bucket, fill in one configuration file and run apply, then delegate a DNS zone. Apply runs on its own for 20 to 40 minutes. The step people most often get stuck on is DNS, so check first that you can add records for a subdomain.
Do I need Kubernetes to self-host boxd?
No. The platform is a single Rust binary, with no Kubernetes, external Postgres or Redis to run, and the example install is two nodes. The installer can deploy onto GKE if your company has standardised on Kubernetes, but nothing requires it.
What is the difference between boxd.sh and self-hosted boxd?
The product is the same: a self-hosted cluster runs the same release, with the same console, CLI and SDKs. What differs is whose account it runs in and who operates it. On boxd.sh we run everything. Self-hosted, the cluster is in your Google Cloud project, AWS account or on your servers, and you keep it running.
Where can I self-host boxd?
On Google Cloud, on AWS, or on bare metal hosts you prepare yourself. On Google Cloud and AWS a cluster runs in one zone of one region. Workers need hardware virtualisation, so in a cloud they need instance types that allow nested virtualisation.
Does a self-hosted boxd cluster send data back to boxd?
It sends one usage report an hour with counts only and no personal data: no names, emails, machine names or IP addresses. You can print the exact report on a control node. Turning it off takes a licence key with telemetry opt-out.
Michiel VoortmanMichiel Voortman
PostShare
Published
Nov 30, 2026
Reading time
13 min
Words
2,505
Topic
Product

Read next

Field notes

Subscribe for release notes and architecture write-ups

No spam, ever. Unsubscribe anytime.

Your inbox