Tools
Templates are made of tools: packages, downloads and setup that any template can add by name. This page lists the tools that ship with isx and shows how to define your own. You need it when a template lacks something, or when a tool must carry a credential of its own.
Built-in Tools
These tools ship with isx; a template's tools: list names them.
| Tool | Description |
|---|---|
claude |
Claude Code: AI coding assistant |
gh |
GitHub: a token for Git and gh |
pi |
Pi: AI coding assistant |
opencode |
opencode: AI coding assistant |
gemini-cli |
Gemini CLI: Google coding assistant (proxied Gemini API key) |
antigravity |
Antigravity CLI (agy): Google coding agent (uses the Gemini API key or a Google account) |
bob |
Bob Shell: IBM AI coding assistant |
codex |
Codex CLI: OpenAI coding assistant |
copilot |
GitHub Copilot CLI: AI coding assistant (shares gh token) |
atlassian-mcp |
Atlassian MCP server for Jira and Confluence |
jasolo |
jasolo MCP server: the Java sources of dependencies, from the template's clones and ~/.m2 |
maven-3 |
Apache Maven |
mvnd |
Apache Maven Daemon |
graalvm |
GraalVM Community Edition JDK with native-image, for native builds |
podman |
Podman container runtime configured for Testcontainers |
agent-cli-tools |
rg, fd, jq, yq, tree, ast-grep and difft, which antigravity installs with it |
perf |
Linux perf tools and tracing utilities for performance analysis |
sshd |
OpenSSH server for remote access |
idea-backend |
JetBrains IntelliJ IDEA Remote Development backend |
vscode-remote |
VS Code Remote Development via SSH |
starship |
Starship cross-shell prompt with an isx indicator |
tmux |
Terminal multiplexer with isx session integration |
zmx |
zmx: session attach/detach for the terminal |
herdr |
herdr terminal workspace manager, with each instance added to the host's herdr |
rex |
Rex terminal multiplexer, with each instance added to the host's Rex |
orca |
What the Orca agent orchestrator needs to run its server over SSH |
headroom |
Headroom context optimization for Claude Code |
Run isx tools list -v to see all available tools, including user-defined definitions and project-local definitions, which a cloned repository ships in .incus-spawn/.
Use isx tools show <name> to inspect a tool's dependencies, packages, configurable parameters, downloads, TUI actions, proxy domains and the architectures it can be installed on.
Use isx tools validate <file-or-name> to check a tool definition before a build uses it.
Custom Tools
A custom tool is a YAML file that any template can name in its tools: list.
Template inheritance forms a single chain: a template has exactly one parent.
Tools provide composition: reusable capabilities that any template can mix in independently.
A gradle tool can be added to a Java template, a Kotlin template or a project-local template without duplicating definitions or creating diamond inheritance.
An image definition names a tool in tools::
# .incus-spawn/tools/gradle.yaml
name: gradle
description: Gradle 9.4.1
downloads:
- url: https://services.gradle.org/distributions/gradle-9.4.1-bin.zip
sha256: 2ab2958f2a1e51120c326cad6f385153bb11ee93b3c216c5fccebfdfbb7ec6cb
extract: /opt
links:
/opt/gradle-9.4.1/bin/gradle: /usr/local/bin/gradle
verify: gradle --version
isx caches these downloads on the host at ~/.cache/incus-spawn/downloads/, so a rebuild does not download an unchanged artifact again.
isx extracts the archives on the host, so the instance needs no tar, unzip or curl.
Tool schema fields
Every field is optional except name.
| Field | What it does |
|---|---|
description |
One line shown by isx tools and in build output |
packages |
dnf packages to install |
package_repos |
Additional package repositories to enable, as in a template |
downloads |
Artifacts to download, cache on the host, and copy or extract into the instance |
requires |
Other tools that must be installed first; an entry is a name, or a map such as idea-backend: {memory: "8g"} to pass parameters |
run |
Shell commands run as root |
run_as_user |
Shell commands run as agentuser |
files |
Files to write, see File entry fields |
env |
Environment variables written to /etc/profile.d/isx-env.sh |
verify |
Verification command, logged and non-fatal |
verify_as_root |
true when the verify needs root |
ready |
Command each start polls until it succeeds, for up to 15 seconds, before handing the instance over; a tool that is not ready in time only warns |
parameters |
Build-time parameters a template sets in its tools: list, see Tool Parameters |
feature |
A feature flag the tool needs; a build skips the tool, with a warning, until the flag is listed under features: in config.yaml |
architectures |
The architectures the tool can be installed on, x86_64, aarch64 or both; see below |
actions |
Runtime actions the TUI offers when the tool is installed, see Tool Actions |
agent_note |
An always-true fact about this tool that an agent must know before acting |
skills |
Skills to install alongside the tool, teaching an agent how to drive it |
proxy |
Credential injection rules for the MITM proxy, see Proxy Credentials |
mcp |
MCP servers the tool provides, registered with every coding agent in the image, see MCP Servers |
resources |
The memory the tool needs while it runs, see Memory a Tool Needs |
isx resolves requires transitively, and detects and rejects a circular dependency.
An entry without parameters only asks for the tool to be installed.
So when an ancestor template already installed it, the child keeps the ancestor's parameters.
An entry with parameters never overrides a tool an ancestor listed in its own tools:.
isx warns, and the child keeps the ancestor's parameters until it lists the tool itself.
For each tool, isx takes the nearest explicit entry in a tools: list, else the nearest requires entry with parameters, else the defaults.
env supports structured entries with merge strategies, see Environment Variables.
verify runs after every tool is installed, as agentuser in a login shell with the image environment (/etc/profile.d/isx-env.sh) loaded.
So it may rely on another tool's variables, such as JAVA_HOME.
verify_as_root: true is for a verify that needs root, such as sshd -t, which reads the host keys.
It then runs as root in root's own environment (HOME=/root, the default PATH), without the environment file, so it cannot rely on another tool's variables.
architectures lists the architectures a tool has a distribution for.
Without it, a tool whose every download sets an arch supports only those architectures.
On any other, isx build refuses every template that installs the tool, before it builds anything, and names the tool.
It does not skip the tool, so an image never lacks a tool its template lists.
isx templates validate warns about such a tool on a host of either architecture.
agent_note is explained in Agent Environment Context.
skills takes the same forms as the image-level field, but bare names resolve against this tool's own skills.repo.
A tool that ships its own skills pins them to the release its binary comes from, with ref, commit and path, as Agent Skills shows.
A tool file takes the first line # yaml-language-server: $schema=https://isx.run/schema/tool.json, which gives an editor completion and a description of each key (see Editor completion).
isx ignores a key it does not know, at the top level of a tool file or inside one of its entries, with a warning when the tool loads.
The warning names where the key is (downloads[0].sha265) and the key you probably meant.
isx skips a tool file with a warning when its name: is missing or blank, holds anything but letters, digits, ., - and _, or starts with ., - or _.
isx build refuses to build until the file is fixed, since the file may have been meant to replace a tool of the same name from another layer.
Download entry fields
url is required and sha256 is recommended; the other fields are optional.
| Field | What it does |
|---|---|
url |
The http:// or https:// download URL; a local address such as localhost is refused |
sha256 |
SHA-256 checksum; enables cache reuse and verifies integrity |
extract |
Directory in the instance to extract into |
destination_file |
Exact path at which to expose the downloaded file in the instance; ~/ resolves to /home/agentuser/ |
extract_in_container |
Extract inside the instance with its tar instead of on the host; a VM ignores it and always extracts on the host |
arch |
x86_64 or aarch64; isx skips the download when the instance has another architecture |
links |
Map of source_path: symlink_path to create after extraction |
Each download must set extract, destination_file, or both.
Setting both preserves the downloaded archive at destination_file and also exposes its extracted contents.
Supported archive formats for extract are .tar.gz/.tgz, .tar.bz2, .tar.xz, .zip.
A JDK ships its own root store, and its HTTPS calls fail until isx binds it to the system store.
isx binds a runtime extracted under /opt, /usr/local, /usr/lib/jvm or one of the home directories that File bindings lists.
Extract a JDK into one of those directories; a template's prime or a shell in the instance binds a JDK in any other directory with isx-trust <dir>.
File entry fields
Every entry sets path and content; the other fields are optional.
| Field | What it does |
|---|---|
path |
Where the file goes in the instance |
content |
What the file holds; ${param_<name>} takes a parameter's value |
owner |
user:group to give the file, and its parent directories in that user's home that root owns |
merge |
json to add the content to the JSON file already at path instead of replacing it |
A file entry replaces the whole file at its path, which deletes what another tool or an earlier template wrote there.
With merge: json isx deep-merges the content into the file instead.
Objects merge key by key, and the entry's value wins everywhere else, so its arrays replace the file's.
Keys the entry does not name keep their values.
files:
- path: /home/agentuser/.pi/agent/models.json
merge: json
owner: agentuser:agentuser
content: |
{"providers": {"my-gateway": {"baseUrl": "https://llm.example.com/v1"}}}
When the file does not exist or is empty, isx writes the content as it stands.
When it holds anything but a JSON object, the build fails and names the file.
isx refuses to load a tool whose merge is not json, or whose content is not a JSON object.
Install order
A tool installs in this order: packages → downloads → run → run_as_user → files.
After install, isx collects the environment variables from all tools and the template chain and writes them to one file, /etc/profile.d/isx-env.sh.
Each tool's verify runs after that.
isx loads tool definitions in the same order as template definitions (see Search paths).
A tool that needs logind, to linger or to run a systemd user unit, lists dbus-broker and systemd-pam in packages.
The base image ships no system bus, and without one logind does not start.
Enable lingering with mkdir -p /var/lib/systemd/linger && touch /var/lib/systemd/linger/agentuser in run.
loginctl enable-linger fails during the build, and isx warns about it when it loads the tool.
The built-in podman and headroom tools do both.
Environment Variables
Environment variables support four merge strategies:
env:
# Simple set (default strategy):
- name: MAVEN_HOME
value: /opt/apache-maven-3.10.1
# Set only if not already defined:
- name: DOCKER_HOST
value: "unix:///var/run/docker.sock"
strategy: set-if-unset
# Prepend to existing value (with separator):
- name: MAVEN_OPTS
value: "-Xmx2g"
strategy: prepend
separator: " "
# Append to existing value:
- name: PATH
value: /opt/bin
strategy: append
separator: ":"
The build collects all env entries from the template chain and installed tools and writes them to /etc/profile.d/isx-env.sh.
Every entry must use the structured name/value form.
isx rejects a shell string such as - export FOO=bar when it loads the definition.
The build catches conflicting definitions.
If two tools both set the same variable to different values, the build fails with an error naming both sources.
Templates can also declare environment variables directly:
name: tpl-my-project
parent: tpl-minimal
env:
- name: MY_DEBUG
value: "true"
strategy: set-if-unset
Proxy Credentials
A tool can register domains with the MITM proxy, which adds the credentials as the requests leave the instance.
This gives any HTTPS API authentication without a secret inside the instance.
The built-in claude, gh, bob, codex, copilot, gemini-cli and atlassian-mcp tools use this mechanism, and your own tools can declare the same.
A proxy: block declares four keys.
| Key | What it declares |
|---|---|
config-namespace |
The namespace that scopes the config paths |
configuration |
The host credentials |
auth |
Entries mapping domains to authentication rules |
placeholders |
The guest variables that carry proofs |
The namespace uses letters, digits, ., - and _, starting with a letter or digit.
A proof is the per-instance value the instance sends in place of the credential; the proxy recognizes the proof and replaces it with the real credential.
A configuration entry can also use value for a hardcoded literal, which isx init does not prompt for, and type: confirm for a yes/no prompt such as license acceptance.
A help list of lines is printed before the prompt in place of the description.
# ~/.config/incus-spawn/tools/artifactory.yaml
name: artifactory
description: JFrog Artifactory
env:
- name: ARTIFACTORY_TOKEN
value: artifactory_placeholder
proxy:
config-namespace: artifactory
placeholders:
- env: ARTIFACTORY_TOKEN
prefix: artifactory_
configuration:
token:
config-path: "token"
description: "Artifactory API token"
secret: true
auth:
- domains:
- artifactory.internal.example.com
type: bearer
token: "${token}"
After placing this file, isx init prompts for the Artifactory token alongside other credentials.
isx stores the token in ~/.config/incus-spawn/config.yaml under the artifactory namespace's selected account.
Add the tool to your template's tools: list and rebuild the template so the instance exports ARTIFACTORY_TOKEN.
Each start replaces artifactory_placeholder with that instance's current proof in a login shell.
Send the proof in the declared authentication header:
curl -H "Authorization: Bearer $ARTIFACTORY_TOKEN" https://artifactory.internal.example.com/
The proxy verifies that proof and replaces it with the selected host account's real token.
The env: value must start with the declared prefix followed by placeholder.
Tools must read the variable when they run: a build proof is revoked before publication, and an explicit reset replaces an instance's proofs. Tools that read an auth file must refresh it from the variable at login or launch.
Checking a pasted key
A secret: true entry may say how isx init checks a pasted key before saving it.
With check.url, isx sends one GET there, with the key in the header the tool's auth entry for that host injects.
Its host must be a literal domain of an auth entry that reads the key, on the default port and under that entry's paths:.
token:
config-path: "token"
description: "Artifactory API token"
secret: true
check:
url: "https://artifactory.internal.example.com/access/api/v1/tokens"
Pick a URL that answers only a request carrying a valid key, or every key verifies.
A project's own definition in .incus-spawn/tools/ never runs a check: isx checks a key only as the definition the proxy uses declares it.
A 2xx answer verifies the key, and a 401 rejects it, as does a 400 that calls the key invalid or expired: you try again or skip it.
After any other answer, or none, isx also offers to save it unverified.
When no request can check the key, write check: { none: "<why>" }.
A key with neither is saved as not checked.
Placeholder declarations
The proxy injects a credential only for a namespace with declared placeholders, under these rules.
- A proxied auth namespace without declared
placeholders:cannot authorize credential injection. The proxy logs a warning when loading its configuration, and tool definition validation reports missing declarations for the tool's own namespace. - A tool borrowing a namespace through an absolute
config-path, such asgithub.tokenwithoutconfig-namespace, can reuse that namespace's proof declarations. Install the tool supplying those declarations and send its current proof with each request. - The proxy checks declarations across all loaded tools and warns if the borrowed namespace has none.
- An unscoped top-level credential needs a
config-namespaceand relative config paths before it can declare placeholders. - Another tool sharing that domain is not affected: a request needs only the proofs of the entry it selects.
- The proxy forwards a request without valid proofs with the request's own authentication unchanged.
Auth types
Three auth types are supported:
| Type | Injected header | Required fields |
|---|---|---|
bearer |
Authorization: Bearer <token> |
token |
basic |
Authorization: Basic <base64(username:password)> |
username, password |
header |
Custom header | name, value |
An auth field holds a literal value (username: "deploy-bot") or a ${configKey} reference, resolved against the configuration map.
A tool with all three types:
name: my-service
env:
- name: MY_SERVICE_TOKEN
value: myservice_placeholder
proxy:
config-namespace: myService
placeholders:
- env: MY_SERVICE_TOKEN
prefix: myservice_
configuration:
api-key:
config-path: "apiKey"
description: "API key for myservice.com"
secret: true
password:
config-path: "password"
description: "Registry password"
secret: true
auth:
- domains:
- api.myservice.com
type: bearer
token: "${api-key}"
- domains:
- registry.myservice.com
type: basic
username: "deploy-bot"
password: "${password}"
- domains:
- "*.internal.myservice.com"
type: header
name: X-API-Key
value: "${api-key}"
Wildcard domains (*.internal.myservice.com) match any subdomain.
An entry for the exact domain is tried first.
The most specific wildcard wins when multiple tools register overlapping suffixes.
In this example, send $MY_SERVICE_TOKEN as the bearer token, Basic password or X-API-Key value for the corresponding domain.
Domains from config.yaml
A tool shared across organisations can let each user name their own server.
Write a ${configKey} reference in domains:, and the user sets the value in config.yaml like a credential.
When the entry is the reference alone, a comma separated value names several servers, which then share the entry's credential.
configuration:
instances:
config-path: "instances"
description: "Develocity servers, comma separated"
auth:
- domains:
- "${instances}"
type: bearer
token: "${token}"
The proxy skips a configured domain in these cases, so a mistyped value never sends the credential elsewhere.
- The value is not a plain host name: an IP address, a wildcard or a comma in an entry with text around the reference.
A configured domain is never a wildcard, even when the definition writes
*.before the reference, which the tool validation refuses. - isx or another tool already serves that name, such as
github.comor a name under.internal, or another tool configured it first. The proxy logs a warning for each skipped name. - The reference names a
secret: trueentry, which the tool validation also refuses. A domain appears in DNS, certificates and logs.
Until the value is set, isx branch names it as missing.
A nested isx whose account is inherit does not intercept configured domains, since the value lives in the host's config.yaml.
One entry per server, each with its own key
When each server has its own key, declare a list in configuration: with for-each: fields.
In config.yaml the user names each server with a short label and gives its fields.
An auth entry with for-each: is repeated for every server, so each key is sent to its own host alone.
configuration:
servers:
config-path: servers
description: "Develocity servers"
for-each:
host: { description: "Server host" }
access-key: { config-path: accessKey, description: "Access key", secret: true }
auth:
- for-each: servers
domains: ["${servers.host}"]
paths: [/mcp]
type: bearer
token: "${servers.access-key}"
# config.yaml
develocity:
servers:
quarkus: { host: ge.quarkus.io, accessKey: "..." }
commonhaus: { host: develocity.commonhaus.dev, accessKey: "..." }
${servers.label} is the server's label, and ${servers.<field>} one of its fields.
Each domain of a repeated entry must be one field alone, and every host gets the checks above.
A host another server of the list already has is skipped, so no host carries two keys.
A label is lowercase letters, digits, - and _.
The list may also sit in a named account, as develocity.accounts.<name>.servers.
isx init asks for one server after another, and isx branch names an empty list as missing.
Path-scoped injection
An auth entry can restrict credential injection to specific request paths with paths:.
When paths: is set, the proxy injects the credential only for requests whose path equals one of the listed prefixes or starts with one followed by /.
The proxy strips query strings before matching.
Without paths:, the proxy injects the credential for every request to the domain.
# Only inject the credential for MCP requests, not for other API paths
name: develocity-mcp
description: Develocity MCP server
env:
- name: DEVELOCITY_TOKEN
value: develocity_placeholder
proxy:
config-namespace: develocity
placeholders:
- env: DEVELOCITY_TOKEN
prefix: develocity_
configuration:
token:
config-path: "token"
description: "Develocity access key"
secret: true
auth:
- domains:
- develocity.example.com
paths:
- /mcp
type: bearer
token: "${token}"
Here, a request to develocity.example.com/mcp or develocity.example.com/mcp/messages receives the credential.
A request to develocity.example.com/api/build-scan does not.
When several entries cover one domain, the proxy picks one by these rules.
- Two tools can register auth entries for the same domain with different path scopes.
- The proxy tries path-scoped entries first, as they are more specific, then unscoped entries.
- When path scopes overlap, the longest matching prefix wins.
With
/apiand/api/admin, a request to/api/admin/usersgets the/api/adminentry's credential, whichever tool was loaded first. - A prefix matches whole path segments, so
/apidoes not match/apis. - When two tools register unscoped entries for the same domain, the first one loaded wins and the proxy logs a warning.
- A trailing slash in a prefix is normalized:
/mcp/is treated as/mcp. A root scope of/matches every path. - The proxy compares the request path as sent, never normalized. A path an upstream may serve as another path therefore matches only the root scope.
Such a path has any of these:
- a raw character outside RFC 3986
pcharand/: a backslash,#, a space, a control, any non-ASCII byte - a segment of only dots and spaces (
..,...,..%20,..+, also as..;), counted once every non-ASCII character is dropped (..%CC%81, so also日.) - a segment of only combining marks or Hangul fillers, or an empty segment such as
// - a percent-escape of an unreserved character,
/,\,;,%,?,#, a control or DEL (/mcp/%2e%2e/admin,/api/%61dmin,..%00), or a malformed one - escapes that are not strict UTF-8 (the overlong
%c0%ae) - an escaped character other than a letter, digit or combining mark (
%e2%88%95,%e2%80%8b), or a solidus overlay mark (%cc%b8) - escaped text whose NFKC form has other ASCII than its NFC form (the fullwidth
%ef%bc%8e, the ligature%ef%ac%81)
Such a request, and a prefix of such a form, are handled by these rules.
- The proxy serves such a request as if no scoped entry matched.
- An entry that serves every path injects its credential when the request proves its namespace.
That is an entry unscoped or scoped to
/, on the domain or else on a wildcard covering it. Otherwise the proxy relays the request with the request's own authentication. - Each prefix is a literal path starting with
/, without a query, wildcard, whitespace,;, empty segment,./..segment or any other form listed above. - isx refuses a tool definition with any other prefix when definitions load, with a warning, and
isx buildrefuses to build until the definition is fixed. Such a prefix could never match, and servers that drop;path parameters would serve another path.
When tools with different credential namespaces share a domain, these rules apply.
- A request needs only the proof of the entry its path selects. A proof it does carry for another namespace must still be valid.
- This rule holds only when the tools declare distinct placeholder prefixes. When two such tools send their proofs in the same header under the same prefix, the proxy cannot tell which namespace a proof is for, and a request must carry both.
- The proxy never injects an entry's credential for a request that did not prove its own namespace.
With an
/mcprequest carrying only the other tool's proof, or one that falls back to an unscoped entry of another tool, the proxy relays the request with the request's own authentication and logs a warning.
Where the token lives
If the tool insists on having a token locally before it will send a request, give it a placeholder through env: and let it read that variable whenever it runs.
Never copy the value into a file with files: or a build step.
The token is unique to an instance and can be explicitly reset, so a copy made at build time is revoked before publication, and isx warns when it finds one.
Tool YAML files with proxy: blocks must be placed in ~/.config/incus-spawn/tools/ or a configured search path.
Project-local tools (.incus-spawn/tools/) cannot declare proxy rules, because the proxy runs independently of any project directory.
So a project-local tool cannot grant access to host credentials.
Remote IDE Access
Both VS Code and JetBrains IntelliJ can connect to an instance with their UI running natively on the host and all backend processing (indexing, builds, terminals, extensions) running inside the instance.
isx manages the SSH keys: isx init generates a dedicated passphraseless key pair at ~/.config/incus-spawn/ssh/.
Each start of an instance with an SSH server injects that key into the instance, along with your personal ~/.ssh key: the first of id_ed25519.pub, id_ecdsa.pub and id_rsa.pub.
isx writes a Host entry per instance to ~/.config/incus-spawn/ssh/config, included from your ~/.ssh/config.
Each start records the instance's host keys in known_hosts, in the same directory.
So ssh <instance-name> connects without a prompt, even for a client that insists on checking host keys.
isx removes the Host entry and the recorded host keys when it destroys an instance.
The vscode-remote and idea-backend tools both declare TUI actions: press F9 on a running instance to open a repo directly in your IDE.
VS Code (Remote SSH)
The built-in vscode-remote tool provides one-click "Open in VS Code" actions.
It declares requires: [sshd], so the SSH server is installed automatically.
No backend is pre-installed in the instance: VS Code downloads its own server component on first connect.
On the host, install the Remote SSH extension in VS Code.
name: tpl-java-vscode
parent: tpl-java
tools:
- vscode-remote # auto-installs sshd via requires
JetBrains IntelliJ (Gateway)
The built-in idea-backend tool installs the JetBrains IntelliJ IDEA remote development backend in the instance.
It declares requires: [sshd], so the SSH server is installed automatically.
On the host, install JetBrains Gateway.
Press F9 on a running instance and choose Open repo 'name' in Gateway, one entry per repository, to open it.
Gateway connects with isx's managed SSH key through the instance's entry in ~/.ssh/config, so no key or host setup is needed.
With the shell-status-bar feature on, g in the F12 menu of isx shell opens the repository the session starts in, or else the first one.
If Gateway shows its connection dialog, keep the instance name as the host.
The instance's IP does not match any entry in ~/.ssh/config, and on macOS the host cannot reach it.
name: tpl-java-ide
parent: tpl-java
tools:
- idea-backend # auto-installs sshd via requires
The idea-backend tool accepts a memory parameter to control the JVM heap size (default 2g).
Use the map form to customize it:
tools:
- idea-backend:
memory: "8g"
The index-mcp parameter gives the agent the IDE's code intelligence: find references, go to definition and diagnostics.
With index-mcp: true, isx installs the IDE Index MCP Server plugin and registers it in Claude Code as intellij-index.
The server runs while the IDE backend runs, which is while a Gateway session is open.
index-mcp defaults to false.
tools:
- claude
- idea-backend:
index-mcp: true
Claude Code must be installed first, in a parent template or earlier in the list, or the build fails.
Agents from the host's herdr
herdr runs coding agents in terminal workspaces, on your machine or on SSH machines it lists.
The herdr tool installs herdr in the template, so the host's herdr never offers to install it over SSH.
It also adds sshd, which herdr connects through.
name: tpl-herdr
parent: tpl-minimal
tools:
- herdr
When herdr is installed on the host too, isx adds each instance of such a template to the host's herdr as a machine, on the instance's first start.
isx removes the machine again when it destroys the instance.
herdr then lists the instance by its name, and herdr --machine <name> agent list reaches it.
When isx stops the instance, it disables the machine in herdr, so herdr does not start it again. Its next start through isx enables it.
isx never adds an instance of a template built from project-local definitions.
See Use herdr with isx sandboxes, and Driving isx from other tools for what isx does to herdr's machines.
Rex sessions from the host's Rex
Rex is a terminal multiplexer whose client reaches servers on other machines over SSH.
The rex tool installs Rex in the template and starts its server in each instance at boot.
It also adds sshd, which the host's Rex connects through.
name: tpl-rex
parent: tpl-minimal
tools:
- rex
The server starts a session named main when it has none, so the host's Rex finds one to attach to.
Set session: false to start no session.
When rex is installed on the host too, on Linux or macOS, isx adds each instance to the host's Rex hosts on its first start.
rex -S <name> then reaches the instance, and isx removes the host when it destroys the instance.
A stopped instance stays stopped when Rex tries to reach it: start it with isx start <name>.
See Driving isx from other tools.
Orca workspaces
The orca tool adds what Orca needs to run its server in an instance: sshd, tar and gawk.
Run Orca workspaces in isx sandboxes sets up the recipe that gives each Orca workspace an instance of its own.
The orca tool's server-cache parameter names a directory in the template that holds a saved Orca server, so new instances skip installing it.
Faster first connections in the guide shows how to save one.
Terminal Session Persistence (zmx)
zmx provides session attach/detach for the terminal: persistent shell sessions that survive disconnections, with native scrollback and multi-client support. Unlike tmux, it delegates window management to your OS rather than reimplementing it.
name: tpl-zmx
parent: tpl-minimal
tools:
- zmx
By default, auto_attach is enabled: shelling into the instance automatically attaches to a persistent zmx session named isx.
To install zmx without auto-attaching:
tools:
- zmx:
auto_attach: "false"
Every terminal attached to isx shows the same screen.
For a second, independent terminal, run isx shell <instance> --session <name>, or press n on the instance in the TUI.
n opens a new session, named by the first free number from 2.
--no-attach opens a plain shell outside zmx.
On Linux, isx shares the instance's zmx socket directory with the host through a disk device.
That directory is under ~/.local/state/incus-spawn/zmx, and no other user can access it.
Instance sessions appear in your native zmx socket directory with an isx- prefix, with no configuration needed:
zmx list # shows isx-my-branch alongside local sessions
zmx attach isx-my-branch # attach to the container's session from the host
zmx history isx-my-branch # view scrollback from the container
zmx run isx-my-branch git status # run a command in the container's session
zmx attach isx-my-branch.work # attach to its session named work
Each other session of the instance appears as isx-<instance>.<session>.
isx links the sessions it finds each time a shell opens and closes, and drops the links of sessions that ended.
All zmx commands work natively, including interactive zmx attach.
isx installs zmx 1.0 or later, and host zmx reaches its sessions only when it is 1.0 or later too.
An instance built with 0.8 keeps it until replaced: host zmx list shows its sessions as unreachable, and attaching waits without an error.
isx shell attaches inside it; a branch of the template rebuilt with isx build --out-of-sync gets 1.0.
On macOS, where Incus runs inside a VM, host-side socket sharing is not available.
zmx sessions still work inside instances: isx shell (or Enter in the TUI) auto-attaches, and sessions persist across disconnections.
isx links a session only from a zmx directory nobody else can change, and warns otherwise.
That can happen when /tmp/zmx-<uid> was made by another user; set ZMX_DIR to a directory of your own.
Context Optimization (headroom)
The built-in headroom tool installs Headroom, a context optimization proxy for Claude Code.
It runs as a local proxy on port 8787 that compresses conversation context, reducing token usage and improving response quality on long sessions.
The tool also registers an MCP server with Claude Code for direct integration.
name: tpl-headroom
parent: tpl-minimal
tools:
- headroom # auto-installs claude via requires
The tool sets ANTHROPIC_BASE_URL=http://localhost:8787 so Claude Code routes through the optimization proxy.
The proxy runs as a systemd user service and starts automatically when the instance boots.
Java Sources of Dependencies (jasolo)
The jasolo tool gives every coding agent in the instance the jasolo MCP server.
An agent asks it for the source of a class in a dependency, at the version the project uses.
It reads the template's own clones with git show, so a checkout is never touched.
Otherwise it reads the -sources.jar files in ~/.m2/repository.
It needs a JDK 21 or newer on the PATH, which tpl-java and its children have.
tools:
- jasolo
It scans every repository the template and its parents clone, with no configuration.
Set its git_roots parameter to scan other directories instead, separated by commas.
A version jasolo finds no tag or branch for in a clone is read from the sources jar.
Tool Parameters
A tool can define parameters for build-time configuration.
| Type | Options |
|---|---|
string |
optional pattern |
integer |
min, max |
boolean |
none |
enum |
options |
Every parameter also takes default, description, optional and reconfigurable.
A parameter with no value and no default is an error unless it is optional or reconfigurable.
A child template may change a reconfigurable parameter of a tool an ancestor installed; changing any other parameter of that tool in a child template is an error.
A parameter memory is ${param_memory} in run, run_as_user, verify, env values and file paths and content:
# tools/my-server.yaml
name: my-server
parameters:
memory:
type: string
default: "2g"
pattern: "^[0-9]+[gGmM]$"
env:
- name: SERVER_MEMORY
value: ${param_memory}
Pass parameter values using the map form in image definitions (the idea-backend memory example above shows this pattern).
Memory a Tool Needs
A tool can say how much memory it needs, so isx can warn when an instance gets too little.
resident is what the tool holds for as long as it runs.
peak is what it needs on top of that for a short while, such as while it builds an index.
# tools/idea-backend.yaml
resources:
memory:
resident: { parameter: memory, plus: 1GiB }
Each amount is a size such as 768MiB or 2GiB.
It can also be the size one of the tool's parameters holds, plus a size on top.
That parameter needs a default size.
Take every figure from a measurement of the tool, never from a guess.
isx adds the needs of every tool in the template and its parents when it builds the template.
It counts every resident amount, the largest single peak, and about 160 MiB for the system itself.
The total is an estimate, since tools rarely all need their peak at once.
When a branch gets less memory than that, isx warns, names the tools that ask for the most, and gives the --memory size to pass.
A VM gets at least the total by default, up to 60% of the host's memory.
A template from a cloned project gets the warning, but never more memory than the usual default.
MCP Servers
A tool declares each MCP server it provides once, under mcp:.
The build registers every server with every coding agent in the image, from Claude Code to Bob Shell.
The order of the tools does not matter, and neither does the template that installed an agent.
A child template that adds Codex gets its ancestors' servers too.
# tools/my-mcp.yaml
name: my-mcp
mcp:
- name: my-mcp
description: What the server offers, shown to Pi's model
command: [my-mcp-server, --stdio]
env:
MY_MCP_ROOTS: "${isx_repo_paths}"
- name: my-remote
url: https://mcp.example.com/mcp
bearer-token-env: MY_REMOTE_TOKEN
A server is either a stdio command with an optional env, or an https:// url.
The command must be on agentuser's PATH when the build ends, or the build fails.
${isx_repo_paths} in command or env becomes the paths of the template's repositories, separated by commas.
A variable whose value ends up empty is not set.
An HTTP server gets its credential from bearer-token-env, the variable each agent reads when it connects, as Authorization: Bearer.
It must be one of the tool's own proxy.placeholders, and the URL's host one of its proxy.auth domains, as in atlassian-mcp.
So the proxy checks the proof before it adds the credential.
An HTTP server can also be repeated for each server of a list, with for-each: as in "One entry per server" above.
Its name holds ${servers.label}, and its URL starts with https://${servers.host}, a field a repeated auth entry serves.
The build registers one server for each host the proxy serves, so a skipped host gets no server.
A server added to config.yaml reaches an agent at the next template build.
A tool whose env names a credential is refused, so no credential is written into any agent's config.
The name isx is reserved for isx's own server.
A server that a tool no longer declares is removed from each agent at the next build.
An entry you add to an agent yourself is left alone.
Antigravity CLI reads no variable in its MCP config, so a server with bearer-token-env reaches it through a small stdio bridge that reads the variable when agy starts it.
Tool Actions
A tool can declare runtime actions that appear in the TUI: press F9 on a running instance, or Enter to run the template's default action.
From the CLI, isx run <instance> --action <tool:action-id> invokes one.
Running isx run <instance> with no --action flag executes the template's default action.
Actions can be declared in YAML tool definitions or programmatically by Java/CDI tools.
The built-in claude, pi, opencode, gemini-cli, antigravity, bob and codex tools each contribute a shell action that launches the agent when a template's tools list includes them.
Action entry fields
label and type are required; the other fields are optional.
| Field | What it does |
|---|---|
label |
Display text shown in the F9 menu; only the repo variables apply, not ${ip}, ${name} or ${parent} |
type |
One of url, command, shell, copy-to-clipboard |
id |
Stable identifier for referencing from default-action: tool:action-id |
requires_running |
Whether the instance must be running (default true) |
expand |
Set to repos to generate one action per declared repository |
auto_return |
Return without waiting for a key after the action completes (default false); a shell action never waits, and the TUI never waits after a url or copy-to-clipboard action |
Each type takes one field of its own.
| Type | Field | What it holds |
|---|---|---|
url |
url |
URL to open in the host browser |
command |
command |
Shell command to run on the host |
shell |
command |
Command to run inside the instance as an interactive terminal session |
copy-to-clipboard |
text |
Text to copy to the host clipboard; shown instead where isx reaches none, such as over SSH |
Two fields control where else an action shows.
shell_menu: whentrue, the action also appears in the F12 shell status bar menu duringisx shellsessions. The menu exists only with theshell-status-barfeature enabled inconfig.yaml. Onlyurlactions can appear in that menu, as they open on the host without taking over the terminal.shortcut: the single key that runs the action from that menu. It is one printable ASCII character, not shared with another menu action (case-insensitively); an action without a usable shortcut is left out of the menu with a warning.
Template variables available in url, command, and text: ${ip}, ${name}, ${parent}.
When expand: repos is set, repo-specific variables are also available: ${repo_name}, ${repo_path}, ${repo_url}.
actions:
- label: "Open repo '${repo_name}' in Gateway"
type: url
expand: repos
url: "jetbrains-gateway://connect#idePath=%2Fopt%2Fidea&host=${name}&port=22&user=agentuser&type=ssh&deploy=false&projectPath=${repo_path}"
- label: "Launch agent"
id: launch
type: shell
command: "my-agent --continue"
auto_return: true