Run containers on a Mac or Linux: images, Compose and Docker's API, with no Docker underneath. Build and ship on the same node: work given to a coding agent waits at a gate for you, and nothing reaches an environment that asks for approval until a person gives it.
Keg 0.15.7 · 1 December 2026 · What is new
● 15 running
web.keg.localhost · opens by name
The app and the console open in Containers, for what runs. Builder has everything, and leads with what waits for you. Press M to switch. A guide in ten steps goes through both, and ticks each step off when it sees it done.
part 1 of the guide
1 thing waiting
Containers, images, volumes, Compose and Docker's API for the work on your computer. Environments, change sets and approvals for moving it to a server. The same app and the same command for both.
A container starts, runs and is removed in about 4 ms through Docker's API, and in about 21 ms with the docker command, most of it the command itself starting. From nothing, booting the Linux machine and running the first container takes about a third of a second.
With nothing running for a minute the Linux machine is paused and uses no processor. A command, or a connection to one of its ports, wakes it in about 8 ms. While it runs, memory it is not using goes back to macOS.
Keg answers Docker's API on a socket of its own. Run keg docker use and docker, docker compose, editors and test libraries talk to Keg as they are. There is no Docker underneath.
keg compose up or docker compose up: health checks, depends_on, service names, volumes and builds, from the file you already have.
Anything with a port opens by name: web.keg.localhost for a container called web. Over HTTPS too, from a certificate authority that can vouch only for those names.
A Linux system to work in, kept until you remove it. What you install stays, your folders are in it at the same paths, and what you start in it is on localhost.
A keg.yaml describes a service once. Keg builds it, releases it, and promotes the exact image from your computer to a server you run. It never rebuilds on the way.
Every deploy is a change set: what would change, and the checks it passed. Environments that ask for a person wait for one, in the app, the browser or with keg approve, and the app notifies you when one starts to wait.
A new release starts beside the old one, must pass its health check, and only then takes the traffic. One that fails never takes the port, and the old one carries on.
keg share web --via server opens what runs on your Mac at an HTTPS name on a server you run, with a Let's Encrypt certificate. No service in between.
Check an image's Alpine, Debian or Ubuntu packages against the open vulnerability database, from the app or with keg scan. Only package names and versions are sent.
keg k8s start, or a button in the app, runs one node of k3s with its state in a volume, ready in seconds once the image is here. The app lists its pods and services.
keg migrate brings images and named volumes over from Docker Desktop, OrbStack or Colima. Nothing there is changed.
The Mac app carries the keg command and the Linux machine inside it and updates itself. Its accent, lettering, text size and language are yours to set, in thirty-eight languages. On any machine, keg ui is the same in a browser.
Command-K, a few letters, Return: a section, a container, a service or an image, in either mode. Back and forward take you where you were.
Download it and run it. No account and no telemetry. There will always be a free version.
Give a piece of work a brief. Agents take it through build, test and ship, on a branch and in a machine of its own, and each stage keeps what it found. Then it stops at a gate. Nothing is merged until a person approves, and an agent cannot answer a gate.
In a project that is a git repository. The work gets a branch, a worktree and a machine; your own folder is left as it is.
Each stage keeps what it found: what was built, which tests passed, which release runs where. The diff is there to read.
Approve, and it is merged and deployed. Send it back with what is to change, and it is built again and asks again. Or reject it.
nothing ships until you say
4 records · diff against main
An agent of your own (Claude Code, Codex, Pi) asks Keg for what the task needs. Each is a Linux container, so what it installs, breaks or leaves running is in there and not on your computer. keg agents prints the guide an agent reads; keg agents --connect claude, codex or pi connects one.
For trying something: does this library import, what does this script print. The folder it runs in is there to read and cannot be changed.
For working on a project. Its folder is in the machine at the same path and can be written to; what is installed stays; a server started in it answers on localhost.
For an app that is to run. Keg builds it and numbers the release. Where changes do not apply by themselves, the release is a proposal that waits for a person.
A log of everything that happened, a database for each app with sign-in and events in it, and services that Keg runs beside your own, each with only what a person allowed it.
Every change the node makes (work, gates, evidence, change sets, services, apps, containers) is written as an event in the same transaction as the change. keg events reads it, and the app and the console have an Events page that refreshes when something happens.
A keg.yaml with uses: [data, identity, events, jobs, realtime] gives an app a database of its own in each environment: sign-in, sessions, organizations and members, events and jobs delivered at least once, and a realtime gateway that sends each user only what they may read. keg dev runs one.
The console, the checks that the test stage asks for, and the realtime gateway run on the node, each in a container with a socket and grants of its own. keg system ls, install, start, stop and rm look after them.
A folder with a keg.service.toml is installed with keg system install. You are asked about each thing it asks for, in plain words, and it holds only what you allowed: pinned by digest, no network but its socket, memory, processes and disk capped. Building one from its folder on the node is off until you turn it on with keg system builds on; off, a service names its image by digest. What a service may rely on.
asked, in plain words
written with each change
Real screens from a node running 0.10.0, nothing mocked: an app with its own database, a change waiting for approval, a Compose project, a database, a cache, a worker, and machines that agents made.
15 running · 1 failed
approve or reject
hello.keg.localhost
local · staging
build ✓ · test ✓ · rejected
asked before it is allowed
And on any machine, with no app to install: keg ui opens the same node in a browser, with the same two modes, a command palette on ⌘K and a layout for any width.
select · stop · start · remove
5,000 lines kept
files · download
runs in the container
2 of 2 running
15 images · 556 MB
158 advisories · 16 packages
5 builds kept
kept until removed
2 in use
sections · containers · machines
approve from anywhere
Use Keg's own command, or point docker at Keg and change nothing else. Either way the containers, images and volumes are the same ones, and show in the app.
Health checks, depends_on, service names, volumes and builds. Run them with Keg's command or with docker compose.
Install Keg on a Linux server you run, and it becomes a node your Mac can deploy to. What moves is the image you tested, never a rebuild.
keg init writes a keg.yaml and a Dockerfile for the project it finds, or keg example makes one to try. keg up builds, releases and runs it locally.
Make an environment that waits for a person, and propose the release to it. To a server you run, keg promote sends the exact image, only the layers it lacks, over mutual TLS.
See what would change and the checks it passed, then approve in the app or the terminal. The release before is one command away.
The same docker client talking to each engine on the same Apple silicon Mac, both warm, so that what differs is the engine. Medians; Docker is 29.2 on Colima. More figures are in the reference.
| Docker | Keg | ||
|---|---|---|---|
| docker run --rm alpine true | 174 ms | 21 ms | 8× faster |
| Start in the background | 94 ms | 13 ms | 7× |
| Stop and remove | 92 ms | 11 ms | 8× |
| exec in a running container | 29 ms | 12 ms | 2.4× |
| List containers | 22 ms | 10 ms | 2× |
| Compose up, Postgres healthy | 1.9 s | 1.9 s | the same |
| Compose down | 370 ms | 135 ms | 2.7× |
| Build, nothing cached | 1.8 s | 1.0 s | 1.9× |
| Build again, all cached | 220 ms | 171 ms | 1.3× |
For Apple silicon Macs on macOS 15 or later. On Linux, from the release's archives for x86_64 and aarch64.