Add machines
Every machine runs a Takt worker. The worker dials out to the coordinator over TLS, pinned to the coordinator’s key, and keeps one connection open for jobs, code, logs and images. Takt uses no SSH and workers open no ports. The route can be your LAN, Tailscale, or both. Agents on a joined machine submit to the whole fleet too; see How Takt works.
Join
From the coordinator’s machine, join another one you can ssh to:
takt join gpubox.local
takt join vps-1 --tunnel # a machine outside your network, through an SSH tunnel
It checks that the host reaches the coordinator, installs Takt there for the whole machine (sudo asks for your password there once, over the same SSH; --user installs it for your login alone), joins it already approved, waits until it’s online and says what it can run. It uses your own SSH config and keys, and works for Linux, macOS, and Windows hosts with OpenSSH. --name picks the machine’s name; --no-agents skips teaching its agents.
Without SSH, run the installer on the machine and approve the code it shows (see Install Takt), or paste the line takt join-command prints.
A Windows PC has no SSH server out of the box, so takt join can’t reach it (it says so when it finds one). Run this on the coordinator’s machine, and paste the line it prints into PowerShell on the PC:
takt join-command --windows
Windows asks once for an administrator. Its prompt can open behind the PowerShell window, as a flashing shield on the taskbar; if nobody approves it within 5 minutes, the line stops, changes nothing, and says how to try again. Setup installs Git for Windows with winget. On a brand-new PC winget may not work yet for the first few minutes after the first sign-in: then install Git for Windows from git-scm.com and run takt doctor.
To try a machine before it takes the fleet’s jobs, print the line with --not-used, test it with takt run --machine <name> -- <command> from the coordinator’s machine, then turn it on. Until then it holds its own --here jobs too, and their wait reason says so:
takt machine set <name> --jobs on
takt status and the dashboard show each machine as ready, getting ready or needs setup (with the command that fixes it), asleep, off (it was shut down; Wake-on-LAN turns it on only if its firmware allows), won’t wake (Wake-on-LAN didn’t bring it back), stopped (someone took it out of use), or offline. A Mac with FileVault waits for its disk to be unlocked at its screen after a reboot. The coordinator’s own machine is marked (coordinator).
A Mac mini or a home server
Any machine that is on most of the time makes a good build machine. Turn on auto-sleep if it can wake over the network, and it sleeps when there is no work and wakes when there is:
takt machine set mac-mini --auto-sleep on
A Mac runs macOS jobs in fresh VMs and Linux jobs in its Linux VM. A Linux box with KVM can also run Windows VMs (takt machine set home-server --windows on). See Run Windows and macOS jobs.
A cloud machine (Hetzner example)
A Linux VM you rent joins like a machine at home. We tried the smallest Hetzner Cloud VM, a cx23: 2 vCPU, 4 GB of memory, 40 GB of disk, Ubuntu 24.04, about EUR 5.49 a month (EUR 0.0088 an hour).
| Step | Took |
|---|---|
| Create the VM through Hetzner’s API | 33 s |
| Install Docker | 43 s |
| Run the join line | 7 s, connected 1 to 2 s later |
| A small Dockerfile job | 18.9 s |
A cold go build ./... of a mid-size Go project |
74 s (a busy 24-thread desktop: 38 s) |
1. Make the coordinator reachable. The worker dials out to the coordinator on port 7743, which a VPS can’t reach at home by itself. Two ways:
- An SSH tunnel Takt keeps up.
takt join vps-1 --tunnelputs a key of the coordinator’s own on the VPS, allowed only to listen on its127.0.0.1:7743(no shell), and keepsssh -N -Ropen from the coordinator’s machine, reconnecting when it drops. No tailnet, and no port open at home. The machine’s card says it’s “reached through an SSH tunnel from” the coordinator, andtakt removecloses the tunnel and takes the key back out. In our trial with a hand-made tunnel, the worker reconnected 9 s after it dropped and kept its settings. - A tailnet, better for machines you keep: put the VPS on Tailscale and join it with
takt join vps-1 --host <the coordinator's tailnet name>.
2. Prepare the VM.
sudo apt update && sudo apt install -y docker.io docker-compose-v2 docker-buildx
sudo systemctl enable --now docker
sudo apt install -y systemd-oomd # optional: Ubuntu Server doesn't run it
3. Join it with takt join vps-1 --tunnel; add --not-used to test it first. The installer puts Takt’s own account, takt, in the docker group. Cloud VMs can’t be woken with Wake-on-LAN, and most don’t expose KVM, so Windows and macOS VMs stay on your own machines. When you’re done, takt remove <name>, then delete the VM.
What Takt keeps on a machine
Everything Takt keeps can be rebuilt, and Takt removes it again:
| What | Removed after | Except |
|---|---|---|
| Job checkouts | 1 day after the job | |
| Project images and canary builds | 7 days unused | |
| Project caches and repository mirrors | 14 days unused | |
| VM images a machine no longer needs | 30 days | |
| A Rust project’s cargo target dir | trimmed every hour to 30 GB, or a tenth of the disk if that is less, least recently used first | anything built or used in the last 10 minutes, and never while a job uses it |
| Images in the coordinator’s registry | beyond each project’s newest three | images a queued or running job needs, and any pushed in the last 30 minutes |
| The coordinator’s copy of a repository’s snapshots | 14 days with no job |
Takt keeps at least 15% of each disk it writes to free, and its own files under a quarter of it. When a disk falls short, the worker tidies at once (it looks every 5 minutes, and before each job) and removes whatever of Takt’s was used least recently, whatever kind it is, until the disk is back within budget. Nothing a running job uses goes, and nothing used in the last 10 minutes. Docker’s build cache, which other builds on the machine share, goes in the same order, but only to free space.
Takt never touches Docker images or volumes that aren’t its own, nor folders in its cache dir that aren’t its own: the event log names those when a disk stays short. A machine with less than 5% of its disk free takes no new job until it has more. TAKT_CACHE_DIR moves the cache to a bigger disk.
Remove a machine
takt remove laptop
This revokes its token, cancels its jobs and closes its tunnel. A per-user worker uninstalls itself the next time it connects; a machine-level one stops and forgets the fleet, and sudo takt uninstall there removes it.