Execution host commands
Enroll trusted Macs and manage their VMs and access grants.
host
Remote execution hosts (trusted Apple Silicon Macs running Linux guests). HOST
may also be local, this machine’s own host service. The
remote Mac needs iso setup and the same iso build at the enrolled path.
| Command | Effect |
|---|---|
iso host add NAME [--ssh ALIAS] [--agent-path PATH] |
Contact the host’s fixed host-agent entrypoint over pinned SSH, verify its installation identity, and enroll it |
iso host list / inspect NAME |
List enrollments (no network) / contact the host and show identity, epoch and runtime qualification |
iso host disable NAME / enable NAME / remove NAME |
Refuse new work (observation and cleanup still work) / allow it / forget the enrollment (remote VMs untouched) |
iso host image HOST [--image NAME] [--profile P]… [--rebuild] |
Build or confirm a Linux image on the host from the host’s own build context and profile definitions; vm create requires it |
iso host vm create HOST NAME [--image --vcpus --mem --disk --egress] |
Create a stopped Linux VM (--mem in MiB, --disk in GiB); prints the durable operation id. Fixed defaults (2 vCPUs, 4096 MiB, 16 GiB) do not follow the configuration file. --cpus, --memory-mib and --disk-gib are the older spellings and are still accepted |
iso host vm start HOST NAME [--ttl 8h] / stop / destroy |
Lifecycle with verified native state; --operation-id ID retries the same operation after a lost reply. A start whose boot is unhealthy fails and is stopped; destroy also ends an operation left reconciling (for example on a crashed VM) |
iso host vm list HOST / inspect HOST NAME |
Fresh observations; an unreachable host reports unknown, never stopped |
iso host shell HOST NAME [-- CMD…] |
Open an access session and ssh through the host’s owned relay with the guest key pinned. Exits with the session’s status; a session ended by a signal exits 1 |
iso host session HOST NAME [--detach|--stop] (not both) |
Hold a renewed session and print an ssh -F … line; --detach keeps a coordinator after the command exits, which other iso host commands reuse |
iso host up HOST [PATH] [--name --ttl --egress] |
Create or reuse a project VM on the host, start it, and push the project. Unlike local iso up, every run pushes PATH, including onto a reused VM. On a reused VM an explicit --egress must match the egress the VM was created with; a mismatch (or a host that does not report it) is refused, never applied by recreating the VM |
iso host push HOST NAME [--dir] / pull HOST NAME [--dir] [--apply --stage-id ID [--approve-sensitive PATH]…] |
One-way copy into /workspace / stage changes through the relay, then apply them (applying needs no host). --apply requires the exact --stage-id; --stage-id and --approve-sensitive need --apply, and --dir is refused with it because a stage’s destination is fixed when it is staged. --force and --exclude-git are deprecated and have no effect |
iso host agent HOST NAME claude|codex [-- ARGS] |
Run an agent in the VM; provider credentials stay in this client’s confined proxy, reached through the relay. The agent always runs as proxy.mode = "required" (recognized provider variables are withheld and Codex auth.json is not staged), is refused under proxy.mode = "off", and does not get MCP servers whose headers are resolved on this client or servers in this client’s ~/.codex/config.toml that set http_headers |
iso host editor HOST NAME code|zed [--guest-path PATH] |
A sandboxed editor through the relay; --path is the older spelling of --guest-path |
iso host forward HOST NAME --forward-port GUEST[:HOST]… |
Client-loopback forwards (127.0.0.1 only) that end with the session. --forward-port 3000:13000 forwards guest port 3000 to client port 13000, as iso up --forward-port does. The older positional form LOCAL[:GUEST] (note the reversed order: 13000:3000) is still accepted; the two forms cannot be mixed |
iso host run HOST [--dir] -- CMD… / run-results HOST RUN [--recover|--discard] |
A disposable run: export ~/iso-results before stop, download and verify, then acknowledge. A host receipt that is not succeeded (a failed acknowledgement, recovery or discard) exits 1 even though the request reached the host |
iso host vm resize local NAME [--vcpus --mem --disk] / commit|restore local NAME --image IMAGE |
Stopped-VM maintenance through the local service (refused for remote hosts). resize --disk is an absolute size in GiB; relative sizes (+20) are only for local iso resize. The older positional IMAGE is still accepted; giving both is refused |
iso host operation HOST ID [--cancel] |
Show an accepted operation’s receipt, or cancel it before its first effect |
iso host migrate local [--activate|--rollback] (not both) |
Preview; with --activate, hand stopped Linux instances to the host service (it completes activation; nothing is stopped). Adopted instances are then managed as iso host vm … local NAME; older iso builds refuse the activated root. --rollback undoes a migration that has not completed |
The host service runs under launchd with no parent app, so macOS asks for
Local Network permission for the iso binary itself the first time it
connects to a VM. Until that is allowed (System Settings → Privacy & Security
→ Local Network), its connections to guests are held back and VM operations
fail with no connection attempt completed. Each locally built binary has its
own code identity and asks again.
iso host-agent (hidden) holds the service’s internal entrypoints: daemon,
serve --stdio, relay --stdio, connect --descriptor and
client --host ALIAS --stdio [--relay]. They accept no
guest command or path; requests arrive on stdin.