Docs
Quickstart
Turn any file or folder into a link in under a minute, with curl, the CLI or your AI agent.
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/sitesYou 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 ./distThe 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 ./distIt 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 loginSee 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 mcpCodex
codex mcp add anyshare -- npx -y @anyshare/cli mcpCursor: 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 upload | People see |
|---|---|
index.html, or a folder or .zip with one | Your website, served as written |
.md | A clean reading page with highlighted code, tables and diagrams |
.pdf | A full-screen document viewer |
.png, .jpg, .svg, .gif… | The image, centered and zoomable |
.mp4, .webm, .mov | A video player that streams instantly |
.jsx, .tsx | The React component, compiled and running live |
.csv, .json | A sortable table, or a collapsible tree |
.mmd | A rendered Mermaid diagram |
Several files, no index.html | A file list where each file opens in its viewer |
Next#
- HTTP API: every endpoint and field
- Claude Code, Codex, Cursor: setup per agent
- Limits and expiry: sizes, file counts and how long links last