Install the daemon¶
The daemon runs on the computer where Claude Code or Codex runs, as your own user. It needs:
- Linux, macOS, or Windows through WSL2.
tmux, for sessions you want to control from the phone.claudeand/orcodexon yourPATH.- 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:
- 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 Claude Code hooks and the Codex notify handler, 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.
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.