Prepare Mac, DGX Spark & Windows hosts for AgentSesh.
Every package installs tmux / native psmux, SSH + SFTP, keepalive, and VNC / Apple Screen Sharing (port 5900), plus step-by-step instructions for sudo prompts, macOS System Settings (Remote Login, Full Disk Access, Screen Sharing), Linux GNOME RDP→VNC, and Windows Administrator UAC + TightVNC.
macOS All-in-One Host Setup
Installs Homebrew check + tmux, AgentSesh's 24-bit truecolor & auto-exit copy-mode profile, agentsesh CLI, clean session teardown, SSH keepalive (prevents macOS's 42-socket cellular lockout), and checks Remote Login (SSH/SFTP) & Apple Screen Sharing.
curl -fsSL https://agentsesh.ai/install/mac.sh | bash
Paste the 1-line command above (or extract agentsesh-mac-host.tar.gz and run bash install.sh). If Homebrew isn't installed yet, install it from brew.sh first so tmux installs cleanly.
Required once to write /etc/ssh/sshd_config.d/050-agentsesh.conf (ClientAliveInterval keepalive). This prevents macOS from hitting its 42-socket sshd limit after cellular network switches.
Open System Settings → General → Sharing → turn ON Remote Login. Click the ⓘ info button next to Remote Login and toggle ON “Allow full disk access for remote users” — this is essential so SFTP downloads and coding agents can read Desktop, Documents, and external drives.
In System Settings → General → Sharing → turn ON Screen Sharing. Click ⓘ to allow your macOS user (enables Apple High Performance HEVC on port 5900). If a background script still hits macOS folder prompts, add sshd-keygen-wrapper under System Settings → Privacy & Security → Full Disk Access.
Run sudo pmset -c sleep 0 (or use Amphetamine) so your Mac stays reachable on AC power. Install Tailscale on Mac and disable Key Expiry in your Tailscale Admin Console for seamless away-from-home access.
DGX Spark & Linux All-in-One Host Setup
Installs OpenSSH Server (SSH + SFTP), tmux + truecolor profile, avahi-daemon (.local LAN), SSH keepalive, masks idle sleep/suspend, and solves DGX Spark / Ubuntu 24.04's GNOME RDP-only quirk by setting up standard VNC on port 5900 + UFW firewall rules.
curl -fsSL https://agentsesh.ai/install/dgx-spark.sh | bash
Paste the 1-line command in Terminal (or extract agentsesh-dgx-spark-host.tar.gz and run bash install.sh). Enter your sudo password once — the script installs openssh-server, tmux, avahi-daemon, TigerVNC, x11vnc, SSH keepalive, and disables sleep/suspend targets.
Ubuntu 24.04 and DGX Spark default GNOME Remote Desktop to RDP (port 3389). Our installer automatically enables GNOME legacy VNC auth (grdctl vnc enable) AND creates a persistent user systemd VNC service (agentsesh-vnc.service on TCP 5900) so both headless and monitor-attached DGX Sparks work smoothly.
Run: vncpasswd && systemctl --user enable --now agentsesh-vnc.service (if using GNOME desktop with a monitor, you can also set the VNC password in Settings → System → Remote Desktop → Desktop Sharing).
If UFW is active, the installer automatically allows TCP 22 (SSH/SFTP) and TCP 5900 (VNC) and runs sudo loginctl enable-linger so tmux and VNC survive logouts.
Run curl -fsSL https://tailscale.com/install.sh | sh && sudo tailscale up, then add the host in AgentSesh with System = Linux, your LAN .local address, and your 100.x Tailscale IP.
Windows All-in-One Host Setup
Configures Windows OpenSSH Server + SFTP subsystem, sets PowerShell default shell, installs native psmux (tmux-compatible with working Ctrl-C, zero WSL), solves Windows' RDP-only limitation by installing TightVNC Server on port 5900, opens Firewall rules, and disables AC sleep.
irm https://agentsesh.ai/install/windows.ps1 | iex
Right-click Windows Terminal or PowerShell → click “Run as Administrator” and approve the Windows UAC security prompt. Administrator rights are required to install OpenSSH Server, create Firewall rules, and install TightVNC as a service.
Paste the command above (or unzip agentsesh-windows-host.zip and run powershell -ExecutionPolicy Bypass -File install.ps1). It installs OpenSSH + SFTP, native psmux via winget, TightVNC Server, Firewall ports 22 & 5900, and disables AC power sleep.
Windows Remote Desktop uses RDP only. Open Start → TightVNC Service Configuration → Server tab → click “Set” under Primary Password. Enter this password in AgentSesh to view & control your Windows desktop over VNC port 5900.
If your Windows account is an Administrator, OpenSSH ignores ~/.ssh/authorized_keys! Paste your AgentSesh Ed25519 public key into C:\ProgramData\ssh\administrators_authorized_keys and lock permissions with: icacls.exe "C:\ProgramData\ssh\administrators_authorized_keys" /inheritance:r /grant "Administrators:F" /grant "SYSTEM:F"
Run winget install Tailscale.Tailscale, sign in from the system tray, and add your PC in AgentSesh with System = Windows.