Back to Blog

Claim an anonymous upload and keep the link you already shared

An agent can share a file before you sign in. Use its private claim link to bring the upload into your InstaHost Console while your reviewers keep their original URL.

CLI 0.5.0Tested

You can claim an anonymous InstaHost upload after you’ve shared it. Open the private claim link from the upload receipt, sign in and confirm the claim. The file or site appears in your Console under the same URL your readers already have.

Say you ask a coding agent for a release checklist. It writes the file in a temporary workspace, and you send the team a link before the release meeting. Halfway through the meeting, someone asks you to take the checklist down as soon as the release goes out. You can claim it while it’s live and delete it from your browser when the team is done. The agent never needs a key to your account.

The CLI writes each receipt on one line. The examples use jq . for readability, with the private tokens redacted.

If you already have an upload receipt, look for two addresses. For an unlisted upload, url opens the content. That’s the link to paste alongside “Here’s the release checklist.” A teammate can open it on their phone without an account or access to the workspace that produced the file.

claim_url opens the InstaHost Console. Give the full address, including the part after the #, only to the person who should manage the upload. An eligible signed-in account can use it once. In ordinary terminal output it’s labeled Claim (private). Where to find the claim link

For a shared agent session, a useful request is “Post the checklist URL in the review thread. Save the receipt in a private file I can access, and tell me where to find it.” Retrieve it before the workspace closes. Pasting the whole receipt into the thread would also give everyone there the ability to claim or delete the checklist.

Add the upload to your Console

  1. Open your private claim link while the file or site is still live.
  2. Sign in with a verified email. Stay in the same browser tab through sign-in so the claim is there when you return.
  3. Check the account email on the confirmation screen and choose Claim artifact.
  4. Select View artifacts. You can now find the upload and delete it from that account.

In our November 29 browser check, we compared the URL and expiry shown in Artifacts with the values from the original upload. Both matched. Claiming changes who can manage the upload and keeps the original access mode. If the checklist had one hour to live when the agent created it, the clock still runs from that moment. Everyone who already opened the checklist can keep using their bookmark until deletion or expiry. How claims work

What an upload receipt looks like

To get a receipt of your own, start in an empty, private directory with Bash, Node.js 20 or later, curl and jq. Leave INSTAHOST_API_KEY unset. If you’ve linked this environment with npx -y @instahost/cli link, your uploads go to your account and their receipts have no delete or claim token. Run npx -y @instahost/cli whoami --json first; it should report anonymous. The example shares a one-line text file for an hour. The first line makes new files readable and writable only by your user, including the receipt saved alongside the example.

umask 077
echo 'Hello from InstaHost' > hello.txt
npx -y @instahost/cli share hello.txt --ttl 1h --json > share.json
See the redacted receipt for hello.txt
{
  "ok": true,
  "id": "xthu3xacmef62ardobog3rst3g",
  "type": "file",
  "access": "unlisted",
  "url": "https://files.instahost.cloud/xthu3xacmef62ardobog3rst3g/hello.txt",
  "expires_at": "2026-12-03T12:04:47Z",
  "delete_token": "ihd_[redacted]",
  "access_token": null,
  "access_url": null,
  "claim_url": "https://console.instahost.dev/claim/xthu3xacmef62ardobog3rst3g#ihc_[redacted]",
  "file_count": 1,
  "total_bytes": 21,
  "skipped": [],
  "warnings": []
}

Open the url from your receipt in a browser. You should see “Hello from InstaHost”. You can leave that tab open as the reader, then open your claim_url in a second tab and follow the claim steps as the publisher.

When you’re finished, you can delete the upload from Artifacts if you claimed it. For the December 3 example we cleaned up the unclaimed file directly with the receipt. Here’s the command and the check on the link afterwards.

Delete the example from the terminal and check the reader’s link
T=$(jq -r .delete_token share.json)
npx -y @instahost/cli delete "$(jq -r .id share.json)" --token "$T" --json
{
  "ok": true,
  "id": "xthu3xacmef62ardobog3rst3g",
  "status": "deleted",
  "deleted_at": "2026-12-03T11:04:49Z"
}
curl -sI "$(jq -r .url share.json)" | head -1
HTTP/2 410

FAQ

Can I claim a site my agent published?

Yes. A finished anonymous site upload comes with the same kind of claim link as a file. For a prototype already circulating among reviewers, this lets you take over cleanup without asking anyone to open a second copy.

What if the review needs another week?

Choose the lifetime before sharing. Anonymous uploads can last up to seven days. If the review will run longer, publish a fresh copy using an account key for up to 90 days and give reviewers the new URL. Claiming an existing upload keeps its original deadline. Upload lifetimes

Who owns a file uploaded with an account key?

It belongs to the account that created the key and appears in that account’s Artifacts list. For a recurring job where you want every upload in the same account from the start, an account key saves you a manual claim each time. Account keys

With CLI 0.5.0 or later, you can instead run npx -y @instahost/cli link once in the environment where your agent runs and approve it in your browser. Later uploads from that installation appear in your account without an API key, so there is nothing to claim. Link an installation

Check the original terminal output or the private receipt your agent saved. The reader’s URL opens only the content. If all you need to do is take the file down and you still have its delete token, you can use the cleanup command above without claiming it.

Give it a try

Share a disposable file with the @instahost/cli command above, then use the two links in your receipt to see the reader’s view and your own. To try the same handoff with a coding agent, install the InstaHost skill interactively in your terminal.

npx skills add instahost-dev/instahost

For an agent or script, select the agent explicitly and approve the install without prompts. This example selects Claude Code.

npx skills add instahost-dev/instahost -a claude-code -y