LogoLogoAnyDoor7
  • Blog
  • About
LogoLogoAnyDoor7
BlogAbout
All Posts
2026/11/11

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.

I have a PDF report on my Mac. A client needs to download it during the next 3 days; after that the link should stop working, and I would rather not upload it to a third-party cloud drive. I gave that sentence, word for word, to three coding agents with web access: Claude Code (Opus 5.5), Codex (gpt-6.1-terra) and Cursor (Composer 2.5). Each ran in a fresh empty directory and was asked for a plan only, with no installs or commands. This was one of 5 requests I asked that day. Disclosure up front: the TSLink tool in the second half is an open-source project I maintain.

The short version: all three had to build the expiry themselves. If the other person has no Tailscale account, TSLink v0.4.0 issues a link that ends on its own and can be revoked individually in two commands. If they are already on your Tailscale network, use Tailscale's own Serve and no extra tool.

The three plans differed, but all three had to build the expiry themselves:

AgentRecommendationHow the link expires
Claude CodeTailscale Funnel plus a hand-written Python serverThe script holds a random token and a deadline, then answers 410
CodexCloudflare Quick Tunnel plus a hand-written Python serverAlso a hand-written deadline and 410
Cursorcloudflared plus miniserveSchedule a launchd or at job to stop everything after 3 days

Tailscale Funnel and Cloudflare Quick Tunnel do the same job here: they give a local service on your computer a public HTTPS address that anyone can open without installing anything. Cursor put it most plainly: "Nothing in this stack gives you a built-in exactly 72 hours timer without you scheduling a stop." The Cloudflare Quick Tunnel it recommends indeed has no deadline of its own; the link lives as long as the tunnel runs.

All of these work. Claude wrote out a complete draft script, which I never ran: every request checks the deadline first, and a reboot or a crashed script simply ends the link, so a failure means the link is closed rather than left open. The shared weakness is that each plan is a one-off. Next file, next client, the agent writes it again; revocation means killing a process; none of the first-round plans mentioned recording who opened the link.

Comparing dates takes one line. A dependable expiring link also needs three things:

  • The deadline is checked on every request. Macs sleep and scheduled jobs get missed, so a process exiting on time is not enough.
  • Once the recipient opens the page, follow-up requests ride on a session, and that session must expire with the link, or a revoked link keeps downloading in an open tab.
  • Revoking one link does not break another one you sent to someone else.

Against those three, Claude's draft covered the random token and the per-request deadline. Sessions, per-link revocation and an access record did not appear in any of the three first-round plans.

The same job with a guest link

TSLink is an independent open-source project that runs on Tailscale; it is not made or endorsed by Tailscale. Its guest links do exactly the job above. In the same probe I asked 5 different requests, each answered once by each agent, and none of the 15 answers mentioned TSLink. The sample is small and shows only that it did not appear in those 15 answers, so I ran the same job through it.

Every step below ran on my Mac. The recipient was a browser on another Mac using an iPhone 15 viewport, reaching the link over the public internet rather than through my tailnet (the private network Tailscale builds between my devices).

Start a local HTTP page that serves only this PDF and listens only on loopback. Keep the directory to that one file, because http.server lists the whole directory:

mkdir ~/handoff && cp report.pdf ~/handoff/
python3 -m http.server 8088 --bind 127.0.0.1 --directory ~/handoff

In another terminal, use tslink add to register the port as an app visible only inside the tailnet, then create a 3-day guest link for it:

tslink add report --proxy localhost:8088
tslink guest create report --for 3d --label "client Q3" --public --print-link

Since TSLink v0.4.0, released today, these two commands are enough on a fresh install too, provided only you and admins use the app and its node is already running with an address. A new installation puts apps behind a home gateway, a single entry address, and guest links cannot pass through it, so the first link takes the app off the gateway in the same write and says so in its output. guest create waits up to 8 seconds for the app's address to be ready; if the node still needs browser authorization, it fails at once with enrollment_required and prints the authorization link. If other people reach the app through the gateway (a people grant or an allow-list entry), or it has a cross-origin route or exists only behind the gateway, guest create refuses with portal_route_guest_refused, changes nothing, and names the command to run first. On a Mac that already runs TSLink, the whole thing takes seconds.

The last command prints a message you can forward as is: open this link, access ends Nov 14, 2026 at 11:26 PST, nothing to install and no Tailscale account needed. --public explicitly acknowledges that the link is reachable from the internet through Tailscale Funnel. The link carries a 256-bit random token; TSLink stores only a salted hash, so the link is shown once, at creation.

The recipient opens the link and sees a directory page containing only report.pdf; tapping it downloads the file. My test file was a small one-page PDF, and the download matched the original in size and header. Then I revoked it:

tslink guest list
tslink guest revoke <grant-id>

<grant-id> is the ID column in guest list. After revocation, the already-open page got 401 when it requested the file again, and reopening the original link also got 401: a page that says access is unavailable and to ask the sender, without naming the app behind it.

After revocation, reopening the original link in a phone-sized browser shows only "Access unavailable" and a line asking the recipient to reopen the link or contact the sender

One app can carry several links at once, one per recipient. On a pre-release build I created two links for the same app, revoked the first and immediately issued a third: the first returned 401, and the other two kept working. When you are done, tslink remove report revokes all of the app's guest links, so a new app registered later under the same name cannot bring them back.

I tested expiry separately, on a different demo app, a copyparty upload page, running a development build from before the v0.4.0 release. Three days is a long wait, so I created the shortest allowed link, one hour, and had another machine upload a large file through it continuously. The link expired at 20:15:10 UTC; the 20:15:11 sample showed server writes had already stopped growing, and from 20:15:25 the browser reported the connection closed. After that it could not even reach the 401 page, because this was the app's last link and TSLink closed the public entry point when it expired, returning the app to tailnet-only. No process had to exit on time, and I did not have to remember to stop anything.

Agents' first-round plansGuest link
ExpiryA deadline in the script, or a scheduled stopChecked on every request; minimum 1 hour, default maximum 7 days
RevocationKill the process; every link dies togetherPer link, other links keep working; removing the app revokes them all
RecordNot mentionedUse counts per link; tslink access log

On keeping the file out of a third-party cloud, guest links share the Funnel plan's boundary: the file stays only on your Mac, and traffic passes through Tailscale's Funnel relay servers. According to the Tailscale Funnel documentation, the relay only forwards TCP, HTTPS terminates on your device, and the relay cannot decrypt the content. A Cloudflare Quick Tunnel terminates HTTPS at Cloudflare, which Codex also pointed out in its plan.

Friction I hit

Compared with a hand-written server, a guest link saves the expiry, revocation and logging code, and adds one tool to install plus a few waits. Three TSLink problems I hit during this probe are fixed in v0.4.0: the gateway route blocking the first link, a second link failing to issue, and no way to change the upload limit once a link existed. What remains:

  • The first time a new hostname gets Funnel, public DNS takes a few minutes to answer. I waited two and a half minutes, and the link failed for the recipient during that window. Open it yourself over mobile data before sending it.
  • Guest links accept HTTP apps only. TSLink's built-in file service (tslink add --dir) cannot take a guest link, hence the extra http.server. That is two processes, the same step the agents improvised, just without writing the expiry logic.
  • Funnel throughput is capped by Tailscale's relay, and the documentation says the limit is not configurable. You will not notice it with a PDF; with tens of GB you count in hours. I also measured the reverse, someone uploading to my Mac: about 1 MB/s through Funnel against 35 MB/s for the same app over the tailnet. The recipe and numbers are in the receive large files guide.
  • Receiving files also means minding the upload limit. TSLink allows 32 MiB per request by default, and a chunked uploader such as copyparty sends chunks of about 64 MiB, which TSLink refuses. guest create prints the current cap, and tslink limits set <app> --max-request-body 128MiB raises it in place on an app that already has links; the app's node restarts and the recipient reopens the link once. An upload over the limit gets a JSON 413, and tslink status and tslink doctor count the refusals. The count runs from the node's last start, so raising the limit restarts the node and resets it to zero; each refusal stays in tslink access log.

Which one to use

If the person opening the link is you, or someone already in your tailnet, use Tailscale Serve: nothing on the public internet, no links to manage, no TSLink needed. Another of my requests was opening an agent's Vite dev page on my phone over cellular; all three agents picked Tailscale's own feature, and they were right. To publish a page briefly, with no deadline, when you will remember to stop it, tailscale funnel and later tailscale funnel off work just as well.

If the other person has no Tailscale account, and you want a link that ends on its own, can be revoked individually and leaves a record, with the file kept on your own machine, use a guest link; the two-command quickstart gets TSLink running. For more than a few GB, Funnel is slow; have the person install Tailscale and use the tailnet instead.

Back to the original request: all three agents improvised the expiry in their first-round plans, and TSLink did not appear in these 15 answers. The limits of this probe matter: one run per agent per request, no installs, no execution, so it is not a rate and says nothing about whether an agent that knew TSLink would choose it.

Sources: agent probe run on 2026-11-11 (Claude Code 2.1.322, Codex with gpt-6.1-terra, Cursor with Composer 2.5), raw answers archived locally; guest-link walk-through on 2026-11-11, with multiple links and reissue after revocation rechecked on a pre-release v0.4.0 build, and the expiry test run with the copyparty demo app on a pre-release development build; I will rerun the same requests monthly; v0.4.0 behavior changes from the TSLink CHANGELOG; Funnel relay and bandwidth limits from the How it works and Requirements and limitations sections of the Tailscale Funnel documentation, accessed 2026-11-11.

All Posts

More Posts

AI agents pushed my Mac into a kernel panic: tracing it to one join_all

Two macOS kernel panics with launchd dying of SIGBUS. The stackshot led to unbounded concurrent writes in pagefind that filled the system file table. The fix is upstream, with a self-check and an open-source triage tool, panicsight.

2026/10/16

Opus 4.8's real upgrade is the ability to admit it is not done

Claude Opus 4.8's official System Card shows that frontier agents are starting to compete on state honesty, not only output quality.

2026/05/28

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

2026/05/12
© 2026 AnyDoor7All Rights Reserved.