Docs

Quickstart

Turn any file or folder into a link in under a minute, with curl, the CLI or your AI agent.

View as Markdown

anyshare turns any file into a link. HTML runs as a website. PDFs, Markdown, images, video, CSV, JSON, Mermaid diagrams and React components get a page that shows them properly. You don't need an account or an API key to publish. A link published without an account lasts 1 hour; keep it with a free account and it lasts 30 days.

1. Share a file with curl#

curl -F file=@report.html https://anyshare.ai/api/v1/sites

You get JSON back:

{
  "url": "https://sunny-otter-4821.anyshare.site",
  "slug": "sunny-otter-4821",
  "token": "as_tok_…",
  "expiresAt": "2026-11-25T11:00:00.000Z",
  "claimed": false,
  "claimUrl": "https://anyshare.ai/claim/sunny-otter-4821#token=as_tok_…"
}

Open url in a browser and send it to anyone. Keep token private: it lets you update or delete the link later. Add -H "Accept: text/plain" if you only want the URL (the claim link then comes in the X-Anyshare-Claim-Url header).

The link expires in 1 hour. To keep it, open claimUrl and sign in or create a free account: it then lasts 30 days from the upload.

2. Share a folder with the CLI#

npx @anyshare/cli ./dist

The CLI zips the folder in memory, uploads it and prints the link. A folder with an index.html becomes a website. It skips node_modules, .git and secret files like .env, and it saves the update token on your machine so you can change the link later:

npx @anyshare/cli update sunny-otter-4821 ./dist

It prints the claim link under the URL. Sign in once and every link you publish goes straight into your account, with no claim step:

npx @anyshare/cli login

See CLI for every option.

3. Let your agent do it#

Give your coding agent the anyshare MCP server, then ask it to "share this with anyshare".

Claude Code

claude mcp add --scope user anyshare -- npx -y @anyshare/cli mcp

Codex

codex mcp add anyshare -- npx -y @anyshare/cli mcp

Cursor: add this to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "anyshare": { "command": "npx", "args": ["-y", "@anyshare/cli", "mcp"] }
  }
}

This local server reads files from your disk and uploads them directly, so a whole dist/ folder goes up in one step without passing through the model. If you can't run Node, use the remote server at https://anyshare.ai/mcp instead. See MCP servers.

The agent shows you the claim link next to each URL. Run npx -y @anyshare/cli login once on the machine and links it publishes go straight into your account.

What can I share?#

You uploadPeople see
index.html, or a folder or .zip with oneYour website, served as written
.mdA clean reading page with highlighted code, tables and diagrams
.pdfA full-screen document viewer
.png, .jpg, .svg, .gif…The image, centered and zoomable
.mp4, .webm, .movA video player that streams instantly
.jsx, .tsxThe React component, compiled and running live
.csv, .jsonA sortable table, or a collapsible tree
.mmdA rendered Mermaid diagram
Several files, no index.htmlA file list where each file opens in its viewer

Next#