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

Turn private sharing on; the switch reads On with Copy URL and Open — fictional local Tailscale demo

Turn private sharing on; the switch reads On with Copy URL and Open — fictional local Tailscale demo

Turn private sharing off explicitly — fictional local Tailscale demo

Turn private sharing off explicitly — fictional local Tailscale demo

Command line Inspect the saved request and mapping from the CLI — fictional local Tailscale demo

Inspect the saved request and mapping from the CLI — fictional local Tailscale demo

Inspect the request and mapping after switching off — fictional local Tailscale demo

Inspect the request and mapping after switching off — fictional local Tailscale demo

Open the screenshot gallery.

Metadata

Release files for heinzel-tailscale 0.9.4

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.4
File Size Uploaded Provenance Actions
heinzel_tailscale-0.9.4.tar.gz 371.5 kB Without provenance Details for heinzel_tailscale-0.9.4.tar.gz

Built distribution (wheel)

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

Total release size: 394.4 kB

Release files / heinzel_tailscale-0.9.4.tar.gz

Download URL heinzel_tailscale-0.9.4.tar.gz
Size 371.5 kB
Tags Source
SHA-256 checksum
How to use checksums
66609cf143d640fd543f81e07d358eade9a59fd466c9e0a6ba8dc3d4dd99425d
BLAKE2b-256 checksum
How to use checksums
6419fb671b1d7692aa6b5b1aa152b394a46dc27cd50a64f81b5267084088fa32
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.4-py3-none-any.whl

Download URL heinzel_tailscale-0.9.4-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e23f0a8e33a30ea212a1be2e79032e8a444c8dfae3c4ed8e3667105313aefd58
BLAKE2b-256 checksum
How to use checksums
691a963f84c005f99c31b66cd1802573468b7062bef12e282bbf07ed2b2ab7d9
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.4

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