SDK client used for control-plane reads (device-active polling).
OptionalcloudRegion the agent reports via cloudCapabilities. Default 'us-east-dev'.
Credentials for the in-guest CLI login.
OptionaldeviceDevice name to register under. Default: timestamped unique name.
OptionaldevicePassed to agent install --device-type. Default 'cloud'.
OptionalensureVerify/install Node 20+ in the guest before building. Default true.
OptionalguestExtra env vars exported for every in-guest CLI call.
OptionalhooksOptionalinstallPassed to agent install --type. Default 'systemd'.
OptionalloggerOptionalonReceives a ProvisionProgressEvent as each ProvisionPhase begins.
OptionalorganizationSkip the in-guest config read when the org is already known.
OptionalpollDevice-active polling overrides (defaults: 6s interval, 120s timeout).
OptionalprojectRepo root for syncCode. Required unless syncAndBuild is false.
OptionalstageStage the in-guest CLI targets (exported as STAGE). Without it the guest CLI defaults to prod. Use the same stage as the SDK client.
OptionalstartCall vm.start() first. Default true (pass false for an already-running VM).
Optionalsyncrsync + build the source in the guest. Default true.
OptionaltimeoutsIn-guest step timeouts (defaults: node install 180s, agent install 180s, login 30s).
The (cloud-host) VM to provision. The caller constructs it; stop() is returned.
Options for provisionVmWithAgent.