Skip to content
Bodylet AIBodylet AI
All pages

Machines on demand

A host is a machine of your fleet that creates other machines: fresh Linux or Windows desktops, each in its own virtual machine, made from a template in seconds, and destroyed when the work is done. A created machine joins your fleet by itself, and agents use it like any other.

This page describes how hosts work, so you know what to expect.

What a host is#

  • A Linux computer with hardware virtualization (KVM) and a container engine.
  • Its owner writes, in a file on the host, what it may create: the templates (for example "Linux desktop" and "Windows 11"), how many processors, how much memory and disk each gets, and the limits of the whole host: how many machines at once, total processors, memory and disk, and the longest lifetime of a machine.
  • Nothing an agent or the dashboard sends can change that file. A host never creates a machine past its limits.

Windows machines are made from Microsoft's Windows 11 Enterprise evaluation edition.

The Hosts page#

For each host: whether it is online and serves creations, its capacity, and its templates with how many machines of each can be created now. Below: Machines created, with their state (creating, ready, failed, destroyed), their host, who created them, and a Destroy button.

Create a machine yourself#

Choose Create a machine, then:

FieldWhat it sets
Host and templateWhat to create, and where
Name (optional)Lowercase letters, digits and hyphens
Lifetime1 hour, 8 hours, 1 day, 7 days or 30 days, within the host's longest lifetime. The machine is destroyed when it ends

The machine appears in Machines created, then on the Machines page once it is ready. Destroy removes it at once, with everything written on it. It cannot be undone.

Let an agent create machines#

An agent creates machines when it holds two things: the right to create on that host, and a quota you set with Set a quota on the Hosts page:

Quota fieldWhat it sets
Agent tokenWhich agent
Machines at once0 means it may not create
Longest lifetimeOf each machine it creates
Creations per hourHow many machines it may create in one hour
Granted on each machine it createsWhat the agent may do on those machines

The right to create is the capability Create machines, under Machines on demand when you approve the agent or create its token. Grant it on the host, then set the quota. One without the other creates nothing.

Then you ask the agent:

The agent creates the machine, waits until it is ready, does the work, and destroys the machine at the end, even if the work failed.

What a created machine allows#

A created machine has its own local policy, set by its template in the host's file. Unless the host's owner chose otherwise, it allows:

WhatDetails
Commandsterminal.exec
The desktopdesktop.observe and desktop.control, when the template has a desktop. You can watch it on the Screen
FilesReading and writing in one folder, ~/work (C:\Users\<account>\work on Windows)
PreviewsPorts 3000 to 9999
ForwardsPorts 1024 to 65535, of programs of the machine's own account
ApplicationsChecking which applications are there, and installing the missing ones after your approval of each plan. On Linux, with apt, for the whole machine, through the owner's helper: only the packages of its list (Git, Node.js, npm, pip, Java, Go, rustc, Cargo, Docker, .NET, CMake, Ninja, GCC, Clang, FFmpeg, 7-Zip). On Windows, with winget, for the machine's account

For an agent to install there, its quota must grant Install applications (and Check applications) on the machines it creates. Each install plan then waits on the Approvals page.

A template can allow less, or nothing at all. A created machine never has the right to create machines itself, and the template's policy is never applied to the host.

bodylet machine NAME lists what a machine allows. Check it before you rely on a capability.

Approvals on a host#

The owner of a host can ask to approve creations: the first machine of each agent, or every machine (see Approvals). Machines you create yourself from the dashboard never wait for an approval.

Turning a host off#

On the host, bodylet policy deny machines.provision stops new creations. Machines that already exist stay until they are destroyed or reach the end of their lifetime, which the host still enforces.