User guide Sharing a tab

Sharing a tab

Share… in a tab's right-click menu gives the tab a link that opens it live in a browser, on another computer or a phone, through a plexusterm-relay you run yourself. Nothing moves: the programs keep running on this computer, and the share ends with it.

Setting up (Settings → Sharing): the relay's Relay URL (wss://…), the Viewer origin that serves the viewer page (https://…) and the Relay token, which is kept only in the system keyring and is never shown again. ws:// and http:// are accepted only for localhost. How to install the relay there links to its project, which explains how to deploy it.

Sharing: the dialog offers View only (the default) and Can type links, both at once if you want, each with Copy link and a QR code; when the share ends (When I stop sharing, in 1 hour or in 12 hours: every share ends after 12 hours at most); and the History sent on join (the current screen only, or the last 1 000 or 5 000 lines; earlier output may contain secrets). The share uses the tab's focused pane.

  • The tab shows a mark with the number of people connected; clicking it opens the dialog again, with the links, who is connected (label, access, address, since when) and Disconnect, which also replaces that link, so the viewer cannot come back with it.
  • Joining: each request shows a desktop notification and a message in the tab with Allow and Deny. Can type joins ask; View only joins ask too unless View only joins need approval is off. Allow everyone automatically in the Share dialog lets every join in without asking, Can type included (the dialog warns that this gives a shell to anyone with the link); each join is still notified.
  • While sharing: Change to view only (typing again needs a new share), Pause viewer input, and a new end time. A timed share warns 10 minutes before it ends, with Extend 1 hour.
  • Viewer typing is held, never dropped, while you type, while another viewer typed less than 2 seconds ago, while input is paused, and at a password prompt (you are told a password is needed). Password detection is best effort.
  • Can type is a remote shell on your computer: anything you authorized (sudo, ssh-agent, gh auth) is usable by typing viewers. With Run sudo -k when a Can type share starts (on by default) the tab runs sudo -k when the share goes live.
  • Ending: Stop sharing, the expiry, the shared program exiting, or 30 minutes without viewers end it, and viewers are told. Closing a shared tab, or quitting, asks first. If PlexusTerm crashes, the next start says when the share ended.
  • Staying awake: while any tab is shared the computer does not sleep when idle (Linux: logind; Windows: its power API). On Linux, Also block lid-close sleep while sharing blocks lid-close sleep too; on Windows closing the lid still sleeps.
  • Privacy: output and input are encrypted end to end for each viewer; the relay sees neither. Browser viewers trust the viewer page's server.
  • Audit log (Audit log… in the dialog or Settings → Sharing): share start and end, join requests, approvals, denials, disconnects, and each viewer's typing (time and byte count; the typed text only with Record what viewers type in the audit log). It is kept 30 days in ~/.config/dev.plexusterm.app/share-audit.log.

Opening a shared link in PlexusTerm: More → Open shared link… takes a link someone shared with you. PlexusTerm reads the relay from the link's viewer page and asks "Connect to share on ?" before connecting; nothing needs setting up on the viewing side. The share opens as a tab at the sharer's size, with copy (Ctrl+Shift+C) and find (Ctrl+Shift+F); you type into it only with a Can type link, while the sharer has not paused input. Its bar says Terminal of another computer (hover it for what is blocked) and shows your access. It is an untrusted pane: what the remote program prints never reaches your clipboard, never gets terminal query answers, titles, notifications or links, and is never logged or sent to the AI. While the connection is lost it reconnects by itself (no input is sent meanwhile); when the share ends the pane is cleared and says why. To leave a share, close its tab or choose Disconnect in the tab's right-click menu; the share goes on for the others. A share made with a newer protocol asks to update PlexusTerm and offers the browser instead.