Remote and cloud
IZ Code works on code that lives somewhere else in three ways: over SSH, on another computer running IZ Code (Remote Peer), and in a private cloud VM. All three use the same design: a headless IZ Code core runs next to the code, and your local app is a thin client that draws the UI.
One design, three transports#
flowchart LR
subgraph local["Your computer"]
app["IZ Code app: window, editor UI, sign-in, SSH client"]
end
subgraph host["Host"]
core["Headless IZ Code core"]
work["Files, terminals, Git, search, language servers"]
agent["Code index, memory, agent runtime"]
core --> work
core --> agent
end
app <-- "SSH or encrypted relay" --> core| Mode | How it connects | The host runs |
|---|---|---|
| Remote SSH | SSH to any Linux server you can log in to | A headless core that IZ Code installs for you |
| Remote Peer | SSH protocol inside IZ Code, directly or through an encrypted relay | The IZ Code app (or its headless mode) on the other machine |
| Cloud | A secure WebSocket to IZ Code Cloud, carrying the same SSH stream | A headless core inside your private VM |
All three speak one RPC protocol to the same core, so a feature that works over SSH also works with a peer or a cloud workspace.
What runs where#
| Runs on your computer | Runs on the host |
|---|---|
| Window, menus, Monaco editor UI | File system, file watcher |
| Account sign-in and tokens | Terminals (PTY) |
| SSH client, port forwarding, integrated browser | Git, search |
| Syntax highlighting for the buffer you are typing in | Language servers, debug adapters |
| Extension host and its extensions | |
| Code index, Agent Memory, database sidecar | |
| Agent runtime, Agent Host, agent CLIs, MCP tools | |
Tasks, workflows, @mention lookups |
Data stays where it is produced. The index of a remote folder is built on the host, agent sessions are stored on the host, and agents edit files on the host. Your computer does not mirror the files.
A window that only has remote folders starts no local extension host and no local agent runtime: those start lazily, only when a local folder needs them.
Remote SSH#
When you choose Connect to SSH Host (or Remote: Open Folder over SSH…), IZ Code:
-
Connects with your credentials It uses ssh-agent, a key file or a password, and shows the host key fingerprint for you to confirm.
-
Checks the host One shell command reports OS, CPU architecture and C library. IZ Code installs a static Linux build of the headless core under
~/.izcode-remote-agent/if the right version is not there. -
Brings the extension host It copies the extension host and a matching Bun runtime (glibc or musl, checksum-verified) to the host once, then only what changed.
-
Pushes settings Non-secret settings, such as index and memory options, are copied before the folder opens and again when they change. Credentials are copied only when you ask.
-
Opens the folder The host builds the code index in the background and the status bar shows progress, exactly as for a local folder.
The host core is a daemon. It listens on a local socket on the host and serves every connection from your computer. When you close IZ Code or lose the network, the daemon, the extension host and the agents keep running. When you reconnect, open terminals, extension webviews and agent sessions are still there. A new version of IZ Code installs a new daemon beside the old one; the old one exits once nobody uses it, so sessions are not cut off by an upgrade.
Compression. izcode.remote.compression turns on SSH compression. In auto mode IZ Code compresses only when the host is not on your local network.
See Remote over SSH.
Remote Peer#
Remote Peer connects one IZ Code to another IZ Code, with no SSH server on the host. On the host, open Share this machine in Settings and turn on Allow connections from other devices; on the client, choose Connect to IZ Code Device… in the Remote Explorer.
flowchart LR
c["Client"] -- "direct, LAN or loopback" --> h["Host"]
c -- "wss" --> r["Relay"]
r -- "wss" --> h- Identity. Each installation has its own key. The device ID is its fingerprint, and the client pins the host by that ID instead of using
known_hosts. - Pairing. The first connection needs a one-time code from the host (8 characters, valid for 5 minutes). The host can also ask its owner to approve. After that, the key is enough. Two devices signed in to the same IZ Code account can connect with one click, without a code.
- Relay. When the two machines cannot reach each other, both connect out to a relay. The relay only joins the two sockets; the SSH stream inside is end-to-end encrypted and the client still checks the host key. You can run your own relay.
- Locked-down host. A peer host refuses shell exec, agent forwarding and reverse forwarding, and port forwards may only reach the host's own loopback. Failed logins are rate-limited and you can revoke a device or end a session at any time.
- Headless host. A Linux machine without a desktop can host with the headless core in peer mode, controlled from the command line.
See Remote Peer.
Cloud workspaces#
A cloud workspace is a private virtual machine that runs the same headless core in peer mode.
flowchart LR
app["IZ Code app"] -- "https" --> api["IZ Code Cloud API"]
app -- "wss, one-time token" --> gw["Gateway"]
gw --> vm["Your VM"]
vm --> core["Headless IZ Code core"]- Private VM. Each workspace is its own VM, not a container shared with others.
- Access. To connect, the app asks the cloud service for a one-time token bound to this device's key. The token is never stored, and the VM's host key is pinned.
- Sleep and wake. An idle workspace is suspended. IZ Code never wakes a workspace by itself just because a window has it open. You wake it with Resume, by typing in its terminal, or by opening or saving one of its files. When a request reaches a hosted app, the cloud can also wake it.
- Default folder. The app opens
/workspace, or your home folder if that does not exist.
See Cloud workspaces.
Reconnect#
| Situation | What IZ Code does |
|---|---|
| App starts with remote folders saved | Reconnects them in the background. A window waiting for its remote folder shows Connecting to …; if that cannot finish, you can choose Continue on this machine. |
| Connection drops while you work | Retries at growing intervals (1 s up to 60 s). Terminals, extension host tunnels and port forwards move to the new connection. |
| Cloud workspace is asleep | Shows a banner with Resume instead of waking it. It checks again every 30 seconds and reconnects if something else woke it. |
| Peer changed IP address | Finds it again by device ID, first at the remembered address, then through the relay. |
| Password needed or pairing revoked | Stops and asks you. |
Set izcode.remote.autoReconnect to false if you prefer to reconnect by hand.
Settings#
| Setting | Values | Default |
|---|---|---|
izcode.remote.autoReconnect | true, false | true |
izcode.remote.compression | auto, on, off | auto |
izcode.remoteHost.enabled | true, false | false |
izcode.remoteHost.discoverable | true, false | false |
izcode.remoteHost.requireApproval | true, false | true |