Back to Blog

What is InstaHost? HTTPS links for files and static sites, and what it won't do

InstaHost turns a file or a static site into an HTTPS link with an access mode and a lifetime. Tested: what visitors receive, and what InstaHost is not for.

CLI 0.5.0Tested

InstaHost is a hosting service built for AI agents and the people who work with them: you share one file or publish a static site, and you get back an HTTPS link with an access mode and a lifetime. Links that last up to 7 days need no account or login. You create them with the CLI, a curl and jq script or the HTTP API, or let an agent do it with the InstaHost skill.

The walkthrough shares a file, publishes a site, and deletes both. Start in an empty directory with Bash, Node.js 20 or later, curl and jq. Use the same shell throughout and leave INSTAHOST_API_KEY unset for anonymous access. 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. Keep the two JSON receipts private. Their delete and claim tokens are redacted below. The CLI prints each document on one line. The examples use jq . for readability.

What InstaHost is

An artifact is either one file or a site: a directory with an index.html at its root. Each artifact gets:

  • a URL containing a hard-to-guess 26-character id
  • an access mode of unlisted (the default, marked noindex), public (search engines may index it), or private (single files only, readable with an access token)
  • a lifetime of 1 day by default, adjustable from 1 minute to 7 days for anonymous links and fixed at creation
  • a delete token returned with the create result, unless the upload came from a linked installation

The CLI, @instahost/cli, needs Node.js 20 or later and runs through npx without an install. Without Node.js, the curl and jq quick start uses two bash scripts. The CLI and the scripts both call the HTTP API. The skill tells Claude Code, Codex, Cursor and other agents when to share or publish, which lifetime and access mode to pick, and what never to upload.

What a share URL points to

Make a small file and share it for one hour:

umask 077
echo 'Hello from InstaHost' > README.txt
npx -y @instahost/cli share README.txt --ttl 1h --json > share.json

With --json, the CLI prints exactly one JSON document on stdout. share.json held one line, shown here formatted:

{
  "ok": true,
  "id": "kkbqe2qtdmsdjov5ujog7lvlso",
  "type": "file",
  "access": "unlisted",
  "url": "https://files.instahost.cloud/kkbqe2qtdmsdjov5ujog7lvlso/README.txt",
  "expires_at": "2026-12-03T12:04:36Z",
  "delete_token": "ihd_[redacted]",
  "access_token": null,
  "access_url": null,
  "claim_url": "https://console.instahost.dev/claim/kkbqe2qtdmsdjov5ujog7lvlso#ihc_[redacted]",
  "file_count": 1,
  "total_bytes": 21,
  "skipped": [],
  "warnings": []
}

url is the link to give readers. Keep delete_token to remove the file early. The service stores its hash, so looking up the artifact later won't recover the token. To add this upload to your Console account, open the private claim_url before expiry, sign in with a verified email and select Claim artifact in the same tab. The link works once.

Open the URL with an independent client. This command and the ones below read the URL and id from the JSON files, so they work on your own run:

curl -sI "$(jq -r .url share.json)" | grep -iE '^(HTTP|content-type|content-disposition|content-security-policy|cache-control|x-robots-tag)'
HTTP/2 200
content-type: text/plain; charset=utf-8
cache-control: private, no-cache, no-transform
content-disposition: inline; filename="README.txt"; filename*=UTF-8''README.txt
content-security-policy: sandbox; default-src 'none'; img-src 'self' data:; media-src 'self'; style-src 'unsafe-inline'
x-robots-tag: noindex, nofollow

Files come from files.instahost.cloud. The files host serves recognized plain text, image, audio, video, PDF, JSON, CSV and Markdown types inline. It sends uploads such as HTML as attachments. The sandbox policy keeps scripts in HTML or SVG from running while served by InstaHost. The noindex header asks search engines to leave the unlisted file out of their results. See the content-serving rules.

What a site URL points to

A page that should render in the browser has to be published as a site:

mkdir -p hello-site && echo '<h1>Hello from InstaHost</h1>' > hello-site/index.html
npx -y @instahost/cli publish hello-site --ttl 1h --json > publish.json
{
  "ok": true,
  "id": "uqsyllhvtgswrnku2zzltrxvew",
  "type": "site",
  "access": "unlisted",
  "url": "https://uqsyllhvtgswrnku2zzltrxvew.instahost.cloud/",
  "expires_at": "2026-12-03T12:04:38Z",
  "delete_token": "ihd_[redacted]",
  "access_token": null,
  "access_url": null,
  "claim_url": "https://console.instahost.dev/claim/uqsyllhvtgswrnku2zzltrxvew#ihc_[redacted]",
  "file_count": 1,
  "total_bytes": 30,
  "skipped": [],
  "warnings": []
}

The site gets its own host, named after its id. The same header check:

curl -sI "$(jq -r .url publish.json)" | grep -iE '^(HTTP|content-type|content-disposition|content-security-policy|cache-control|x-robots-tag)'
HTTP/2 200
content-type: text/html; charset=utf-8
cache-control: private, no-cache, no-transform
x-robots-tag: noindex, nofollow

The site serves HTML with neither an attachment header nor a sandbox policy, so the page renders and can run browser scripts. Keep asset URLs relative so the site can also work under a path. In Vite, set base: "./". On both hosts, no-transform keeps the edge from changing your bytes.

T1=$(jq -r .delete_token share.json)
npx -y @instahost/cli delete "$(jq -r .id share.json)" --token "$T1" --json
{
  "ok": true,
  "id": "kkbqe2qtdmsdjov5ujog7lvlso",
  "status": "deleted",
  "deleted_at": "2026-12-03T11:04:39Z"
}

delete also takes a URL:

T2=$(jq -r .delete_token publish.json)
npx -y @instahost/cli delete "$(jq -r .url publish.json)" --token "$T2" --json
{
  "ok": true,
  "id": "uqsyllhvtgswrnku2zzltrxvew",
  "status": "deleted",
  "deleted_at": "2026-12-03T11:04:40Z"
}

Right after that, neither URL served content:

curl -sI "$(jq -r .url share.json)" | head -1
curl -sI "$(jq -r .url publish.json)" | head -1
HTTP/2 410
HTTP/2 410

InstaHost bypasses its edge cache, so the next request sees the deletion. The service keeps returning 410 during the seven-day tombstone period. You can remove the local JSON files after cleanup.

What InstaHost is not

Not an app server or a backend. Sites serve static files. They do not support server-side code, SPA fallback, clean URLs, service workers, or custom 404 pages, redirects or headers.

Permanent hosting requires an operator-issued key. Anonymous uploads last up to 7 days. Sign in to the Console with a verified email and create an account key for uploads lasting up to 90 days. Only an operator-issued key with persistence enabled can create an artifact with --ttl never. See the CLI lifetime option.

Not unlimited. Without a key, each client can create 50 artifacts, 2,000 files and 1 GiB per UTC day, and make up to 30 API requests a minute per IP. A file can be up to 100 MiB, an artifact 250 MiB. All anonymous traffic together also has a daily cap. The live values:

curl -s https://instahost.dev/v1/limits | jq '{anonymous_max_ttl_seconds: .anonymous.max_ttl_seconds, anonymous_daily: .anonymous.daily, default_ttl_seconds, sites}'
{
  "anonymous_max_ttl_seconds": 604800,
  "anonymous_daily": {
    "artifacts": 50,
    "files": 2000,
    "bytes": 1073741824
  },
  "default_ttl_seconds": 86400,
  "sites": {
    "url_mode": "subdomain",
    "private_supported": false
  }
}

Limits has the full table.

FAQ

Anyone with the link can open it. For token-gated access, share a single file with --access private.

Yes. Anonymous links expire after 1 day by default and can last up to 7 days. Set --ttl when you create the link, for example to 30m, 24h or 7d. Claiming an upload keeps its original expiry. An expired URL returns 410 while its tombstone exists and 404 after removal.

Yes. Use delete with the artifact's delete token, or the API key or linked installation that created it. The next request sees the deletion. If you lose an anonymous upload’s delete token but still have its unused claim link, claim it before expiry and delete it from the Console. If you already claimed it, you can delete it there directly.

Does hosting run backend code?

No. A site's JavaScript runs in the visitor's browser; nothing runs on the server.

Do I need an account?

Not for links that last up to 7 days, which work within the anonymous daily caps. Sign in to the Console with Google, GitHub or an email code to create account keys for lifetimes up to 90 days and to manage your uploads. Account keys have their own quotas, and not every one is higher: an account gets 600 files a day, an anonymous client 2,000.

Can I share an HTML file as a page?

Not with share: an HTML file is served as a download. Put it in a directory as index.html and publish the directory.

Try it

Use the share or publish command above with @instahost/cli, or install the InstaHost skill to let a coding agent run it for you.

To install the InstaHost skill interactively, in a terminal:

npx skills add instahost-dev/instahost

For agents and scripts, where -a names the agent:

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