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 replay a switched-off request. One exception keeps sharing working when hz restarts on another port: the authenticated web app's first status read moves hz's own mapping to its actual port, once, as Try again or switching off and on does. It never replaces a handler hz did not set.

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. Turning sharing on in the authenticated web app can adopt the exact private Serve route already pointing to its active listener, including after a reinstall. Heinzel verifies that route again before taking ownership and leaves the Serve configuration intact. 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

An existing private route to this Heinzel is ready to adopt — fictional local Tailscale demo

An existing private route to this Heinzel is ready to adopt — fictional local Tailscale demo

One switch adopts the existing private route, then shows Copy link and Open (fictional demo); the capture tool hides the share link as [authentication link hidden]

One switch adopts the existing private route, then shows 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.10

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.10
File Size Uploaded Provenance Actions
heinzel_tailscale-0.9.10.tar.gz 386.4 kB Without provenance Details for heinzel_tailscale-0.9.10.tar.gz

Built distribution (wheel)

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

Total release size: 411.2 kB

Release files / heinzel_tailscale-0.9.10.tar.gz

Download URL heinzel_tailscale-0.9.10.tar.gz
Size 386.4 kB
Tags Source
SHA-256 checksum
How to use checksums
08b1ce1e76786a341eb9e665afc91e4fe2d8c646769b91c44ded271efe7e56c2
BLAKE2b-256 checksum
How to use checksums
8c84124ba3a0fc1c59c7e42bf8224d1ac9e642f55272318f86ebb87bcd6a0eda
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.10-py3-none-any.whl

Download URL heinzel_tailscale-0.9.10-py3-none-any.whl
Size 24.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
698b3f4ebb2ba10ea50ae190e42e8242d0777ec004bbc7e2c77c83239867611c
BLAKE2b-256 checksum
How to use checksums
5f21fe9807490594d5e32e7b179f741153eb39c4e2d3c983439ef09a8f0be1e5
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.10

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