Give every app an agent starts its own private address, and let access expire on its own
TSLink gives each app on your machine its own private HTTPS address on your Tailscale network. Access you hand to a person or a browser link ends by itself, and an agent can do the same through the CLI or MCP.
An agent starts a dev server on localhost:5173. You want to open it on your phone, maybe let one person look at it for a few days, and not have it still reachable next month. TSLink gives each app on your machine its own private address on your Tailscale network, and the access you hand out ends by itself. The two-command quickstart gets you a first address in a few minutes. I maintain TSLink as an independent project; it runs on Tailscale and is not made or endorsed by Tailscale.
One address per app, access with an end date
Take that dev server on port 5173:
tslink share 5173 --name preview
share prints a private HTTPS address, typically preview.<your-tailnet>.ts.net, that your own devices on the tailnet can open. The first time, it prints a Tailscale sign-in link for the new node instead, and some tailnets also need the device approved. Once you have opened the link and approved the device if asked, tslink url preview --wait prints the app address.
To let one person already on your tailnet use it for three days:
tslink people add alice@example.com --apps preview --for 3d
The first person you add switches preview to people-only access, and that includes you: grant your own login too if you still want to open it from your phone. TSLink checks each caller's Tailscale login on every request, and Alice's grant stops working after three days.
For someone without Tailscale, a browser link reaches the app through Tailscale Funnel. That needs Funnel permission on your tailnet, which TSLink cannot set up by itself on the default credential-free install; the guest links guide covers the setup:
tslink guest create preview --for 3d --public --print-link
This prints a browser link that expires in three days. tslink doctor warns when it cannot verify that Funnel is serving the app, so check it before you send the link. Guest links work only for HTTP apps, and anyone holding the link can forward it. Add --pin to require a PIN that you send separately.
The reason for one node per app: TSLink runs a separate Tailscale node for each app from a single background process, and each node forwards to that one app only. Sharing the preview gives access to the preview and to nothing else on the machine.
Built for agents to drive
I run many coding agents in parallel on my Mac. Any of them can start a server on localhost, and that server is out of reach from a phone until something gives it an address. With TSLink the agent can do the whole loop itself: share its dev server, report the exact URL TSLink returns, and remove the share when the work is done. Management commands take --json and return versioned results, so the agent parses a contract instead of display text. tslink mcp offers the same operations to MCP clients:
{"mcpServers":{"tslink":{"command":"tslink","args":["mcp"]}}}
Scoped roles (viewer, app-operator, people-manager) keep an agent to the apps you name, and tslink mcp-audit shows what it changed. The roles limit TSLink's tools; the agent's own shell is outside their reach. One step stays with a person: on the default setup without stored credentials, each new app node needs its first sign-in in a browser.
Try it, and when you do not need it
On macOS:
brew install --cask anydoor7/tap/tslink
tslink share 5173 --name preview
Windows installs through Scoop, and Linux .deb and .rpm packages are on the releases page. The examples use v0.2.0. You need a Tailscale account with MagicDNS and HTTPS turned on.
If you only open one app on your own devices, tailscale serve is enough. TSLink pays off once you have several apps, other people, or deadlines; the comparison with Serve, ngrok and Cloudflare says where each one fits. Two limits change the decision:
- Plain
tslink shareadds no per-person restriction: anyone your tailnet policy lets reach the node can open it. The first people grant switches that app to people-only access. - Deadlines live on people grants and guest links. A private share by itself has no expiry and stays until you remove it.
Source, issues and docs are at github.com/anydoor7/tslink, under Apache 2.0.
More Posts
Verification Is Free Now: The Real Phase Change of the AI Era
How YC CEO Garry Tan's Complexity Ratchet reveals that 90% test coverage went from heroic effort to Tuesday
Beyond Important and Urgent: The Missing Dimension of Prioritization in the Agent Era
Classic Important-vs-Urgent prioritization assumed a finite game of human labor. With an orchestrator Agent handling parallel dispatch, the real bottleneck shifts to human attention.
I asked three agents to send a link that expires in 3 days. All three had to improvise the expiry
The same request to Claude Code, Codex and Cursor: let a client download a PDF for 3 days, then the link stops working, and the file never goes to a third-party cloud drive. All three improvised the expiry. Here is the probe, the same job done with a TSLink guest link, and when Tailscale's own features are enough.

