Machines & isolation

Where phases actually execute, and the boundary around agent code that cannot be switched off.


Peractor orchestrates runs; machines execute them. Wherever a phase runs, one rule holds: agent code never executes on the control plane directly, and there is no way to turn isolation off.

Peractor's machine pool

Unless a phase says otherwise, it runs on Peractor's machine pool. This is where every phase of most workflows runs.

Every phase there runs in a fresh, one-shot container: non-root, all capabilities dropped, no privilege escalation, CPU, memory, and process caps, torn down when the phase ends. Multi-tenant deployments, including Peractor Cloud, run that container under gVisor for a kernel-level boundary.

The container sees only what the run needs: the workspace, the secrets the workflow declares, the agent credential, and a repository-scoped git token — none, for a run that leaves restricted files out. Never the host's own environment.

Because Peractor owns the boundary, agents inside it run with their own permission prompts disabled. The human control point is the gate, not a terminal prompt nobody is watching.

What the machine pool has installed

Every container starts from the same image, whatever the project. It carries what most repositories need to build and run their own tests, so a command or check step can call any of these without installing anything first:

ToolVersionCommands
Node.js24node, npm, npx, pnpm, yarn
pnpm and Yarn through Corepack, at the version the repository's packageManager names.
Python3.11python3, python, pip
An environment on the PATH that a step can pip install into; python3 -m venv for one of the repository's own. python-docx, openpyxl and python-pptx are already in it.
uv0.13.6uv, uvx
Fetches another Python when a project asks for one.
Go1.27.3go, gofmt
A newer go line in go.mod fetches its own toolchain; go install puts programs on the PATH.
Java21.0.12.1java, javac, jar
Eclipse Temurin, with JAVA_HOME set.
Maven3.9.16mvn
Gradle9.8.2gradle
A repository's own ./gradlew downloads the version it names.
Rust1.99.1cargo, rustc, rustup, rustfmt, cargo clippy
Through rustup, so a rust-toolchain.toml installs the toolchain it names.
gcc12gcc, g++, make, pkg-config
build-essential, with the OpenSSL and Python headers native packages most often build against.
Everyday toolsgit, git-lfs, curl, jq, zip, unzip, xz
Browser, media and documentschromium, ffmpeg, convert, soffice, pdftoppm, serve
CHROME_BIN names the browser.

Anything else, a step fetches for itself. It runs without root, so apt-get is not an option, but a download into the workspace is, and so are rustup, Go's own toolchain switch and uv for another version of what is already here. Databases and cloud CLIs are not in the image. A step that calls a program the image lacks exits with code 127, and the failure names what the image does have.

A paired machine, below, is different: its phases use whatever is installed on it.

Which agents the machine pool runs

The image carries the CLI of every agent Peractor builds in, each pinned to a version tested with it:

AgentCommandVersion
Claudeclaude2.1.322
Codexcodex0.167.1
OpenCodeopencode2.2.7
Copilotcopilot1.0.109
Gemini CLIgemini0.68.0

Being in the image is not yet enough. The machine pool signs agents in on Peractor's own account, so it runs one when three things hold: its CLI is in the image, Peractor holds a credential it signs in with (or the project's settings name one from your organization's secrets), and it reports the tokens it spends — your plan's month is counted in them, and an agent that reported none would run uncounted.

Copilot is the one this usually leaves out: it signs in with a person's own Copilot seat, which belongs on that person's machine. A self-hosted server runs whichever agents its environment holds a credential for, Copilot included when its operator gives it a token.

The agent pickers mark the agents that run only on your own machines. A workflow that puts a machine-pool phase on one is refused when it is saved, naming the phase, and a run that reaches one anyway — the project's default agent changed since — fails that phase saying why rather than waiting. Give the phase runner labels so it runs on one of your own machines, or pick another agent.

Your own image

When a project needs what the image does not have — a pinned Node, CUDA, Elixir, a system library, your company's own CLI — a phase can start from your organization's own image instead. Name it beside runner: on a phase, in a workflow's defaults, or in the run defaults of a project or the organization. The nearest one wins, and default means Peractor's image.

defaults:
  image: ghcr.io/acme/ci:2026-10
phases:
  - id: build
    title: Build
    image:
      build:
        dockerfile: ci/Dockerfile
        context: ci
        secrets: [NPM_TOKEN]
  - id: review
    title: Review
    image: default

Every editor has an Image field under Runs on that writes the same thing.

  • From a registry. A public image needs nothing. A private one is pulled with the sign-in your organization keeps for its registry in Settings → Registries: a username and token for GitHub's, Docker Hub, Google's Artifact Registry, GitLab's or any other, or an access key for Amazon ECR, which Peractor turns into a fresh pull token each time. The sign-in is used by Peractor's pull and never reaches the container.
  • Built from your repository. Peractor builds the Dockerfile from the run's base branch, in a sandbox of its own under the run's limits. Restricted files are left out of what the build sees, and only the secrets the workflow lists reach it, as build secrets. A private base image, in a FROM or a COPY --from, is pulled by Peractor with the sign-in your organization keeps for its registry, the same way it pulls a run's image, and handed to the build ready to use: the build itself never gets a sign-in. The image a # syntax line names has to be public. With an egress allowlist the build reaches what a run may; a public base image's registry has to be on the list. When a base image needs a sign-in your organization hasn't got, the build's log says so. A self-hosted host needs Docker 25 or later to build on a private base image. The build's log is the phase's first entry, and the same files are built once. A host that serves more than one organization builds only under gVisor, as Peractor Cloud does; anywhere else the image picker says so as soon as you pick Built from a Dockerfile, and a phase that asks for one says to push the image to your registry and name it instead.

Your image needs nothing of Peractor's but /bin/sh. Peractor mounts its runner, git, Node and the agent CLIs read-only beside whatever the image holds, so Alpine, Debian, Ubuntu and distroless images all work. A step finds the image's own tools first; the variables the image sets reach its steps. The user, the dropped capabilities, the limits and the network stay Peractor's.

A run pins each image's digest the first time a phase uses it, so every later phase, retry and resume runs the same image even when the tag moves. The run view shows the image and its digest beside each phase, and the audit log records it. Peractor keeps what it pulls and builds for your organization only, up to your plan's allowance on Billing & usage; past that, the least recently used are pulled or built again when a run needs them.

A paired machine runs on its own toolchain, with no image. A phase that names both an image and a machine stops before it starts and says so — take the machine off, or write image: default.

Your own machines

Need a phase on hardware you own — a macOS builder with Xcode and simulators, a GPU box, a machine inside your VPN? Pair it in Settings → Machines and run the one-line command it gives you.

The machine dials out to Peractor over one WebSocket, so it needs no inbound ports, no public IP address, and no tunnel. A laptop behind home NAT works as-is. Full walkthrough: Run on your own machine.

A paired machine carries labels, and work reaches it only when a workflow phase asks for one:

phases:
  - id: build
    title: Build the app
    runner: { labels: [macos] }
    steps: […]

Three rules keep pairing safe:

  • A machine receives only your own organization's runs.
  • It receives only phases that name its labels. An unlabelled phase always uses Peractor's machine pool, so pairing a laptop can never quietly capture work that expected isolation.
  • Every registration is authenticated. An anonymous connection is refused.

On your machine the agent runs directly — that is the point, since GUI work, simulators, and your toolchain are why you paired it. So the machine itself is the boundary there. Pair only machines you trust with your organization's work.

Running directly also means the machine brings its own tools. Nothing is containerized there and Peractor installs nothing, so git and the agent CLI your workflows use have to be on the machine. Peractor prints a check of exactly that when it starts, and a phase that cannot find one fails saying so, naming the machine. Settings → Machines shows the version of each agent CLI the machine found, since a paired machine runs whatever its person installed rather than the image's pinned one.

If a phase targets labels and no matching machine is connected, it parks at its gate with the reason rather than silently falling back to a Linux container. Start Peractor on the machine, then approve to retry.

The warm workspace cache

By default each phase clones fresh. For install-heavy repositories, a workflow can reuse one workspace across its phases:

defaults:
  cacheWorkspace: true

Phases then share one volume — but every phase still resets it hard to the remote branch on entry, so git stays the only source of truth. Only git-ignored files like node_modules survive between phases. The volume is dropped when the run ends, and anything that cannot use it falls back to a fresh clone.

Without it, a phase in a container still clones onto a volume of its own rather than into the container's filesystem — emptied before the phase and removed after it. Under gVisor, files written inside the container count against the phase's memory cap; files on a volume do not, so a large install no longer spends the cap on bookkeeping.

Each lane of a fan-out gets a volume of its own, so lanes running at the same time on different branches do not reset the tree under each other.

A run that leaves restricted files out never uses the cache: each of its phases starts from a fresh copy, since a tree cloned earlier could still hold them.

If a machine disappears

A machine that drops its connection fails the phase it was holding, and the phase parks at its gate where Approve retries it.

A machine reconnects automatically — a slept laptop re-registers on wake — and a server restart re-dispatches whatever was in flight, from the branch. Losing hardware never loses work: the branch has everything that completed.