Skip to content
isolate
Esc
↑↓navigate↵open⌘Jpreview
On this page

Images and resources

Build templates, manage profiles, resize disks, and save or restore images.

setup

Run this once after installing isolate. It creates ~/.iso/config.jsonc from the commented template when no configuration exists, checks prerequisites, and builds a template root filesystem with the Apple runtime. It never boots an instance or launches an agent; follow it with iso up.

With --config-only, setup only writes the JSONC template and exits: it installs nothing, provisions no credentials, and builds no image. An existing configuration file is reported and left unchanged. Image options (such as --profile, --image, --rebuild) are rejected with --config-only.

iso setup [FLAGS]
Flag Description
--config-only Only create the JSONC configuration template, then exit
-y, --yes Deprecated; has no effect and prints a warning. It never trusts a discovered devcontainer.json: pass --devcontainer PATH to use one or --no-devcontainer to ignore it
--vcpus <N> Number of vCPUs (overrides config)
--mem <MiB> Memory in MiB (overrides config)
--rebuild Force rebuild of template rootfs
--profile <list> Install profiles, repeatable or comma-separated: python, node, c, fuzz, rust, go. An empty name (a,,b) is refused
--extra-packages <list> Accepted for compatibility; the Apple backend ignores it with a warning (use a custom profile)
--post-install <path> Accepted for compatibility; the Apple backend ignores it with a warning (use a custom profile’s post_install)
--template-size <GiB> Template rootfs size in GiB (default: 8)
--image <name> Named image to build (default: default)
--guest-user <name> Guest username to bake into the image (default: ubuntu). Use this for devcontainers that declare another remoteUser, such as vscode.
--builder-timeout <duration> Duration to wait for setup image build commands before timing out. Accepts seconds by default, or s, m, and h suffixes.
--workspace <dir> Scan for .devcontainer/devcontainer.json and offer to apply its features / hostRequirements to this setup. Supported public ghcr.io/devcontainers/features/* entries are resolved and baked into the image.
--devcontainer <path> Explicit path to a devcontainer.json to use (skips discovery and prompt).
--no-devcontainer Ignore any discovered devcontainer.json for this invocation.
--dry-run Translate devcontainer.json and print the report, then exit before any setup work.
--guest <OS> linux (default) or macos. See macOS guests.
--ipsw <path> macOS restore image to install; required with --guest macos.
iso setup --profile python,node --template-size 12
iso setup --config-only
iso setup --image ml-dev --profile python
iso setup --workspace . --devcontainer .devcontainer/devcontainer.json
iso setup --guest macos --ipsw ~/Downloads/UniversalMac_27.0.1_Restore.ipsw --image mac

See docs/devcontainer.md for the subset of devcontainer.json isolate reads.

images

List or delete golden images. Without flags, prints every image with its profiles, creation date, and size.

iso images [FLAGS]
Flag Description
--delete <name> Delete a named image
--json Emit a JSON array instead of the text table. Cannot be combined with --delete
iso images
iso images --delete old-image
iso images inspect default
iso images cache status

inspect reports host-recorded provenance. Absent provenance fields are reported as unknown. Runtime cache allocation is reported as unavailable rather than guessed. cache status distinguishes manifests from instance records and does not sum shared disk space. Prune and edit are not available.

With --json, each element is { "name", "profiles", "created", "size_bytes" }. Absence is modelled honestly: profiles is [] (not "none"), created is null (not "unknown"), and size_bytes is the raw byte count (the text path’s "8.0 GiB" is presentation only), or null on the Apple sandbox backend, whose images live in the runtime’s image store rather than isolate’s data directory.

resize

Change a stopped instance’s disk size, memory, or vCPU count. The VM must be stopped first. At least one of --disk, --mem, or --vcpus is required; they can be combined in a single command.

iso resize [NAME] [--disk <SIZE>] [--mem <MIB>] [--vcpus <N>] [--start]
Flag Description
NAME Instance name (required if multiple instances exist)
--disk <size> New disk size. Absolute: 150 or 150G. Relative: +20 or +20G. --size is the older spelling and is still accepted.
--mem <mib> New memory in MiB (minimum 128).
--vcpus <n> New vCPU count (> 0).
--start Start the instance after applying the change instead of leaving it stopped.

Absolute disk values set the disk to that exact size; a + prefix adds to the current size. Memory and vCPU changes are written to the instance’s backend record in the runtime, which is authoritative — the value survives restarts and is reported by iso status. The global vm settings in the configuration only seed these values for new instances.

By default the instance is left stopped and the change takes effect on the next iso start. Pass --start to boot it immediately. The resource change is journaled, so an interrupted change is recovered by the next command that touches the instance.

Combining --disk with --mem/--vcpus applies the disk change first, then the machine-resource change; the two are separate artifacts and are not applied transactionally, so if the second step fails the disk change has already taken effect.

iso resize my-project --disk 150G
iso resize --disk +20
iso resize my-project --mem 8192 --vcpus 4
iso resize my-project --mem 4096 --start

commit

Save a stopped instance’s filesystem as a reusable image, like docker container commit. The committed image is an ordinary isolate image: iso images lists it and iso up --image <name> launches new instances from it. The instance must be stopped first so the filesystem is consistent.

iso commit [NAME] --image <name> [FLAGS]
Flag Description
NAME Instance name (required if multiple instances exist)
--image <name> Name of the image to create (required)
--force Overwrite an existing image with the same name
iso stop my-project
iso commit my-project --image my-project-baseline
iso up . --image my-project-baseline --name fork

restore

Roll a stopped instance back to an image’s filesystem in place. The instance keeps its name, index, IP, and workspace association — only the disk is replaced and its recorded image is updated. Run iso start afterwards to bring it back up.

On the Apple sandbox backend, the restored disk has no SSH host keys, so the next iso start pins the key the guest generates. The address is not guaranteed either: a sandbox moves to a new subnet when its old one has been quarantined (see backends.md).

This pairs with commit for a known-good checkpoint before a risky run:

iso stop my-project
iso commit my-project --image safe-point   # checkpoint
iso start my-project
# ... a bypass-permissions agent run trashes the environment ...
iso stop my-project
iso restore my-project --image safe-point   # back to the checkpoint, same VM
iso start my-project
iso restore [NAME] [--image <name>] [--reprovision] [-y] [--no-agents] [--no-prompt]
Flag Description
NAME Instance name (required if multiple instances exist)
--image <name> Image to restore from. Required on its own; with --reprovision it defaults to the image the instance already records
--reprovision Provision the new disk as a first boot and leave the instance running (see below)
-y, --yes Skip the --reprovision confirmation prompt (required when stdin is not a TTY). Requires --reprovision
--no-agents Skip injecting Claude Code and Codex credentials/config into the VM. Requires --reprovision
--no-prompt Suppress the interactive prompt to set up a scoped GitHub PAT. Requires --reprovision

Unlike destroy + up --image, restore keeps the same instance identity (name, index, IP) instead of allocating a new one. The disk is reset to the image’s size, so restoring an image built before a iso resize returns the instance to the smaller size.

--reprovision

The iso start in the checkpoint recipe above deliberately does not re-sync /workspace or reinstall plugins: a checkpoint image already carries both, and overwriting them would defeat the rollback. Restoring a base image is the other case — nothing on that disk to preserve — so a plain iso start there leaves an empty /workspace and no plugins.

--reprovision is that case. Unlike a plain restore, which requires a stopped instance, it also accepts a running one and stops it itself. The disk is replaced as usual, and the guest is then provisioned as a first boot: the recorded workspace is re-synced, re-cloned or re-mounted, agents are re-bootstrapped, and plugins, marketplaces and MCP servers are reinstalled. The instance is left running rather than stopped, so no follow-up iso start is needed.

It is also the way to start an instance over without re-typing every flag it was created with — the inverse of “destroy it and remember what I passed”:

iso restore my-project --reprovision                  # confirm, then reset to the recorded image
iso restore my-project --reprovision -y               # no prompt (required in scripts)
iso restore my-project --reprovision --image rust-24  # reset onto a different image

Kept across the wipe, because isolate persists them host-side:

Setting Where it lives
Name, index, guest IP instance.json
Image instance.json (updated when --image is given)
Disk size read before the swap and re-grown after it, since the image’s disk is template-sized
vCPUs and memory backend VM config, which the swap does not touch
Workspace association (copy, git clone, or mount) workspace.json
Port forwards, including a devcontainer’s forwardPorts forwards.json
Guest env, including a devcontainer’s containerEnv guest_env.json
Model mode and proxy settings model.json / proxy.json
Credentials saved in the host secret store unchanged; guest forwarding depends on the configured auth mode

Not replayed, because isolate does not persist them:

  • Extra --extra-mount directories. Only the primary workspace source is recorded in workspace.json, so isolate replays none of them. isolate does not guarantee that such a mount is served again after the reboot. There is no way to re-add a mount to an existing instance — --extra-mount is creation-only, and iso push writes to the recorded workspace path — so recovering one means iso destroy and a fresh iso up.
  • A devcontainer’s postStartCommand, which reaches the guest only during iso up. Its features are baked into the image and so do survive. (postCreateCommand is unaffected because isolate does not implement it — it is reported as an unrecognised devcontainer.json key.)

Before replacing the disk, isolate checks that the image exists, the state files parse, the recorded workspace directory is still there, and host ports for forwards are available. A later failure leaves the instance in place with a partly provisioned guest. Re-running the command replaces the disk again and restarts provisioning; save any guest-only work before retrying.

Compared with the neighbouring commands:

Command Disk Instance identity Workspace / plugins Left
destroy + up fresh new name, index, IP re-synced; every flag re-typed running
restore + start replaced kept left as the image had them running
restore --reprovision replaced kept re-synced, plugins reinstalled running

profiles

List or inspect available profiles. With no subcommand, lists every profile (builtin and custom).

iso profiles [SUBCOMMAND]
Subcommand Description
list List builtin and custom profiles with a one-line summary each (default)
show <name> Print the full definition of a profile: apt packages, pre/post-install scripts, marketplaces, plugins
iso profiles
iso profiles list
iso profiles list --json
iso profiles show rust

list groups builtin and custom profiles separately. show resolves the name against custom profiles first, then builtins, and prints (custom) or (builtin) next to the name.

iso profiles list --json emits { "builtin": [...], "custom": [...] }, each entry { "name", "summary" }.

Was this page helpful?