---
title: "Configuration Reference"
seo:
  description: "isolate reads configuration from ~/.iso/config.jsonc by default. Pass --config <path> to use a different file: a .jsonc path is read as JSONC, a .json path as strict JSON, and any other extension is…"
---
<!--
Derived from chr33s/iso.
Modified by chr33s: ported/adapted for the Swift implementation.
SPDX-License-Identifier: Apache-2.0
-->


> **Host support:** This fork supports macOS 27+ on Apple Silicon only. Linux
> guests remain supported.

isolate reads configuration from `~/.iso/config.jsonc` by default. Pass `--config <path>` to use a different file: a `.jsonc` path is read as JSONC, a `.json` path as strict JSON, and any other extension is rejected. There is no automatic `config.json` search.

**JSONC** here means RFC 8259 JSON plus `//` line comments and `/* ... */` block comments outside strings. Block comments do not nest. Trailing commas, single-quoted strings, unquoted keys, and other JSON5 extensions are rejected, as are duplicate object keys. Keys use snake_case and sections are nested objects. The document is limited to 1 MiB, nesting depth 32, 16,384 keys, 4,096 array elements, and 64 KiB strings.

If the implicit default configuration is absent, isolate uses built-in defaults. An explicit `--config` path must exist; a missing selected file is an error. A valid minimal config is an empty object, `{}`. `iso setup --config-only` writes a commented template (the same content as [`config.example.jsonc`](https://github.com/chr33s/iso/blob/main/config.example.jsonc)).

Commands that edit the configuration (`iso proxy setup`, `iso github setup-pat` and related PAT commands) rewrite the file as formatted strict JSON: comments and formatting are not preserved, but unrelated keys are.

A leading `~` is expanded to the home directory in path-valued fields (`data_dir`, `claude.config_dir`, `codex.config_dir`, the `apple_container` paths, and the `claude.marketplaces` / `codex.marketplaces` / `profiles.<name>.marketplaces` lists). The shell does not expand `~` inside config-file values, so isolate does it when loading the file.

Run `iso validate` to surface errors and warnings before anything touches a VM. Errors name the field path and error category; they never print the file's contents or secret values.

Unknown top-level and `vm` fields are rejected, so misspelled configuration
cannot silently select defaults. Agent/provider objects retain their documented
section-specific extensibility. Structural editors preserve unrelated keys in permitted extensible sections
and validate the edited configuration before writing it. Run `iso validate`
after hand edits.

## Top-level fields

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `data_dir` | string (path) | `~/.iso` | Directory for VM artifacts: images, instances, keys. |
| `ssh_port` | integer | `22` | SSH port on the guest VM. Must be > 0. |
| `github` | string or object | unset (treated as `"off"`) | GitHub authentication strategy. See [GitHub auth](/docs/configuration/github#github-auth). |
| `security` | object | unset | `{"preset": "networked" | "provider-only" | "offline", "revoked_grant_ids": [...]}`, both members optional. `preset` sets defaults for the hardening settings; see [security presets](/docs/configuration/security#security-presets). `revoked_grant_ids` lists saved instance grants to withdraw, by the 16-lowercase-hex IDs `iso policy effective` shows; duplicates are rejected, and an ID no instance records only draws a warning. See [`iso policy effective`](/docs/commands/security#policy-effective). |
| `limits` | object | unset | Host-enforced budgets. See [limits](/docs/configuration/security#limits). |
| `computer_use` | object | unset (off) | macOS guests and Linux [desktop images](/docs/images-and-profiles#linux-desktop-images): `{"guest_access": true, "guest_frame_rate": 4}` lets an agent in the guest drive its own display. See [computer_use](/docs/configuration/agents#computer_use). |
| `coreai` | object | unset (off) | Experimental, macOS guests only: paravirtualized Core AI accelerators. Weakens the host. See [coreai](/docs/configuration/vm#coreai). |
| `policy` | object | unset | Default-deny authorization over provider credential use, proxied requests and staged workspace applies, with request-admission limits and inline approvals. `null` is an error; fixed per VM boot. See [`policy.md`](/docs/policy). |
| `egress` | string | `"none"` | Guest network reach beyond the host: `"none"`, `"filtered"`, or `"open"` (needs `network.transport` `"vmnet"`). See [egress](/docs/configuration/security#egress). |
| `network` | object | `{"transport": "brokered"}` | How new instances' VMs are connected: `"brokered"` (no network device) or `"vmnet"` (an explicit compatibility choice; required for macOS guests and open egress). See [network](/docs/configuration/security#network). |
| `editor` | object | `{"security": "sandboxed", "allow": []}` | How `iso code`, `iso zed` and `iso editor` run the local editor. See [editor](/docs/configuration/workspaces#editor). |
| `post_start` | string | unset | Shell command run in the guest after every successful boot, before any interactive `shell` / agent launch. Failure is logged at `WARN` and does not fail startup. Override per invocation with `iso up --post-start <cmd>` or `iso start --post-start <cmd>`. |

## CLI overrides

Several config values accept per-invocation overrides via flags:

| Flag | Applies to | Overrides |
|------|-----------|-----------|
| `--vcpus <N>` | `setup`, `up` | `vm.vcpu_count` |
| `--mem <MiB>` | `setup`, `up` | `vm.mem_size_mib` |
| `--template-size <GiB>` | `setup` | `vm.template_size_gib` |
| `--disk <GiB>` | `up` | Per-instance disk size (grows from template if larger) |
| `--env KEY=VALUE` | `up`, `start` | Adds or overrides a `guest_env` entry (repeatable); `{vault:NAME}` values are stored-secret references |
| `--env-file <path>` | `up`, `start` | Adds or overrides `guest_env` entries from a `.env` file; `--env` wins over it |
| `--config <path>` | all commands | Config file path, `.jsonc` or `.json` (default: `~/.iso/config.jsonc`) |

## Topics

- [GitHub authentication](/docs/configuration/github#github-auth): Choose a token strategy and configure repository-scoped PATs.
- [VM and runtime settings](/docs/configuration/vm#vm-section): Configure CPU, memory, disks, the guest user, Apple runtime timeouts, and experimental Core AI accelerators.
- [Agent and profile settings](/docs/configuration/agents#claude-section): Configure Claude Code, Codex, local models, MCP servers, image profiles, and macOS computer use.
- [Proxy, network, and limits](/docs/configuration/security#proxy-section): Configure credential isolation, egress rules, security presets, and session budgets.
- [Workspace and editor settings](/docs/configuration/workspaces#guest_env-section): Configure guest variables, port forwarding, editor security, and file returns.
- [Execution and update settings](/docs/configuration/execution#execution-section): Select execution hosts and configure release updates.
- [Configuration examples](/docs/configuration/examples#examples): Start from a minimal configuration or a full annotated example.
