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) orcopilot. - 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¶
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:
What porthole install does¶
- Copies the running binary to
~/.local/bin/portholeif it is not already there. - 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, runssystemctl --user daemon-reloadandsystemctl --user enable --now porthole, then triesloginctl enable-lingerso the service also runs while you are logged out. If linger needs root it prints thesudocommand to run. - macOS: writes
~/Library/LaunchAgents/io.zerkersec.porthole.daemon.plistand loads it.
- Linux: writes
- Runs the same checks as
porthole doctor: tmux, the CLIs, the profiles it will watch, and whether the daemon answers. - 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. - Prints the next steps:
porthole addinside a repository, thenporthole 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¶
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¶
- Tell the daemon about your repositories with
porthole add. Directories you have already run an agent in are offered without it. - Pair a phone.