Machines
Use your Mac, or add another Mac or Linux host, so agents can run your work.
A machine runs agent work for your organization. The platform decides what runs where; the machine does the work in isolated worktrees and reports back.
What runs on a machine
- Claude Code and Codex, through one adapter shape.
- Each run gets its own git worktree under the machine's working directory. Repositories are cloned once and reused.
- Agents run sandboxed: they can build and run tests, but cannot reach the network or write outside their worktree. Requests to escalate are denied.
- Forge tokens reach only the git process, never the agent.
Authentication modes
A run uses one of two clearly labeled modes:
- Machine login — the provider CLI's own login on that machine. Kairoku never sees it.
- Kairoku-held key — an API key stored by Kairoku and delivered to the run through a scoped grant.
Run slots
A machine runs as many at once as it has room for, 1 to 5, from its CPUs and memory. Machines on an older CLI run one at a time. The platform refuses new claims once a machine's slots are full, and releases queue the rest.
Machine limit
Your plan sets how many machines you can have. See Plans and limits. Machines shows your use. At the limit, Get a code is disabled. Machines over the limit show an Over plan pill and get no new work until you remove one.
A machine that hosts sandboxes is set up differently. See Sandboxes.
Use this Mac
In the desktop app, open Machines and choose Use this Mac. Kairoku enrolls the Mac and starts it serving in the background. There is no code to copy and no terminal.
Another machine
On any other Mac or Linux machine, run:
curl -fsSL https://kairoku.io/install.sh | shThis installs the kairoku command and runs kairoku setup, which signs you in through your browser, enrolls the machine and installs it as a background service that starts at login.
On a machine with no browser, such as one you reach over SSH, open Kairoku › Machines › Another machine. It shows the same command with a one-time enrollment code built in:
curl -fsSL https://kairoku.io/install.sh | sh -s -- --code <code>Codes are single-use and expire. kairoku setup --code - reads the code from standard input instead.
Requirements: macOS, or Linux on x86_64 or aarch64, with Node.js 22 or newer, including npm, and Git. The installer warns if Node.js or Git is missing.
After setup, the service installs the tools Claude Code and Codex runs need into ~/.kairoku/adapters (about 650 MB, downloaded from npm). The machine shows Agent tools not ready until that finishes. If the install fails it keeps that label, retries on its own, and kairoku logs has the reason. Runs that use machine login also need the provider CLI to be signed in on that machine.
The kairoku command
| Command | What it does |
|---|---|
kairoku setup [--code <code>|--code -] [--yes] | Signs in (or uses the code), enrolls the machine and starts the service. |
kairoku install | Puts kairoku on your PATH without connecting this machine. The desktop app offers this on first launch. |
kairoku status [--json] | Shows whether the machine is running and what it is doing. |
kairoku pause / kairoku resume | Stop or resume taking new runs. |
kairoku stop [--yes] / kairoku start | Stop or start the background service. |
kairoku logs [-f] | Shows the machine log; -f follows it. |
kairoku update | Installs the latest release and restarts the service. |
kairoku uninstall [--yes] | Removes the service, the local state and the agent tools, and revokes the machine. Your ~/Kairoku working directory is left in place. |
Remove a machine
To remove Kairoku from the machine you're on, run:
curl -fsSL https://kairoku.io/uninstall.sh | shThis runs kairoku uninstall. If runs are in progress it asks first; on a machine with no terminal, add sh -s -- --yes in place of sh to stop them. On a Mac, the desktop app stays until you move it to the Trash.
Remove a native machine from its row in Machines (sandbox hosts are revoked there). Live runs on it stop, it leaves the list, its past runs keep their history, and it needs setting up again to come back. The service on that machine stays installed until you set it up again or uninstall.