Skip to content

feat: Tailscale serve integration for secure remote access #9269

Description

@teknium1

Feature Request

Source: Community request from @PaulTisl

Problem

Users want secure remote access to the Hermes API server / Open WebUI without exposing ports publicly or setting up reverse proxies. Tailscale's tailscale serve provides zero-config HTTPS tunneling over a private mesh network — Claw3D already uses this pattern.

Proposal

Add optional Tailscale serve integration so users can expose their local Hermes API server over their Tailnet with a single config toggle or CLI flag.

Possible approaches (lightest to heaviest):

  1. Docs only — Document the one-liner: tailscale serve https://localhost:8642 alongside gateway setup. Zero code changes.

  2. Config flag + auto-launch — Add a gateway.tailscale_serve: true config option. When enabled, hermes gateway start spawns tailscale serve pointing at the API server port as a subprocess alongside the gateway. Teardown on hermes gateway stop.

  3. CLI flaghermes gateway start --tailscale as a one-shot option without persisting to config.

Considerations

  • Tailscale must already be installed and authenticated (tailscale status should succeed)
  • The API server key (HERMES_API_KEY) should be enforced when exposing remotely — warn if unset
  • tailscale serve handles HTTPS termination automatically
  • launchd/systemd service definition may need updating if we want Tailscale serve to persist across reboots alongside the gateway

Prior Art

  • Claw3D uses tailscale serve for remote access (referenced by the requester)
  • Only one Tailscale reference currently exists in the codebase (URL safety test)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions