Skip to main content

List the fleet

Returns every real Fly agent machine HermesCo has spun up, plus the default spec and whether Fly is configured.
boolean
True when FLY_API_TOKEN is set. When false, machines is empty and provisioning is disabled.
object
The default agent body spec: { image, cpuKind, cpus, memoryMb, region, app }.
AgentMachine[]
The live fleet. Each machine includes id, name, state, region, image, cpuKind, cpus, memoryMb, role, agentId, workspaceId, goal, createdAt, uptimeMs, and computeCostUsd.

Provision a machine

Spins up a new dedicated, performance-class Fly machine as an agent body.
string
Tags the machine to a workspace so it can be reused by ensureAgentBody.
string
A short description of what this body is for. Surfaced on the machine card.
string
Optional explicit agent id.
string
Optional human label.
AgentMachine
The provisioned machine, waited until it reaches started.

Errors