Set up your Mac

Hoptail on your iPhone talks to a small program on your Mac, the Hoptail daemon. It watches your tmux sessions and the agents in them, and lets your iPhone know when one needs you. Setup takes about five minutes.

Just want to look around first? Tap Try the Demo in the app. It runs on sample data and needs no Mac.

What you need

  • A Mac with Apple silicon (M1 or later), macOS 15 Sequoia or later.
  • Homebrew 6 or later. Check with brew --version.
  • Tailscale on your Mac and your iPhone, signed in to the same tailnet.
  • Claude Code, with claude working in Terminal.
  • tmux. If you don’t have it, run brew install tmux. Hoptail doesn’t install or upgrade tmux, so your running sessions stay as they are.
  • Hoptail on your iPhone from TestFlight: Join the beta

Install

Open Terminal and run:

brew install hoptail-app/tap/hoptail
hoptail setup

Homebrew adds the Hoptail tap and trusts this formula because you named it in full. The daemon is signed and notarized by Apple.

hoptail setup checks that tmux, Tailscale and claude are in place, then:

  • creates a TLS certificate, so your iPhone talks to your Mac over an encrypted connection;
  • starts the daemon in the background and at login. macOS may show “Background Items Added”, which is expected;
  • adds Hoptail’s hooks to Claude Code’s settings, so the daemon knows when an agent is waiting. Your existing hooks stay, and a backup of settings.json is saved next to it;
  • doesn’t touch Claude Code’s sandbox. It prints one line about the sandbox profile Hoptail recommends, which keeps your agents away from Hoptail’s files. The profile goes into your user settings, so it applies to Claude Code in every project, and on macOS it stops agents from listening on local ports and writing outside the project, gh, gcloud and terraform may fail TLS checks, and git over SSH stops working. If a command asks to reach this computer (127.0.0.1, localhost or 0.0.0.0), answer No: Yes opens Hoptail’s ports to the agent. The profile and what it costs you are on hoptail.app/security. To add it, run hoptail setup --sandbox: it shows what would change and what you give up, and adds the profile only if you answer y. To take it off: hoptail setup --remove-sandbox.

It’s safe to run hoptail setup again at any time.

Pair your iPhone

hoptail pair

A QR code appears in Terminal. Open Hoptail on your iPhone and scan it, or scan it with the iPhone Camera. If scanning doesn’t work, tap Enter Code Manually and type the address and code shown next to the QR.

Codes last 5 minutes. If yours expires, run hoptail pair again.

Once your iPhone is paired, hoptail pair asks it first: your iPhone shows Pairing Request, choose the number shown in Terminal, and the QR code appears. Lost that iPhone? Run hoptail devices, then hoptail devices revoke <id> to remove it, and pair the new one. This needs hoptail 0.1.10 or later and an up-to-date Hoptail app on your iPhone. With an older app, hoptail pair asks you to update it and shows the QR code right away.

Then start an agent in tmux, for example tmux new -s demo and claude, or tap New Session in the app. When the agent asks something, your iPhone will let you know.

Everyday commands

CommandWhat it does
hoptail statusShows whether the daemon is running, its address and port, and paired devices
hoptail logsShows the daemon’s log
hoptail restartRestarts the daemon
hoptail pairPairs another iPhone or iPad, after your paired iPhone approves; its code also signs in a browser
hoptail devicesLists paired devices; hoptail devices revoke <id> removes one
hoptail versionShows the version

Add --help to any command, or run hoptail help <command>, to see what it does and its options.

Use Hoptail in a browser

The web client is off by default. It opens only inside your tailnet, through tailscale serve, never on the internet.

Before you turn it on:

  1. In the Tailscale admin console, on the DNS page (https://login.tailscale.com/admin/dns), turn on MagicDNS and HTTPS Certificates.
  2. HTTPS certificates go into a public log together with the machine and tailnet names. So first give your tailnet a random name (such as yak-bebop.ts.net) and this Mac a neutral one (such as mac-mini).
hoptail web enable

It prints the address, such as https://mac-mini.yak-bebop.ts.net/. Open it in a browser on any device in your tailnet. If port 443 of this Mac already serves something else, Hoptail won't replace it: use hoptail web enable --https-port=8443.

hoptail web disable turns it off and removes only Hoptail's tailscale serve setting. hoptail uninstall does the same. hoptail status shows the address, and warns if Funnel is on for it.

Sign in from a browser

The first time, the page asks you to sign in. Choose Ask my iPhone, then:

  1. Your iPhone gets a Sign-in request. Open it and confirm with Face ID.
  2. If you started this sign-in, choose Yes, It’s Me. Your iPhone shows an 8-character code.
  3. Type that code in the browser once your iPhone shows it.

No, It Wasn’t Me ends the request. Changed your mind after Yes? Cancel Sign-In on your iPhone ends it too. The request lasts 2 minutes, and five wrong codes end it. When a request ends, choose Ask Again in the browser for a new request and a new code.

Type the code from your iPhone only for a sign-in you started yourself. Hoptail never asks for it in a chat or a terminal.

Or choose Use a code instead and enter a code from Settings → Add a Browser on your iPhone, or from hoptail pair. Keep hoptail pair running until the browser signs in: Ctrl+C cancels its code.

No paired iPhone, or one with an older Hoptail app? After Ask my iPhone, the page asks for a code right away and may say no iPhone is paired. Run hoptail pair in Terminal on this Mac and enter the code it shows. If an iPhone is paired, it asks you first, as in Pair your iPhone. Update the app on your iPhone to sign in with Ask my iPhone again.

Ask my iPhone needs a device signed in to Tailscale as a person. On a tagged device, such as a server, use a code.

Update

brew upgrade hoptail && hoptail restart

If the app shows Update Hoptail on your Mac, run the same command. If hoptail logs or hoptail status says “run hoptail setup”, the hooks have changed in the new version: run hoptail setup once.

Uninstall

hoptail uninstall
brew uninstall hoptail

hoptail uninstall stops the daemon, removes it from login items and removes only Hoptail’s hooks from Claude Code’s settings. Your pairings and settings stay, in case you come back.

To remove everything, including pairings, settings and logs, use hoptail uninstall --purge instead. Then unpair in the app, or just delete the app.

If you removed Hoptail with Homebrew first

Claude Code keeps working: the leftover hook quietly does nothing. To clean up by hand:

  1. Stop the daemon and remove it from login items:
    launchctl bootout gui/$(id -u)/dev.hoptail.daemon
    rm ~/Library/LaunchAgents/dev.hoptail.daemon.plist
  2. Remove the hooks. Open ~/.claude/settings.json (or $CLAUDE_CONFIG_DIR/settings.json, if you set it) and, under "hooks", delete every entry whose command contains Application Support/Hoptail/hook.sh. Leave other hooks as they are. To check that nothing is left:
    grep -n "Hoptail/hook.sh" ~/.claude/settings.json
  3. Remove Hoptail’s data:
    rm -rf ~/Library/Application\ Support/Hoptail
    rm -rf ~/Library/Caches/Hoptail
    rm -rf ~/Library/Logs/Hoptail

Troubleshooting

“Can’t find your Mac” or “Can’t reach your Mac”

  • Make sure Tailscale is running and connected on both devices, with the same account or tailnet.
  • Click the Tailscale icon in the menu bar: your Mac’s address starts with 100.. You’ll also find it on the Machines page of the Tailscale admin console. hoptail status should show the same address. (The tailscale command isn’t in Terminal by default with the App Store or standalone Tailscale app.)
  • Make sure your Mac is awake. A sleeping Mac can’t answer.
  • If macOS asks whether to allow incoming connections for hoptail, choose Allow. If you denied it earlier, turn it back on in System Settings → Network → Firewall → Options.

The port is busy

Hoptail uses port 7880. If another app holds it, hoptail setup picks the next free port and saves it; the QR code carries the port to your iPhone. If you change ports later, run hoptail pair again. To see what holds a port:

lsof -nP -iTCP:7880 -sTCP:LISTEN

macOS says the app can’t be opened or verified

The daemon is signed and notarized. On first launch, macOS checks it with Apple, so your Mac needs an internet connection the first time. If macOS still blocks it:

  • update with brew upgrade hoptail;
  • check the signature with codesign -dv "$(brew --prefix)/bin/hoptail". It should name the developer;
  • send us the output of spctl -a -vv -t open --context context:primary-signature "$(brew --prefix)/bin/hoptail".

Don’t turn off Gatekeeper to make Hoptail work.

Homebrew says “Your Command Line Tools are too outdated”

If you still see this, update Apple’s Command Line Tools: System Settings → General → Software Update → Command Line Tools for Xcode. If no update shows up, reinstall them with sudo rm -rf /Library/Developer/CommandLineTools and xcode-select --install. Then run brew install hoptail-app/tap/hoptail again.

No notifications

  • Check that notifications for Hoptail are on in iOS Settings, and the app isn’t set to Mute.
  • In Desk mode, Hoptail first waits 20 seconds for you to answer at your Mac. Try Away.
  • Make sure the agent runs in tmux, and run hoptail setup if you installed Claude Code after Hoptail.

claude not found

hoptail setup looks for claude the way your login shell finds it. Make sure claude --version works in a new Terminal window, then run hoptail setup again.

Feedback

Send feedback from TestFlight: take a screenshot in Hoptail and tap Share Beta Feedback, or email feedback@hoptail.app. If something broke, hoptail logs helps a lot. Logs can include project names and paths, so have a look before you send them.