Skip to content

VmConfig

Defined in: types.ts:56

Per-agent VM settings, valid only when the agent resolves to runtime: vm. Sizes are normalised at parse time (memory: 8GiB → memory_mib: 8192). Mounts and sizes are fixed when the machine is created; changing them recreates the machine. [ZOD109]

Properties

image?

optional image?: string

Defined in: types.ts:58

OCI image booted as the microVM. Defaults to the preset’s image.


cpus?

optional cpus?: number

Defined in: types.ts:59


memory_mib?

optional memory_mib?: number

Defined in: types.ts:60


disk_gib?

optional disk_gib?: number

Defined in: types.ts:61


allow_hosts?

optional allow_hosts?: string[]

Defined in: types.ts:63

Hosts the guest may reach. Absent means no network at all. [ZOD128]


env?

optional env?: Record<string, string>

Defined in: types.ts:65

Env for the agent’s ACP process in the guest. Same rules as container.env.


mounts?

optional mounts?: MountConfig[]

Defined in: types.ts:71

Host directories mounted into the guest, beyond the read-only workdir. Same entries as container.mounts, minus id. Directories only: smolvm can’t mount a single file. A credential mounted here is readable by the guest.