# AgentSesh — Complete Product & Host Setup Reference Website: https://agentsesh.ai (also mirrored at https://agentsesh.si) Localized pages: - English: https://agentsesh.ai/ - 简体中文: https://agentsesh.ai/zh/ - 한국어: https://agentsesh.ai/ko/ - 日本語: https://agentsesh.ai/ja/ - Español: https://agentsesh.ai/es/ ## 1. Overview AgentSesh is a native iOS and iPadOS control center built for developers running AI coding agents across multiple personal or lab computers (Mac Studio, MacBook Pro, NVIDIA DGX Spark, Linux servers, and Windows PCs). It adapts seamlessly to iPhone Duo (both folded cover display and unfolded wide inner display) as well as iPad Pro 13-inch with hardware keyboard shortcuts (⌘1–⌘9). ## 2. Core Capabilities - **Live Coding Agents (Claude Code, OpenAI Codex, Antigravity `agy`, Shell):** Runs inside persistent host `tmux` (macOS/Linux) or native `psmux` (Windows ConPTY, zero WSL). Supports 24-bit TrueColor, one-tap `--dangerously-skip-permissions` / `--yolo` launch toggle, automatic one-tap Quick Reply pills for numbered menus & yes/no prompts, voice dictation, photo uploads, and automatic tmux copy-mode exit when resuming typing after scrolling back. - **LAN-First + Multi-Organization In-App Tailscale:** Always races local `.local`/LAN endpoints first for sub-millisecond home speed, then falls back seamlessly to Tailscale via an embedded Tailscale client that supports multiple organizations simultaneously without being broken by iOS system VPN stalls. - **Persistent Background Sessions:** Keeps SSH connections warm across quick app switches and reattaches automatically after network hops, screen locks, or iPhone Duo fold/unfold transitions. - **Native SFTP v3 File Explorer + Apple Files Integration:** Custom SwiftNIO SFTP v3 client with 32 KB pipelined streaming, atomic `.part` writes, symlink resolution, POSIX & Windows `/C:/...` path handling, saving straight to `On My iPhone/iPad → AgentSesh → Downloads` (`UIFileSharingEnabled`) with QuickLook and iOS Share Sheet. - **60 fps Apple Screen Sharing & Standard VNC (Port 5900):** Multi-tab remote desktop supporting Apple High Performance HEVC over UDP for Macs plus standard VNC for NVIDIA DGX Spark / Linux and Windows PCs. - **Private by Design:** Direct Ed25519 SSH + WireGuard connections between your iOS device and your own hosts. Zero relay servers, zero cloud accounts, zero telemetry. ## 3. Host Setup & OS Permissions / Sudo / Privacy Checklists ### A. macOS (`curl -fsSL https://agentsesh.ai/install/mac.sh | bash`) - Package download: https://agentsesh.ai/downloads/agentsesh-mac-host.tar.gz - Installs: Homebrew check + `tmux`, `~/.config/agentsesh/tmux.conf` (24-bit color + auto-exit copy-mode), `agentsesh` CLI, `end-session.sh`, and `/etc/ssh/sshd_config.d/050-agentsesh.conf` (requires `sudo` password once to prevent macOS's 42-socket sshd cap on cellular drops). - Manual macOS System Settings required: 1. `System Settings → General → Sharing → Remote Login`: Turn **ON**, click **ⓘ**, enable **"Allow full disk access for remote users"** (essential for SFTP and coding agents accessing Desktop/Documents/external volumes). 2. `System Settings → General → Sharing → Screen Sharing`: Turn **ON**, click **ⓘ**, allow your macOS user (enables 60 fps Apple High Performance HEVC on TCP/UDP port 5900). 3. Optional Privacy check: `System Settings → Privacy & Security → Full Disk Access` (`sshd-keygen-wrapper`) if custom scripts access protected directories. 4. Prevent sleep on AC power: `sudo pmset -c sleep 0` (or Amphetamine) + Tailscale app (disable Key Expiry). ### B. NVIDIA DGX Spark & Ubuntu/Linux (`curl -fsSL https://agentsesh.ai/install/dgx-spark.sh | bash`) - Package download: https://agentsesh.ai/downloads/agentsesh-dgx-spark-host.tar.gz - Uses `sudo` to install `openssh-server`, `tmux`, `avahi-daemon`, `tigervnc-standalone-server`, `x11vnc`, SSH keepalive, masks sleep/suspend targets, and opens UFW ports `22/tcp` & `5900/tcp`. - Solves DGX Spark / Ubuntu 24.04 GNOME Remote Desktop RDP-only default (port 3389): enables legacy GNOME VNC (`grdctl vnc enable`) AND installs persistent user service `agentsesh-vnc.service` on TCP port `5900` with `loginctl enable-linger`. - One-time VNC password command: `vncpasswd && systemctl --user enable --now agentsesh-vnc.service`. ### C. Windows 10 / 11 (`irm https://agentsesh.ai/install/windows.ps1 | iex`) - Package download: https://agentsesh.ai/downloads/agentsesh-windows-host.zip - Must be run in **Windows Terminal / PowerShell as Administrator** (approve UAC prompt). - Installs Windows OpenSSH Server + `Subsystem sftp sftp-server.exe` (port 22), PowerShell default shell, native `psmux` via `winget install marlocarlo.psmux` (zero WSL, working Ctrl-C), TightVNC Server (port 5900, solving Windows' RDP-only default), Firewall rules for TCP 22 & 5900, and disables AC sleep (`powercfg /change standby-timeout-ac 0`). - Manual one-time steps: 1. Open `Start → TightVNC Service Configuration → Server tab → Set Primary Password` for VNC Screen Sharing. 2. For Windows Administrator accounts, place your AgentSesh Ed25519 public key in `C:\ProgramData\ssh\administrators_authorized_keys` (NOT `~/.ssh/authorized_keys`) and run: `icacls.exe "C:\ProgramData\ssh\administrators_authorized_keys" /inheritance:r /grant "Administrators:F" /grant "SYSTEM:F"`.