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
EnvironmentVariablesin~/Library/LaunchAgents/app.pocketty.daemon.plist, then runlaunchctl kickstart -k gui/$(id -u)/app.pocketty.daemon. - Linux: run
systemctl --user edit pocketty, addEnvironment=lines, then runsystemctl --user restart pocketty. - Homebrew:
brew serviceswrites 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
| Variable | Default | Effect |
|---|---|---|
POCKETTY_STATE_DIR | $XDG_STATE_HOME/pocketty | Where the daemon keeps its state. |
XDG_STATE_HOME | ~/.local/state | Base folder for the state, when POCKETTY_STATE_DIR is not set. |
POCKETTY_HERDR | found on PATH | Path to the herdr binary. Set it to off to turn notifications off. |
POCKETTY_TAILSCALE | found on PATH | Path to the tailscale CLI. The Mac App Store app is found by itself. |
POCKETTY_AUTHORIZED_KEYS | ~/.ssh/authorized_keys | The file that code setup adds keys to. |
POCKETTY_SSH_DIR | /etc/ssh | Where 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
| Variable | Default | Effect |
|---|---|---|
POCKETTY_ENROLL | on | Set to off to turn code setup off. |
POCKETTY_ENROLL_PORT | 7450 | The port for code setup, on Tailscale addresses only. |
POCKETTY_SSH_PORT | 22 | The SSH port that code setup tells the phone. |
POCKETTY_ADVERTISE | on | Set to off to hide this host from Nearby. |
POCKETTY_PROMPT | on | Set to off to stop the Mac alert. Use pocketty approve instead. |
POCKETTY_ENROLL_EXPIRY_MS | 120000 | How long a request waits, in milliseconds. |
Notifications
| Variable | Default | Effect |
|---|---|---|
POCKETTY_HOST | short hostname | The host name that notifications show. |
POCKETTY_DEBOUNCE_MS | 2000 | How long the daemon waits before it sends, per Pane. |
POCKETTY_SESSION_POLL_MS | 5000 | How often it looks for new herdr sessions. |
Logs and Updates
| Variable | Default | Effect |
|---|---|---|
POCKETTY_LOG | info | Log level, for example debug or pocketty_daemon=trace. Logs go to stderr. |
POCKETTY_UPGRADE_POLL_MS | 30000 | How often the daemon checks whether its binary changed. |