Skip to content

Tunnels

Runside turns SSH port forwards and local webhook URLs into tracked, 1-click controls instead of forgotten background terminal tabs.

Click Tunnel & Preview, press f on any remote row, or click ↗ to start a dedicated non-interactive OpenSSH forward:

ssh -N -L 127.0.0.1:<local_port>:localhost:<remote_port> <host_id>
  • Automatically picks a free local port (starting near 10000 + remote_port) and reaches both IPv4 (127.0.0.1) and IPv6 ([::1]) remote listeners.
  • Every active forward stays in the ● N Tunnels titlebar popover (Open, × close, Close All), the Tunnels view, and the macOS Menu Bar popover, and closes automatically when Runside exits.
  • Automatic Stale Cleanup: When an online remote machine confirms a forwarded port stopped listening for 25 seconds, Runside automatically closes the orphaned tunnel.

When a workflow needs multiple remote ports together (such as Postgres :5432 + Redis :6379 + API :8080), save them as a Tunnel Stack:

  1. Open Tunnels and click + New Stack (or ⌘K → Create New Tunnel Stack…).
  2. Name the stack and add machine/port rows, or capture currently open tunnels.
  3. Start or stop the entire group in one click from Tunnels, ⌘K, or the Menu Bar popover.

Stacks live in ~/.config/runside/config.toml under [[tunnel_stacks]] and safely reuse matching open tunnels.

Testing webhooks (Stripe, GitHub, Slack) often requires knowing which temporary public URL maps to which local port. Runside automatically detects:

  • cloudflared: Quick-tunnel URLs (https://<slug>.trycloudflare.com) and named tunnels.
  • ngrok: Active tunnel mappings when ngrok is running.
  • Tailscale Serve & Funnel: Active Tailnet and public internet routes.

Detected URLs appear in the ● N Tunnels titlebar popover, Tunnels, Workspaces, the preview address bar, Copy AI (c), and MCP tools (list_ports, list_tunnels).