Skip to content

Host Daemon

By default, Runside inspects remote SSH servers without installing anything on them. Install the optional runsided binary only on shared team servers or always-on machines where multiple teammates connect at once or you want 24/7 phone access and alerts while your laptop sleeps.

runsided runs per machine, never as a central server or hub:

  • Install it only on specific Linux or macOS devboxes (devbox-01).
  • Leave every other server (staging-01, prod-db-01, personal machines) zero-agent.
  • Runside Desktop detects runsided automatically over SSH and falls back cleanly to standard SSH scanning if stopped or removed.

Download the matching runsided archive from GitHub Releases alongside SHA256SUMS.txt:

Terminal window
shasum -a 256 -c SHA256SUMS.txt --ignore-missing
tar -xzf runsided-v0.1.0-linux-x86_64.tar.gz -C ~/.local/bin
runsided --once

runsided --once prints one local snapshot JSON payload to stdout and exits without opening sockets.

Flag / Command Default Purpose
--listen <ADDR> 127.0.0.1:47622 Loopback read-only HTTP bind address
--unix-socket <PATH> /tmp/runsided.sock Unix domain socket listener (0660)
--no-unix-socket false Disable the Unix domain socket listener
--mobile-listen <ADDR> Disabled Opt-in Direct LAN / Tailscale listener for Mobile (e.g. 0.0.0.0:47624)
--mobile-relay false Connect outbound to the zero-account Encrypted Mobile Relay
--mobile-relay-url <URL> https://relay.runside.dev Override encrypted relay base URL (implies --mobile-relay)
--interval-ms <MS> 2000 (min 1000) Background scan interval in milliseconds
--session-tokens false Opt in to numeric Claude Code / Codex token & context counters (prompts never stored)
--config <PATH> ~/.config/runside/config.toml Custom configuration file path
--once false Run one local scan, print JSON, and exit
pair · Print a 5-minute QR pairing code (--json, --permission read-only|non-prod)
devices / revoke <id> · List paired phones or revoke access immediately
print-service · Generate a ready-to-use --systemd unit or macOS --launchd plist
doctor · Check config, sockets, Tailscale URLs, alert credentials, and paired devices
-V, --version · Print runsided version
-h, --help · Print CLI help
Terminal window
# Linux (systemd user unit)
mkdir -p ~/.config/systemd/user
runsided print-service --systemd --mobile-listen 0.0.0.0:47624 > ~/.config/systemd/user/runsided.service
systemctl --user daemon-reload
systemctl --user enable --now runsided
loginctl enable-linger "$USER"
# macOS (always-on Mac Mini / Mac Studio)
runsided print-service --launchd --mobile-listen 0.0.0.0:47624 > ~/Library/LaunchAgents/dev.runside.runsided.plist
launchctl load -w ~/Library/LaunchAgents/dev.runside.runsided.plist

Run runsided doctor anytime to verify sockets, reachable Tailscale/LAN addresses, alert credentials, and paired phones.

  • From Desktop (recommended): Open Settings (⌘,) → Mobile → Pair a device, select devbox-01 (Always on) under Pair with, and scan the QR code.
  • Over SSH: Run runsided pair --permission non-prod directly in a shell to display the QR code.
  • 24/7 Transition Alerts & Continuous Timeline: runsided continuously records per-session runtime transitions (starts, exits, crashes, zombie flags, and Mobile stops) locally even while your laptop sleeps, syncing them automatically when Desktop connects. With alerts.enabled = true in ~/.config/runside/config.toml, it also sends secret-redacted Slack, Discord, ntfy, Pushover, or webhook alerts on agent exits, zombie spikes, blocked DB locks, HTTP 5xx bursts, or RAM/disk pressure, with cooldowns and quiet hours.

On headless Linux servers without a desktop Keychain session, runsided checks two secure fallbacks per channel ID (keeping webhooks/tokens out of config.toml):

  1. systemd LoadCredential (CREDENTIALS_DIRECTORY): Set LoadCredential=runside-alert-<channel_id>:/etc/runside/slack-ops.secret (plain https://... URL or JSON {"webhookUrl":"...","signingSecret":"..."}).
  2. EnvironmentFile (RUNSIDE_ALERT_SECRET_<CHANNEL_ID>): Pass RUNSIDE_ALERT_SECRET_SLACK_OPS=https://hooks.slack.example/services/T000/B000/XXX (uppercased channel ID, - → _).
  • Loopback & Unix Socket Only: HTTP status/snapshot endpoints bind only to 127.0.0.1:47622 and /tmp/runsided.sock (0660).
  • Read-Only Snapshot API: Exposes only GET /health, GET /v1/snapshot, and GET /v1/timeline (405 on non-GET, 403 on cross-origin headers).
  • Unprivileged: Runs without root or sudo.