Agent and profile settings
Configure Claude Code, Codex, local models, MCP servers, image profiles, and macOS computer use.
claude section
Claude Code configuration injected into the guest VM at start time. Every field is optional.
| Field | Type | Default | Description |
|---|---|---|---|
api_key |
string | unset (reads $ANTHROPIC_API_KEY from environment) |
Anthropic API key, literal or cmd: reference (run on the host with sh -c when needed). Forwarded to the guest via SSH SendEnv only where proxy.mode allows; withheld under the default "required". Never written to disk inside the VM. |
config_dir |
string (path) or false |
disabled | Opt-in source for CLAUDE.md, keybindings.json, rules/, commands/, skills/, agents/, output-styles/, themes/, and workflows/, copied into guest ~/.claude/ on each start. Complete bundles and narrow companion preferences are imported. Nothing is imported unless a directory is named (for example "~/.claude"); null is rejected. The named root is read once into a confined snapshot: links must resolve inside it, special files are refused, and an import is capped at 10,000 entries and 256 MiB. Supports ~ expansion; false stops copying while retaining prior files/preferences. Host deletions do not delete guest files. See import semantics and limitations. |
env_forward |
array of strings | [] |
Extra environment variable names to forward from host to guest via SSH SendEnv. GITHUB_TOKEN and, where proxy.mode allows, ANTHROPIC_API_KEY are forwarded automatically when set; list additional variables here. |
marketplaces |
array of strings | [] |
Plugin marketplace sources. Each entry is a GitHub repo URL or an absolute local directory path. Local directories are copied into the guest before registration. |
plugins |
array of strings | [] |
Plugins to install from registered marketplaces. Format: plugin-name@marketplace-name. |
mcp_servers |
object | {} |
MCP servers to register in the guest. Keys are server names; values are server definitions. See MCP servers. |
local_model |
object | unset | Host-side model endpoint to route Claude Code at when the VM is in local mode (iso model set local <vm>). See Local-model routing. |
MCP servers
Each key in mcp_servers maps a server name to its definition. Three transport types are supported.
Stdio server (spawns a process):
{
"claude": {
"mcp_servers": {
"my-server": {
"command": "/usr/bin/my-mcp-server",
"args": ["--flag", "value"],
"env": { "SERVER_API_KEY": "MY_HOST_ENV_VAR" }
}
}
}
}
HTTP server (connects to a remote endpoint):
{
"claude": {
"mcp_servers": {
"remote-server": {
"type": "http",
"url": "https://mcp.example.com/v1",
"headers": { "Authorization": "Bearer token" }
}
}
}
}
SSE server (connects to a remote endpoint over Server-Sent Events):
{
"claude": {
"mcp_servers": {
"events-server": {
"type": "sse",
"url": "https://mcp.example.com/sse",
"headers": { "Authorization": "Bearer token" }
}
}
}
}
Definition fields:
| Field | Type | Description |
|---|---|---|
command |
string | Command to run (stdio servers). |
args |
array of strings | Arguments for the command (stdio servers). Default: []. |
type |
string | Server type: "http" or "sse" (HTTP servers). Omit for stdio. |
url |
string | Server URL (HTTP servers). |
env |
object | Environment variable mappings. Keys are the names the server expects; values are the host env var names to read. Default: {}. |
headers |
object | HTTP headers to send (HTTP servers). Default: {}. |
Servers are registered with claude mcp add-json at user scope; each definition is passed to it on stdin, not in its arguments.
codex section
Codex configuration injected into the guest VM at start time. Every field is optional.
| Field | Type | Default | Description |
|---|---|---|---|
auth |
string | "api_key" |
Codex auth mode: "api_key" forwards an OpenAI API key; "chatgpt" uses ChatGPT account or workspace login through the guest Linux keyring. |
api_key |
string | unset (reads $OPENAI_API_KEY from environment) |
OpenAI API key, literal or cmd: reference. Used only with auth "api_key". Forwarded to the guest via SSH SendEnv only where proxy.mode allows; withheld under the default "required". Never written to disk inside the VM. |
config_dir |
string (path) or false |
disabled | Opt-in source directory for Codex config files (for example "~/.codex"), read once into the same confined snapshot as Claude’s. Copies an allowlist of entries (AGENTS.md, prompts/, config.toml, auth.json) from this directory to ~/.codex/ in the guest on start. auth.json is omitted when auth is "chatgpt" or proxy.openai is active. Set to false to disable. Supports ~ expansion. |
env_forward |
array of strings | [] |
Extra environment variable names to forward from host to guest via SSH SendEnv. GITHUB_TOKEN and, where proxy.mode allows, OPENAI_API_KEY are forwarded automatically when set; list additional variables here. |
marketplaces |
array of strings | [] |
Codex plugin marketplace sources. Each entry is a owner/repo[@ref] shorthand, a git URL, or an absolute local directory path. Local directories are copied into the guest before registration. Installed on first boot (not baked into the image). |
plugins |
array of strings | [] |
Codex plugins to install from registered marketplaces. Format: plugin-name@marketplace-name. |
mcp_servers |
object | {} |
MCP servers to merge into the guest ~/.codex/config.toml. Keys are server names; values are server definitions. See MCP servers. |
local_model |
object | unset | Host-side model endpoint to route Codex at when the VM is in local mode (iso model set local <vm>). See Local-model routing. |
isolate preserves any other settings already present in the staged config.toml, but the mcp_servers table is owned by isolate when codex.mcp_servers is configured. With auth "chatgpt", isolate also writes cli_auth_credentials_store = "keyring" so Codex caches account credentials in the guest OS credential store instead of auth.json.
Local-model routing
claude.local_model and codex.local_model declare a host-side model
endpoint to route an agent at instead of the cloud. They are inert until the VM
is switched to local mode with iso model set local <vm>;
iso model set remote <vm> restores the cloud defaults. The two tools are
independent — configure one, both, or neither.
Each object takes the same fields:
| Field | Type | Default | Description |
|---|---|---|---|
host_url |
string (URL) | required | Endpoint as seen on the host, where the model server runs (Ollama / LM Studio / vLLM / llama.cpp). Must be an http/https URL with a host. A loopback endpoint (localhost, 127.0.0.1) is carried into the guest over a per-instance SSH reverse tunnel to the guest’s own loopback (a privileged port moves up by 40000; IPv6 loopback is refused); any other host passes through verbatim, so a LAN endpoint also works. |
model |
string | required | Model name to request. Must not be empty. For Claude, isolate pins every model tier (opus/sonnet/haiku and the small-fast model) to this name so any tier routes locally. |
auth_token |
string | unset | Auth token for the endpoint. Optional — permissive local servers (Ollama, LM Studio, vLLM) ignore it, and isolate sends a dummy value when it is omitted. The value is used verbatim; unlike api_key it does not resolve a cmd: prefix. |
{
"claude": {
"local_model": {
"host_url": "http://localhost:11434", // Anthropic Messages API
"model": "qwen2.5-coder:32b"
}
},
"codex": {
"local_model": {
"host_url": "http://localhost:11434/v1/", // Responses API
"model": "gpt-oss:120b"
}
}
}
An endpoint set here takes precedence over one entered interactively and saved
in the instance’s model.json by iso model set local …. See the local-model
sections of docs/claude-integration.md and
docs/codex-integration.md for how each endpoint is
materialized into guest config.
profiles section
Custom installation profiles for iso setup --profile <name>. Each profile declares packages and scripts that run during rootfs template creation.
{
"profiles": {
"my-tools": {
"apt_packages": ["ripgrep", "fd-find", "jq"],
"pre_install": "curl -fsSL https://example.com/setup.sh | bash",
"post_install": "echo 'done'",
"marketplaces": ["https://github.com/anthropics/claude-plugins-official"],
"plugins": ["rust-analyzer-lsp@claude-plugins-official"]
}
}
}
| Field | Type | Default | Description |
|---|---|---|---|
apt_packages |
array of strings | [] |
Apt packages to install in the guest template. |
pre_install |
string | unset | Shell commands to run before apt-get install (e.g., adding PPAs or GPG keys). |
post_install |
string | unset | Shell commands to run after apt-get install. |
marketplaces |
array of strings | [] |
Plugin marketplace sources for this profile. Same format as claude.marketplaces. Shown by iso profiles; the Apple backend does not register them. |
plugins |
array of strings | [] |
Plugins for this profile. Same format as claude.plugins. Shown by iso profiles; the Apple backend does not install them (list them in claude.plugins). |
Custom profiles compose with built-in ones (python, node, c, fuzz, rust, go). Combine them with commas: iso setup --profile python,node,my-tools.
computer_use
{ "computer_use": { "guest_access": true, "guest_frame_rate": 4 } }
macOS images and Linux images built with the desktop profile
(desktop images); any other
Linux instance runs without it, with a warning at creation. With
guest_access, the instance’s sandbox is created with a host vsock
listener on port 7802, and the guest’s Claude Code and Codex get an MCP
server named iso-cu (/usr/local/libexec/iso-macos-helper cu-mcp on
macOS, /usr/local/bin/iso-cu-mcp on Linux). Its
tools take frames of the guest’s display and send pointer and keyboard
input to it, injected by the host through the VM’s virtual keyboard and
pointer, as host computer use is: the guest needs no Accessibility or
Screen Recording permission. guest_frame_rate (1–10, default 4; only with
guest_access) caps frames per second; actions are capped at 20 a second.
Input tools wait for the screen to settle afterwards (settle_ms, default
250 ms), and wait_for_screen waits for a region to settle before taking a
screenshot; see screen sync.
The setting is fixed when the instance is created, and the instance keeps
both the listener and the MCP server registration it was created with;
changing it later only warns until the instance is recreated. The MCP
server name iso-cu is then reserved. The host can take the display back at any time
(iso-sandbox macos cu hold, and any host action); see
guest-driven computer use. Unknown
computer_use members are rejected.