Cross-device execution for developers and AI agents

Every agent. Your computers.

Run tests and builds on your own Macs, Windows PCs and Linux machines. Logs and files come back, exit codes stay exact, and long jobs keep running when you disconnect.

  • Claude Code
  • Codex
  • OpenCode

Works with any agent that can run a CLI

One call. Two computers.Example
Codex · macOSmacbook
Linuxdevbox

Runs in the project already set up on Linux

xrun devbox -C /home/dev/app -- cargo test

running 128 tests

test result: ok. 128 passed; 0 failed

Results return to the callerLive logs and the original exit codeexit 0
macOSWindowsLinuxmacOS · Windows · Linux, on x86_64 and arm64
  • End-to-end encrypted
  • Per-device permissions
  • No inbound ports
Open source · MIT

How it works

Another computer.
Your next step, done.

Build on Windows, test on Linux, or leave a long job running on another machine. Pick a scenario to replay it.

Illustrative workflow · not a live connectionExample targets already have the project and toolchain installed.

Built for real work

The command finishes.
The work moves forward.

Execute, check jobs, read logs and bring files back with the same CLI.

Execute

Another machine. A familiar command.

Use the target’s own system, directories and toolchain. Exit codes return unchanged, and --json gives agents structured results.

Recover

Disconnect. The job keeps going.

Reliable jobs, logs and results stay on the target. When the caller reconnects, it queries the original job and picks up the result.

Retrieve

Bring the files back. Keep working.

Pull builds, reports and screenshots, or push an edited file back. Transfers are SHA-256 verified, have no fixed size limit and resume within 24 hours.

More than remote execution.

  • Port forwarding

    Open a dev server from another machine in your local browser.

    xrun devbox forward 8080:3000
  • Screenshots

    Capture a target’s display as PNG, JPEG or WebP for an agent to inspect.

    xrun macbook screenshot ./screen.png
  • Streaming

    Pipe stdin and stdout in real time, for example to stream a directory as tar.

    xrun devbox -i -C /repo -- tar -cf - dist > dist.tar
  • LAN direct

    On the same network, devices connect directly and fall back to the relay.

    xrun network direct 192.168.1.10
  • Safe retries

    Request IDs, JSON results and defined exit codes let agents retry without running a job twice.

    xrun devbox jobs --request-id <id> --json
  • Offline manual

    xrun help and xrun doc work with no network. Add --lang zh for Chinese.

    xrun doc automation

Security

Your machines. Your access decisions.

The relay only forwards ciphertext, and every device decides for itself who may use it.

  • End-to-end encrypted

    Devices talk over mutual TLS inside the relay tunnel. The relay cannot read commands, output, files or screenshots.

  • Each device decides

    Joining a network grants nothing. A target allows specific source devices, and commands run as its current user.

  • No inbound ports

    Devices dial out to a relay you deploy in your own Cloudflare account or on your own Linux server.

  • A roster you sign

    The manager signs the device roster and renews its lease. Revoked devices lose access.

Get started

Start with two of your machines.

Install xrun on both, deploy a relay, then create a network and invite the second machine. Each step says where to run it.

  1. On macbook, or on a Linux server

    Deploy a relay

    Cloudflare

    xrun relay deploy --provider cloudflare --name xrun-relay

    Linux server

    xrun relay deploy --provider local --addr <server-ip>:9528

    Cloudflare opens your browser to authorize. Both print a deployment link for the next step.

  2. On macbook

    Create the network

    xrun connect '<deployment link>' --name macbook

    macbook becomes the manager. Keep it online: it renews the signed device roster.

  3. macbook, then devbox

    Invite devbox

    macbook

    xrun invite

    devbox

    xrun connect relay.example.com K7M4-P9Q2 --name devbox --allow-manager

    Use the address and access code that invite prints. Codes are single-use and expire in 10 minutes.

  4. On macbook

    Run your first remote command.

    xrun devbox -- uname -s

    LinuxLinux answers. You’re connected.

Prefer an app? On macOS and Windows, New network deploys a Cloudflare relay and creates the network in one flow.

Before you start

A few things to know.

User manual
Does each agent need a plugin?

No. Any agent that can run a CLI on its machine can use xrun. Install xrun on both ends, join the network and allow access on the target. Cloud environments must permit installing and running commands.

Do permissions belong to agents or devices?

To source device identities. Programs that can use the same identity share its access, and commands run as the target’s current user. Network membership alone grants nothing.

Does the manager need to stay online?

Yes. The manager renews the signed roster on a lease, 15 minutes by default and up to 24 hours. If it stays offline past the lease, new remote operations return ROSTER_EXPIRED until it is back. Accepted jobs keep running.

Does a disconnect or an access pause stop a job?

Accepted reliable jobs keep running; reconnect to query their logs and results. Pausing access closes sessions; cancel a job with kill. Streaming runs and port forwards end with their connection, and stopping the target’s service cancels its running jobs.

Can I transfer large files or whole directories?

push and pull move one file at a time, SHA-256 verified, with no fixed size limit. Interrupted transfers can resume within 24 hours. For a directory, stream a tar archive with -i, or sync code with Git.

What do the app and the CLI each do?

On macOS and Windows, the app manages networks, access, the background service and activity, and can run commands, transfer files and take screenshots too. Its New network flow deploys a Cloudflare relay for you. Linux uses the CLI.

Why not just use SSH?

SSH needs a reachable port or a VPN, keys on every host and a live session. With xrun, devices only dial out to your relay, each target chooses who may connect, accepted jobs survive disconnects, files come back verified and results are available as JSON. Windows needs no OpenSSH setup.

Give your agents every computer you own.

Open source under MIT. Your relay, your devices, your rules.