runbox
Single-use, sandboxed GitHub Actions runners on one host. A Go daemon, Docker and Sysbox. No Kubernetes. Apache-2.0.
runbox is an open-source project from Big Bad Byte. It registers GitHub Actions runner scale sets, long-polls for jobs, and starts a just-in-time runner for each one. The runner executes a single job, exits, and its container is deleted.
The default runtime is sysbox-runc. Each runner gets its own dockerd, so docker build, buildx, Compose and service containers work inside the job. It does not use --privileged and it does not mount the host docker.sock. Root inside the container maps to an unprivileged host user.
One daemon can serve several GitHub organisations, repositories or clients, each as a profile, within server-wide limits.
Why it exists
Self-hosted GitHub Actions runners often sit on a shared host, in Kubernetes, or in a privileged container with the host Docker socket. That makes isolation, noisy neighbours and leftover state a real problem.
runbox takes a narrower approach: one Linux host, one container per job, a daemon-managed network and resource limits, and a security model that is written down - including what it does not protect against.
What it does
- Starts a single-use runner per job and deletes the container afterwards.
- Isolates default runners with Sysbox and a private Docker daemon.
- Places runners on their own bridge (
runbox) with a firewall the daemon sets up: internet and DNS only, unless you add exceptions innetwork.allow. Private ranges and the host itself are blocked by default. - Runs an optional caching DNS forwarder (
runbox-dns) on that bridge. - Can run an optional host-wide registry cache for public and private images. A runner can only read cached content that the upstream registry would let that runner read.
- Enforces per-runner and total CPU, memory, disk and I/O limits, and exposes Prometheus metrics, including per-job resource use.
- Starts as root for host setup, then drops to an unprivileged user for normal operation (a root parent stays only when the
hostruntime has to start and stop host runners).
What it does not do
- It does not require Kubernetes, and it does not run a Kubernetes cluster for you.
- It does not make GitHub-hosted runners unnecessary if you do not want to operate a host.
- Today it speaks GitHub Actions only. Support for other CI systems is designed for in the driver interface, but only the GitHub driver ships in 1.0.0.
- The default Sysbox isolation does not protect against kernel exploits (runners share the host kernel), poisoning through persistent volumes, or a job sending its own secrets out to the internet.
- The
runcandhostruntimes are for trusted jobs that cannot run under Sysbox (for example workloads that need bubblewrap). Those jobs can reach the host. Use them only with trusted repositories, on their own labels.
Who it is for
Teams that want to self-host GitHub Actions on machines they already have - a single server or a small farm - and care about job isolation, predictable limits and the ability to run Docker inside the job without giving that job the host Docker socket.
Install (Linux)
You need a Linux host with Docker and Sysbox (sysbox-runc registered). From the v1.0.0 release:
arch=$(dpkg --print-architecture) # amd64 | arm64
curl -fsSLo /usr/local/bin/runbox \
https://github.com/bigbadbyte/runbox/releases/download/v1.0.0/runbox-1.0.0-linux-$arch
chmod 0755 /usr/local/bin/runbox
docker pull ghcr.io/bigbadbyte/runbox/gha-runner:1.0.0
The release also includes runbox-1.0.0-deploy.tar.gz (systemd units and deploy/install.sh) and the config schema. A minimal config starts from examples/01-minimal.yaml in the repository. After install, workflows use runs-on: [self-hosted, linux, x64] (the defaults) or the scale set name.
The full operator manual, including volumes, profiles, metrics, upgrades from the former gha-scaleset name, and the security model, is in the README.
Platforms and releases
Release binaries: runbox-1.0.0-linux-amd64, runbox-1.0.0-linux-arm64 and runbox-1.0.0-darwin-arm64. The runner image is a multi-arch Linux image (linux/amd64, linux/arm64).
Linux is the intended production platform. The macOS binary is documented, but runners started from it are still Linux arm64 containers, and per-job volumes and noexec volume modes are rejected on macOS. If you need those features on a Mac, the README says to run the linux-arm64 binary inside the Linux VM instead. Native macOS jobs (Xcode, signing) are not supported.
Licence and security reports
runbox is licensed under the Apache License 2.0. Please do not open a public issue for a vulnerability. Report it privately through GitHub's security advisory form on the repository, as described in SECURITY.md.
Maintainer
Maintained by Darius Juodokas and the Big Bad Byte team. We run runbox in production for our own CI.
Related reading on this site
- GitHub Actions runner security boundary
- CI runner cost per completed build
- Rust CI from Kubernetes Spot to Hetzner runners
- DevOps and Kubernetes consulting
- DevSecOps and security
Help running self-hosted CI
If you want help designing or operating a self-hosted CI fleet, or tightening runner isolation, get in touch. We are a DevOps and performance consultancy; runbox is the tool we have open-sourced for this problem.