Skip to main content

Tailscale private web sharing

A first-party adapter for the installed Tailscale client. It keeps the web app's bearer/device authentication and loopback listener; tailnet membership does not grant access to the backend owner's operations or terminal.

Included in the standard app; sharing stays off until you turn it on. Tailscale itself must already be installed and signed in; hz does not install it, log in, grant HTTPS consent or change OS permissions for you. On macOS it also detects the CLI bundled in /Applications/Tailscale.app and explicitly selects CLI mode, as described in Tailscale's CLI documentation.

In Settings or the footer's sharing icon, turn Share over Tailscale on. The control checks the node and existing Serve mappings, merges its exact HTTPS origin into your user configuration and configures its loopback target. The running web app applies the updated origin policy immediately; it does not require a backend restart. The switch shows your choice; its one status line says Turning on… until the authenticated web app confirms its actual port, active origin policy and matching Serve configuration, then shows the URL. A short cause with Try again appears when something needs you; the full explanation is under Details. From the CLI or stdio MCP it saves the same request, and the web app finishes it on its next status read by loading the origin your configuration already allows. Status reads never change Tailscale Serve or your configuration.

hz tailscale status --json
hz tailscale enable --json
hz tailscale disable --json

The corresponding private operations are available through authenticated API and stdio MCP. They are absent from the unauthenticated REST and HTTP MCP heads. In-process calls use the actual bound web port. A separate CLI retains a previously observed port override; it cannot discover an arbitrary ephemeral web listener or claim it is ready.

Copy URL copies a working link with the current #token=... session fragment when the authenticated session has one. Treat that link like a password: anyone who receives it can use that session until it is revoked or expires. If there is no session token, the control copies only the address. A fresh phone browser also needs authentication: use the separate Copy sign-in link action from the session owner, then pair that browser. Pairing a device never grants it authority to pair another device. See private web sharing for authentication and revocation.

Turning sharing off removes only the still-matching hz root handler and any origin permission this plugin added. Other paths, listeners, services and manually configured origins remain. An existing conflicting root, public Funnel setting, foreground session or higher-priority origin policy is refused. A changed Serve revision or unknown write outcome stops without retry or rollback; inspect current status before taking another action. Matching an existing manual handler does not make it owned by hz, so enabling refuses to adopt it. OFF without an owned request is non-destructive. Completed removal relinquishes ownership before cleanup; repeating OFF cannot delete a later manual recreation. An uncertain create remains unverified and needs inspection before deletion.

tailscale.https_port chooses an alternate HTTPS port when another app owns the default. Disable a previous request before changing its external origin. A Tailscale version must provide the conditional Serve LocalAPI and one of the recognized local endpoint formats. Unsupported client installations report an actionable error; no sudo or remote endpoint fallback is attempted. The exact node DNS name must be eligible for HTTPS certificates in Tailscale's own configuration. Readiness verifies the local deployment; actual phone access still depends on Tailscale login, network policy and the remote browser's credential.

Development and release commands: repository guide.

Screenshots

Sharing On with Copy link and Open (fictional demo); the capture tool hides the share link as [authentication link hidden]

Sharing On with Copy link and Open (fictional demo); the capture tool hides the share link as [authentication link hidden]

Turn private sharing off explicitly — fictional local Tailscale demo

Turn private sharing off explicitly — fictional local Tailscale demo

Command line Then hz tailscale status --json: mapped to the web app port; the CLI cannot see the web listener, so it says apply-required — fictional demo

Then hz tailscale status --json: mapped to the web app port; the CLI cannot see the web listener, so it says apply-required — fictional demo

Then hz tailscale status --json after switching off: not mapped; the target shows the default port 8737 — fictional local Tailscale demo

Then hz tailscale status --json after switching off: not mapped; the target shows the default port 8737 — fictional local Tailscale demo

Open the screenshot gallery.

Metadata

Release files for heinzel-tailscale 0.9.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heinzel-tailscale 0.9.8
File Size Uploaded Provenance Actions
heinzel_tailscale-0.9.8.tar.gz 368.9 kB Without provenance Details for heinzel_tailscale-0.9.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for heinzel-tailscale 0.9.8
File Interpreter ABI Platform Actions
heinzel_tailscale-0.9.8-py3-none-any.whl Python 3 none any Details for heinzel_tailscale-0.9.8-py3-none-any.whl

Total release size: 392.0 kB

Release files / heinzel_tailscale-0.9.8.tar.gz

Download URL heinzel_tailscale-0.9.8.tar.gz
Size 368.9 kB
Tags Source
SHA-256 checksum
How to use checksums
91608f74d97503ff54e729b8fca56f4979fb94dedf0ef427050589f89ca718e1
BLAKE2b-256 checksum
How to use checksums
9cc20fef73e79bb3a72802c8f69b2511377994cc1c93d6bb294c3dd5a660472b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / heinzel_tailscale-0.9.8-py3-none-any.whl

Download URL heinzel_tailscale-0.9.8-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6248eb745f58c59fc34bec7c7d784ea8f2938ffc4158f5eb9410daf4d87c237e
BLAKE2b-256 checksum
How to use checksums
7b37df50e9c0d93c3638a45f072ff1f5d13db3d7e5f9359cb0306b70de5644e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for heinzel-tailscale 0.9.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page