Skip to content

Install the daemon

The daemon runs on the computer where your agent CLIs run, as your own user. It needs:

  • Linux, macOS, or Windows through WSL2.
  • tmux, for sessions you want to control from the phone.
  • At least one agent CLI on your PATH: claude, codex, agy (Antigravity CLI) or copilot.
  • A private address the phone can reach: the same Wi-Fi, or a VPN such as WireGuard, Tailscale or NetBird. The daemon never listens on a public address.

One-line installer

curl -fsSL https://raw.githubusercontent.com/ZerkerEOD/porthole/main/scripts/install.sh | sh

The script downloads the latest GitHub release for your OS and architecture, verifies the checksum, and runs porthole install.

To build from source instead, with Go 1.27:

cd daemon
go build -o ~/.local/bin/porthole ./cmd/porthole
porthole install

What porthole install does

  1. Copies the running binary to ~/.local/bin/porthole if it is not already there.
  2. Sets up a user service so the daemon starts at login and restarts if it crashes. Sessions started from the app run in tmux outside the service, so restarting or upgrading the daemon leaves them running:
    • Linux: writes ~/.config/systemd/user/porthole.service, runs systemctl --user daemon-reload and systemctl --user enable --now porthole, then tries loginctl enable-linger so the service also runs while you are logged out. If linger needs root it prints the sudo command to run.
    • macOS: writes ~/Library/LaunchAgents/io.zerkersec.porthole.daemon.plist and loads it.
  3. Runs the same checks as porthole doctor: tmux, the CLIs, the profiles it will watch, and whether the daemon answers.
  4. Installs the hooks of the agent CLIs it finds, the same as porthole install-hooks. The hooks deliver permission prompts and session status to the daemon. They apply to sessions started after this point.
  5. Prints the next steps: porthole add inside a repository, then porthole pair.

porthole install --no-service skips step 2 (run porthole serve yourself, or use the unit files under daemon/packaging/). --no-hooks skips step 4.

Upgrading

Run the one-line installer again. It downloads the newest release, replaces ~/.local/bin/porthole, restarts the service and refreshes the hooks. Sessions keep running through the restart, with one exception: the service installed by version 0.1.0 stopped the sessions it had started when it was restarted, so the upgrade from 0.1.0 ends sessions you started from the app (not ones you started in a terminal). Finish or detach those first. Every later upgrade leaves them alone.

The app and the daemon move together. App version 1.0 needs daemon 0.2.0 or newer; porthole status prints the version you are running, and the changelog lists what each release added.

Check it

porthole status

prints the version, the addresses the daemon is listening on, and how many sessions and devices it knows about. porthole doctor goes through the environment in more detail.

Firewall

The app connects to TCP port 7433 (change it with port in config.toml). If the computer runs a host firewall, allow that port on the VPN or LAN interface the phone will use.

Next