Introducing TSLink: Share Local Services by Name
A Go CLI for sharing an existing app or file on your private tailnet, then managing named services with CLI JSON and MCP.
TSLink starts with a practical task: open an app or file running on one machine from another device in your Tailscale tailnet. It registers each service as a separate tsnet node, gives it a name, and lets you retrieve its address later. Tailscale already offers private sharing through Serve; TSLink adds a registry for multiple named services and structured CLI/MCP handoffs.
First private share
With a web app already listening on localhost:3000:
tslink share 3000 --name preview --jsonThe result contains a live private URL or data.status: needs_login with data.auth_url. If approval is needed, open that URL, approve the new node, then ask TSLink for the live address by the data.name the share returned (preview here stands for it; a numeric suffix is added if that name was taken):
tslink url preview --waitOpen the returned URL on another device connected to the same tailnet and allowed by its policy. The same share path works for a local file or directory. Quick Start has the full first-run sequence.
Manage more than one service
Use tslink add to keep named services (it starts the background gateway when needed), and tslink list or tslink status --urls to inspect them. Proxy and file HTTP services can use --allow to filter requests by Tailscale identity; raw TCP relies on tailnet policy and the target's own authentication. Each node's network identity does not isolate processes on the host.
For current automation, CLI --json and the MCP control server expose structured operations. Earlier development builds also had a local JSON-over-stdio interface; that top-level command has since been retired. Hosting a third-party MCP server is a separate task: register that HTTP server as a proxy service.
TSLink remains a local tool under development. The roadmap distinguishes shipped behavior from experimental ideas.
More Posts
TSLink v0.3.1: people grants and open GuestGate
A compatibility fix for adding people across apps, including re-adding revoked people. No registry migration is required.
Share Your First Local Service with TSLink
Install TSLink, share an existing app or file, approve the node if prompted, and retrieve its private URL.
Private Local Services for Coding Agents
Share an existing app or generated file, hand back an exact URL or needs_login step, and choose the right TSLink CLI or MCP interface.