Workspace and editor settings
Configure guest variables, port forwarding, editor security, and file returns.
guest_env section
Literal environment variables to set inside the guest, independent of the host process environment. Use this when you want a value that isn’t (or shouldn’t be) on the host — env_forward covers the inherit-from-host case.
{
"guest_env": {
"RUST_LOG": "info",
"MY_FLAG": "1"
}
}
Keys are env var names; values are the literals to inject. Entries here override any value resolved through other mechanisms for the same name (forwarded host env, claude.api_key, etc.), and the override is logged at WARN.
Secrets: values land in the guest’s process environment in plain text and may be visible via ps//proc to guest users. For credentials, prefer env_forward (host process env stays the source of truth) or one of the cmd: integrations on the structured fields (claude.api_key, etc.).
Override or extend per-invocation with iso up --env KEY=VALUE or iso start --env KEY=VALUE (repeatable).
forward_ports field
Default host-to-guest TCP port forwards applied to every VM startup. Forwards are established as SSH -L tunnels after the VM is ready and torn down on iso stop.
Each entry accepts a bare port (host and guest match), a "GUEST:HOST" string, or an object.
{
"forward_ports": [
3000, // host 3000 ⇒ guest 3000
"8080:18080", // host 18080 ⇒ guest 8080
{ "guest": 5432, "host": 15432, "label": "postgres" } // label is for your own bookkeeping
]
}
--forward-port on iso up or iso start appends to (or overrides on guest-port collision) the entries from config; later entries win. Each instance remembers its forward set across iso stop / iso start, so a restart without --forward-port re-establishes the same tunnels.
Collision with an in-use host port fails fast before the VM is created. The error names the offending port and suggests a GUEST:HOST override.
editor
{ "editor": { "security": "sandboxed", "allow": [] } }
security is "sandboxed" (default: a new, isolated editor instance under a
deny-by-default Seatbelt profile, supervised by isolate) or "unsafe" (the
editor’s own CLI, which can reach an editor already running with your full
authority). allow widens a sandboxed editor: "clipboard" (read and replace
the host clipboard) and "internet" (HTTPS to any host). --editor-security
overrides security for one command, and --editor-allow adds to allow.
Unknown members and values are rejected. See
editor security.
workspace section
How iso pull returns guest files. See staged pulls.
{
"workspace": {
"pull": {
"mode": "stage", // "stage" (default) or "direct"
"max_files": 50000,
"max_bytes": "1GiB",
"max_file_bytes": "256MiB"
}
}
}
| Field | Type | Default | Description |
|---|---|---|---|
pull.mode |
string | "stage" |
stage stages and prints a review; direct applies a validated plan of additions at once (replacing files needs --force) |
pull.max_files |
integer | 50000 |
Most staged entries of any type |
pull.max_bytes |
bytes | "1GiB" |
Most regular-file bytes in one stage |
pull.max_file_bytes |
bytes | "256MiB" |
Largest single staged file |
Byte fields take an integer or a string with a KiB, MiB or GiB suffix.
workspace.input
What a transfer into the guest (iso up copy, iso push, mount sync, iso host push) may carry. Every transfer sends one immutable snapshot of the
selected files; it never sends .git or original history and never falls back
to copying the whole directory. Only a push deletes in the guest, and only the
tracked files deleted on the host.
{
"workspace": {
"input": {
"mode": "tracked", // or "paths"
"paths": [{ "path": "generated", "recursive": true }],
"exclude": ["fixtures/large"],
"secret_allow": ["config/.env.example"],
"limits": { "max_entries": 100000, "max_file_bytes": 1073741824, "max_total_bytes": 4294967296 }
}
}
}
| Field | Default | Description |
|---|---|---|
mode |
"tracked" |
tracked: the working-tree bytes of every file in the Git index (read as data; Git never runs on the host), plus paths. paths: only paths, which must be non-empty. A non-Git directory or an index iso cannot read inertly (conflicts, submodules, sparse checkouts, SHA-256 repositories) needs paths. |
paths |
[] |
{ "path": "rel/name", "recursive": false } selections. Literal root-relative names: no globs, .., absolute paths or ignore-file expansion. A directory’s contents need recursive: true; "." with recursive: true selects the whole root. |
exclude |
[] |
Literal entries or subtrees left out. |
secret_allow |
[] |
Exact selected paths sent even though they match the local-secret-names/1 table below. Selects nothing new. |
limits |
100000 entries, 1 GiB per file, 4 GiB total | Counted across every root in one operation; may only be lowered. |
local-secret-names/1, applied even to tracked files: .env, .env.*,
*.pem, *.key, *.p12, *.pfx, *.keystore, id_rsa*, id_dsa*,
id_ecdsa*, id_ed25519*, .netrc, _netrc, .npmrc, .pypirc,
.git-credentials, .aws/, .ssh/, .gnupg/, .docker/config.json,
.kube/config, credentials.json (case-insensitively, at any depth). It is a
name table, not content scanning. Links are sent as links only when their
target stays inside the selection and does not pass through another link or
.git; hard-linked files and special files are not sent. Omissions are listed
by name. A push removes from the guest, by name, the tracked files deleted on
the host that the selection would otherwise send; nothing else is deleted. After the first copy the guest gets a new repository with one synthetic
commit of the sent files; it is not the host’s history. --exclude-git is a
deprecated no-op.
Unknown members of workspace, workspace.pull and workspace.input are rejected.