Skip to content

The houseguest command

houseguest is the Houseguest™ command line. Sharers use it to share a port on their own computer; viewers use it to reach TCP and SSH services in a preview. It is one file, with builds for macOS and Linux (amd64 and arm64) and Windows (amd64).

On macOS and Linux:

Terminal window
curl -fsSL https://get.houseguest.dev/install.sh | sh

On Windows, in PowerShell:

Terminal window
irm https://get.houseguest.dev/install.ps1 | iex

During early access, the download details come with your early-access invitation.

The script downloads the build for your computer, checks it against the published SHA256SUMS, installs it to ~/.local/bin (on Windows, %LOCALAPPDATA%\Programs\Houseguest) and adds that folder to your PATH. No sudo or administrator rights. Open a new terminal afterwards.

install.sh takes these options:

Option
--version 0.9.1 Install that version instead of the latest
--prefix DIR Install into DIR instead of ~/.local/bin. sudo is used only when DIR is not writable, and the script says so first
--no-modify-path Leave shell startup files alone
--uninstall Remove the command and the PATH line the script added

Options go after sh -s --, for example curl -fsSL https://get.houseguest.dev/install.sh | sh -s -- --version 0.9.1. install.ps1 takes -Version, -InstallDir, -NoModifyPath and -Uninstall.

To install by hand instead, download the file for your computer from https://get.houseguest.dev/<version>/, check it against that version’s SHA256SUMS, make it executable and move it onto your PATH.

From houseguest 0.9.1, the command updates itself:

Terminal window
houseguest update
Release 0.9.2 (commit 1a2b3c4): signed by A (yb59UYCEZ35V), key set 1.
Downloading houseguest-darwin-arm64 (11.3 MB)...
Updated houseguest 0.9.1 to 0.9.2 at /Users/alice/.local/bin/houseguest.
The previous version is kept at /Users/alice/.local/bin/houseguest.prev.

It installs a release only when all of this holds, and changes nothing otherwise:

  1. The release’s manifest is signed. Releases are signed with hardware security keys held by Houseguest; the public keys are built into the command, and a change to them needs two of those keys. This is the same check agents make before they update.
  2. The file for your system matches the SHA-256 in the signed manifest.

Like an agent, the command remembers what it has verified, in a release folder beside its sign-ins (on Linux ~/.config/houseguest/release, on macOS ~/Library/Application Support/houseguest/release, on Windows %AppData%\houseguest\release). Under sudo it is always the root user’s own folder (/var/root/Library/Application Support/houseguest/release on macOS, /root/.config/houseguest/release on Linux), never yours, even where sudo keeps your HOME. The command refuses a folder there that is a symlink or belongs to another user, and says which. It keeps:

  • Every change to the release keys it has accepted. A key Houseguest revoked stays revoked for this computer, even if the downloads site later stops serving that change.
  • The rollback floor: the highest minimum version any verified release has named, typically the release that fixed a security issue. No update, --version included, installs a release below it.

Deleting the folder is safe: the next run starts again from the keys built into the command.

The new file is written next to the old one and renamed over it, so a houseguest that is running (a share, a forward) keeps working until it ends. The previous version stays beside it as houseguest.prev; to go back, move it over houseguest.

Option
--check Report the installed and the latest version, install nothing
--version 0.9.1 Install that release instead of the latest. It may be older than the one installed, but not below the rollback floor (below)
--base URL Another downloads site, https:// only (or file://DIR, a local copy). The command names it on every run. Default: https://get.houseguest.dev, or HOUSEGUEST_BASE_URL

houseguest update --check exits with:

Exit code Meaning
0 The installed version is the latest release (or newer)
10 Another release is available (with --version: that release is published, signed and not the one installed)
1 The check failed: the downloads site was not reachable, or a signature did not verify
2 A bad option

houseguest update exits 0 when it updated, or when there is nothing to do; 1 when nothing was installed.

Message
cannot write to DIR, where houseguest is installed The command is in a folder you cannot write, such as /usr/local/bin. Run sudo houseguest update, or reinstall into a folder you own with the install script (the default, ~/.local/bin, needs no sudo). On Windows, run it from a PowerShell opened as administrator
houseguest 0.9.2 is already installed. Nothing to do. You have the latest release
the signature does not verify The manifest is not signed by a current Houseguest release key. Nothing is installed. Report it to Houseguest
SHA-256 does not match the manifest The download is not the file the signed manifest names (a proxy or cache changed it, or the download was cut short). Nothing is installed. Run it again; if it repeats, report it
release 0.9.3 is not published No such version on get.houseguest.dev
0.8.0 is below the rollback floor 0.9.0 A release this old is no longer installed: a later one fixed a security issue
only https:// (or file://) is accepted --base or HOUSEGUEST_BASE_URL names a plain http:// site. The command never downloads releases in the clear, and does not follow a redirect from https:// to http:// either

houseguest 0.9.0 and older have no update: run the install script once, and houseguest update from then on.

Command
houseguest share PORT … Put a port on this computer on a Houseguest address. See Share from your computer
houseguest login HOST Sign in to a preview for TCP and SSH. See TCP and SSH
houseguest connect NAME:PORT Connect stdin and stdout to a TCP service (SSH ProxyCommand)
houseguest forward [ADDR:]PORT NAME:PORT Listen on this computer and forward each connection to a TCP service
houseguest status List sign-ins (previews and the console)
houseguest logout [DOMAIN | --console | --all] Sign out
houseguest update [--check] [--version X.Y.Z] Update the command (above)
houseguest version Print the version
Terminal window
curl -fsSL https://get.houseguest.dev/install.sh | sh -s -- --uninstall

On Windows, & ([scriptblock]::Create((irm https://get.houseguest.dev/install.ps1))) -Uninstall. Run houseguest logout --all first to end the sign-ins the command keeps. The uninstall also removes the houseguest.prev an update left.