docsget pocketty

Reference

Environment

Environment variables that change how the daemon behaves.

Set these in the daemon’s environment. They stay when you update.

  • macOS: add them under EnvironmentVariables in ~/Library/LaunchAgents/app.pocketty.daemon.plist, then run launchctl kickstart -k gui/$(id -u)/app.pocketty.daemon.
  • Linux: run systemctl --user edit pocketty, add Environment= lines, then run systemctl --user restart pocketty.
  • Homebrew: brew services writes its service file from the formula each time it starts, so your changes do not stay. Use the install script if you need these.

Paths

VariableDefaultEffect
POCKETTY_STATE_DIR$XDG_STATE_HOME/pockettyWhere the daemon keeps its state.
XDG_STATE_HOME~/.local/stateBase folder for the state, when POCKETTY_STATE_DIR is not set.
POCKETTY_HERDRfound on PATHPath to the herdr binary. Set it to off to turn notifications off.
POCKETTY_TAILSCALEfound on PATHPath to the tailscale CLI. The Mac App Store app is found by itself.
POCKETTY_AUTHORIZED_KEYS~/.ssh/authorized_keysThe file that code setup adds keys to.
POCKETTY_SSH_DIR/etc/sshWhere the host’s public SSH keys are, to send during code setup.

When POCKETTY_HERDR is not set, the daemon looks on PATH, then in ~/.local/bin, /opt/homebrew/bin and /usr/local/bin.

Code Setup

VariableDefaultEffect
POCKETTY_ENROLLonSet to off to turn code setup off.
POCKETTY_ENROLL_PORT7450The port for code setup, on Tailscale addresses only.
POCKETTY_SSH_PORT22The SSH port that code setup tells the phone.
POCKETTY_ADVERTISEonSet to off to hide this host from Nearby.
POCKETTY_PROMPTonSet to off to stop the Mac alert. Use pocketty approve instead.
POCKETTY_ENROLL_EXPIRY_MS120000How long a request waits, in milliseconds.

Notifications

VariableDefaultEffect
POCKETTY_HOSTshort hostnameThe host name that notifications show.
POCKETTY_DEBOUNCE_MS2000How long the daemon waits before it sends, per Pane.
POCKETTY_SESSION_POLL_MS5000How often it looks for new herdr sessions.

Logs and Updates

VariableDefaultEffect
POCKETTY_LOGinfoLog level, for example debug or pocketty_daemon=trace. Logs go to stderr.
POCKETTY_UPGRADE_POLL_MS30000How often the daemon checks whether its binary changed.

    Type to search keys, notifications, the CLI, and more.