Skip to content
Ozone
Browse the docs
On this page

Remote access

Connect a browser or another desktop app to Ozone running on a different machine. That machine must stay running and reachable while you work. Every connection goes straight to your own server, over a network you control: your local network, a tailnet or other VPN, or SSH.

Set up a host

On a command-line host, run:

bash

Could not copy. Select the text instead.

ozone up

It asks whether other devices on your local network may connect, then runs Ozone as a background service. Run ozone up again to change your choice, and ozone status to see it.

Instead of the background service, you can keep the desktop app running with its local environment enabled. Closing the desktop app's last window stops its local server.

Scripts and agents

ozone up asks nothing when you name a choice: --lan or --no-lan. A choice you do not name keeps its setting, and --yes takes the defaults. Without a terminal, a needed restart runs without asking, and stops running agent turns.

ozone status --json prints the settings. ozone up --help lists every flag with examples.

Pair over a LAN or private network

Use direct pairing when the other device can reach the host's network address.

On a desktop host, open Settings → Sharing & access, enable Network access, then create a pairing link using an address the other device can reach. Changing network access restarts the desktop app. You can turn it off in the same place.

For a command-line host, choose the local network in ozone up, or run:

bash

Could not copy. Select the text instead.

ozone up --lan

For a server in a terminal, run ozone serve --lan. Either way, Ozone then accepts connections from your local network and tailnet, so a pairing code is all that keeps other devices on them out.

If a server is already running, generate a fresh link without restarting it:

bash

Could not copy. Select the text instead.

ozone pair

Open the pairing URL in a browser on the other device, scan the QR code with a phone to open it there, or paste the URL into Add environment under Settings → Environments in the receiving app. A loopback address such as 127.0.0.1 reaches only the device opening the link.

On a computer with the desktop app, you can open the printed t3code://pair app link instead. The desktop app asks you to confirm the server address, then adds it.

Pairing authorizes that device for future connections. Use a fresh one-time link for each new device; you do not need the original token to reconnect. Links created in Settings can only be copied from the client that created them while its Sharing & access page stays open. If you leave or reload that page, create another link to share.

Reach one machine several ways

A machine can have more than one route: LAN, Tailscale, another VPN, a public URL, or SSH. Tailscale shares its 100.64.0.0/10 address range with other VPNs such as Cloudflare WARP, so an address in that range shows as VPN unless the machine confirms it is on Tailscale. To add a route, choose Add route in the machine's route list. A pairing link for a saved machine is refused when it comes from an address that machine does not have yet; add that address with Add route instead. Pairing again over an address the machine already has still works. A new route is placed by speed, in that order, and you can reorder routes at any time.

While connected through a paired address, Ozone also learns the machine's current LAN and Tailscale addresses and adds them as routes. When the machine's LAN address changes, for example after it joins another Wi-Fi network, the learned route follows it. The machine must allow network access for its LAN address to be learned: Network access in the desktop app, or the local network choice in ozone up. You can reorder a learned route, but not remove it; it goes away with the route it was learned through, or when the machine stops reporting that address.

Ozone connects over the first route that answers. Away from home, a LAN address that does not answer is checked briefly and skipped. It is only tried again, after the other routes, if none of them connect. While connected over a later route, Ozone checks the earlier ones when your network changes, when you return to the app, and every minute, and moves back as soon as one works.

Select the route count under the machine's name in Settings → Environments to see its routes. Drag a route to change the order, or remove it.

Open Permissions next to Routes to see what your current connection can do on that environment. Permissions shown there apply only to the route marked In use; other routes are not checked.

Balance new threads across machines

Auto balance is off by default. Enable it in Settings → Environments → Load balancing to automatically choose a machine for new threads in projects grouped across connected environments. The section appears once two or more machines are switched on. Each machine starts at Normal. Choose Prefer to favor it when it has CPU and memory available, Less often to reduce its share, or Manual only to exclude it from automatic selection. These are preferences, not fixed traffic percentages. Preferences are saved separately in each client.

The composer checks eligible machines when choosing a draft's environment, then keeps that choice stable. Choose Auto balance again to check current resources, or choose a specific machine to override it. Choosing a branch or worktree also keeps the draft on that machine. Existing threads stay where they started. If resource checks are unavailable or all eligible machines are full, choose a machine manually to continue.

Tailscale HTTPS

Join both devices to the same tailnet. In the desktop app, enable Tailscale HTTPS in Settings → Sharing & access. Turn it off there to remove that route.

Your tailnet needs MagicDNS and HTTPS certificates enabled; see Tailscale's HTTPS setup. On Linux, Ozone also needs permission to manage Tailscale; see operator permission for non-root users. If any of these is missing, Ozone still starts but can't add the HTTPS route.

To start a command-line server with Tailscale HTTPS:

bash

Could not copy. Select the text instead.

ozone serve --tailscale-serve

For an already-running server:

bash

Could not copy. Select the text instead.

ozone pair --tailscale

The pairing link uses an address such as https://machine.tailnet.ts.net/. The mapping created by pair --tailscale persists across restarts. Remove its default-port mapping with:

bash

Could not copy. Select the text instead.

tailscale serve --https=443 --set-path=/ off

If that port is already in use, choose another with --tailscale-serve-port. See ozone pair --help for other pairing options.

Desktop-managed SSH

In the desktop app, open Settings → Environments → Add environment, choose SSH, and enter a host or SSH alias such as user@example.com. Ozone starts or reuses a server there and opens the port forward for you. Projects, provider credentials, and agent work stay on the remote machine.

The remote host must be Linux or an Apple Silicon Mac with curl or wget, tar, sha256sum or shasum, and provider setup. The first launch downloads Ozone's server to ~/.ozone/runtime on the host, so it takes longer than later ones. Provider CLIs must be on the PATH of a non-interactive login shell there; check with:

bash

Could not copy. Select the text instead.

ssh user@example.com 'sh -lc "command -v claude codex"'

If SSH reconnecting fails after an app update, retry the launch once. Removing the connection stops a server that Ozone launched; a server that was already running is left alone.

Each desktop app keeps one session on the host for its SSH connection and reuses it when it reconnects. Revoke sessions you no longer use in Settings → Sharing & access on the host, or on a headless host with ozone auth session list and ozone auth session revoke <id>. A desktop that can still sign in over SSH pairs again on its next connect.

For Antigravity's Google callback on a remote host, see remote sign-in.

Browser on a remote environment

Browser tabs belong to the environment, so you and your agents see the same tabs from any device. The desktop app shows its own environment's tabs directly. Every other device, and the desktop app for other environments, streams them from the host. Agents keep using them while no device is connected, and localhost addresses reach servers on the host.

An app Ozone runs answers only on its own machine. From another device its preview loads in the host's browser, and Preview is not offered when the host has none.

The first tab downloads a headless Chrome, about 120 MB, into the Ozone data folder. It is the same browser HTML renders use, so a host downloads it only once. Some Linux hosts need setup before it can start.

Agent tabs have separate storage and share a Chromium process. Take control before typing into an agent's tab, then release control when you want the agent to continue. Read-only connections can watch without changing the page.

While you have control, the tab works with your device: text the page copies or cuts goes to your clipboard, a file picker on the page opens your device's picker, and a finished download is offered for you to save. Popups such as sign-in windows open as their own tabs. Downloads stay on the host until the tab closes. Audio does not play on your device.

Local servers

The browser lists ports held by processes your terminals and agents started. Ozone reads which process holds each port and never connects to it, so a listed port opens as http://localhost:<port> and might not be a web page. For an HTTPS server or a specific path, set the Preview URL on the project script that starts it; Ozone checks that address and opens it as written.

To stop listing ports, set OZONE_PORT_DISCOVERY=0 in the environment that starts the Ozone server, such as service.env for the background service, and restart it. Script preview URLs still appear.

Browser host setup

macOS, Windows, and Linux desktops run the browser as is. Some Linux hosts need one-time setup: Ubuntu 23.10 and later block the sandbox the browser runs in, and minimal images and containers lack libraries it loads. When that happens, the server says so at startup, and browser tabs and HTML previews show the command to run on the host:

sh

Could not copy. Select the text instead.

sudo ozone browser setup

The server shows the exact line for how you started it. Where ozone is not on your PATH, such as with only the desktop app installed, it names the full path of the app's own ozone instead. It allows Chrome's sandbox with an AppArmor profile and installs any missing libraries and system fonts with apt; pages that load without text can mean the host has no fonts. It is safe to run again, and each run reloads the AppArmor profile: run it again if the browser reports a blocked sandbox on a host restored from an image or snapshot, where the profile can be on disk without being loaded. Without sudo, it only reports what it would change.

The browser runs in Chrome's sandbox by default. Chrome cannot start that sandbox as root. If your Ozone server runs as root, run it as a nonroot user to keep sandboxing enabled. ozone browser setup does not fix this root restriction.

If you need to run as root, or cannot enable the sandbox on your host, set OZONE_SERVER_BROWSER_SANDBOX=0 in the Ozone server's environment and restart the server. This disables Chrome's sandbox. For a manual launch:

sh

Could not copy. Select the text instead.

OZONE_SERVER_BROWSER_SANDBOX=0 ozone serve

For a systemd service, add Environment=OZONE_SERVER_BROWSER_SANDBOX=0 under [Service] in its configuration, run sudo systemctl daemon-reload, then restart the Ozone service. Setting the variable in an agent's terminal does not change the environment of an already running Ozone server.

Connect an outside agent

Claude Code, Codex and other agents Ozone did not start can drive threads on an environment through its MCP server. See outside agents for setup.

Link two machines, such as your laptop and a VPS, and agents on one can work on the other: launch, message, wait on and stop its threads, answer their questions, and manage its queues, projects and scheduled tasks.

Linked environments is a beta. Turn it on for both machines in Settings → Labs. While it is off on either machine, agents start nothing over a link between them. A task already running on the other machine still finishes, and if that machine has it off, its result arrives once it is back on.

On the machine you will work from, open Settings → Environments → Linked environments, choose Link, and pick the other machine or enter its address. The list holds the machines this app knows. If this app has an address for that machine and is connected to it with a session that manages access there, it makes the pairing code itself; otherwise paste one from that machine's Settings → Sharing & access. An address you type always needs a pasted code. From a terminal, use ozone environment link <address> --pairing-code <code> --access <mode>.

You can also ask an agent to link a machine by name, such as "delegate this to my vps". It shows a card in the thread where you pick the machine the same way and the access, then approve. An address the agent gives that this app does not know for one of your machines also needs a pasted code. Paste one only for an address you trust: the code is sent there.

  • The access you pick is the most agents from this machine may do there. An agent also never gets more there than its own mode here.
  • Threads a link starts are marked From and this machine's name there.
  • A full-access link works there like that machine's own agents. Below full access, the link's agents can change only threads it started, not that machine's own threads, projects or settings, and they skip its project setup scripts.
  • The link shows up in that machine's Settings → Sharing & access like any outside agent. Revoke it there to end it. Forget on this machine only removes it here.
  • Links last 30 days. Link again with a new pairing code to renew one.

An agent can also hand a task to a linked machine with delegate_task: it runs there as an ordinary thread, in the project with the same repository (or the one target.projectId names), and this thread wakes with its result when it ends, as for any delegated task. It keeps following the task across restarts. If the other machine revokes the link, or the link is removed here, the task fails with that reason.

Manage or revoke access

On the host, Settings → Sharing & access lets authorized administrators create pairing links and revoke client sessions. Revoking an unused link prevents new pairings; revoke a device's session to remove its existing access. Command-line management is available through ozone auth --help.

When the app connects to more than one environment, choose one at the top of the page. A desktop app with Local environment off can manage a background service on the same machine this way.

A session with an open connection stays listed after its access credential expires.

To choose a token's permissions, pass --scope once for each scope you want:

sh

Could not copy. Select the text instead.

ozone pair --scope orchestration:read --scope diagnostics:read

The selected scopes replace the default permissions. The same option works with ozone auth pairing create and ozone auth session issue; each command's --help lists the available scopes. Without --scope, pairing tokens and issued bearer sessions get every permission, including managing access. A terminal or a full-access agent on the host can reach those as well, so a client that should not manage access also needs to go without terminal:operate and orchestration:operate.

To change an existing client's permissions, create a fresh pairing link with the scopes it needs. In a browser opened directly on the environment, open that link to replace the browser's current grant. For a saved remote environment, use Add environment with the fresh link or code; pairing the same environment replaces its saved grant. Reconnecting alone does not change permissions.

Grouping checkouts does not combine their permissions. Shared project settings require orchestration:operate on every member environment; actions on one checkout use that checkout's permissions.

source-control:write covers direct Git and pull request changes made from the client: pushing, switching or creating branches, cloning, and removing worktrees. It does not restrict what a task does. Starting a task in a new worktree still creates that branch and worktree with orchestration:operate, and the agent it runs can use Git however the environment allows.

Settings changes, provider management, environment maintenance, and access management can each be granted separately. New pairings without --scope include all of them. Existing clients keep the permissions they paired with and can stay connected after an update, but newly separated features may require pairing again with the permissions they need. Create a fresh pairing link to change a client's permissions.

filesystem:read allows browsing host files, opening workspace files, and viewing local changes. Add filesystem:write to allow editing files or saving plans to the workspace. These scopes control direct file access from the client.

Treat pairing URLs and authorization codes as passwords. Do not include them in screenshots, logs, or bug reports.

Use the desktop app as a remote only

If a computer should only drive work running elsewhere, turn off its local environment. In the desktop app, open Settings → Environments and switch off Local environment. Ozone restarts without a local server: no local agents or terminals run, and other devices can no longer connect to this computer. Your projects, history, and saved connections are kept, and you keep working through pairing or SSH. If a background service on this computer uses the same data folder, the app still treats it as this computer: Open in and file reveal for its projects run here, whichever connection you reach it through.

Switch Local environment back on in the same place to restart with your previous local settings.