Docs
FAQ
Privacy, secrets, builds, custom addresses, updating links and more.
Do I need an account or an API key?#
Not to publish. Upload with curl, the CLI or an MCP server and you get a link straight away. Each link comes with a secret token that lets you update or delete it.
Without an account, though, a link expires after 1 hour. To keep it, open the claim link that comes with it and sign in or create a free account; it then lasts 30 days from the upload. Run npx @anyshare/cli login once and links from your machine go straight into your account. See Limits and expiry.
What does an account store?#
Your email, a hash of your password (never the password itself) and the links you keep. There's no email verification and no password reset yet, so use a password you'll remember. Details are in the privacy policy.
Who can see what I share?#
Anyone who has the link. Addresses are random (sunny-otter-4821) unless you choose one, and pages aren't indexed by search engines, but a link is not a password. Don't share anything you wouldn't want forwarded.
Can my agent leak my secrets?#
The CLI and the local MCP server never upload .env files, keys (*.pem, id_rsa, id_ed25519), .npmrc, .netrc, .dev.vars or folders like .ssh and .aws, and they refuse if you name one directly. The anyshare skill tells agents the same rule for curl. Check what's in a folder before sharing it by other means.
Why does my React or Vite app show a blank page or source code?#
anyshare hosts static files and never runs your build. Build first, then share the output:
npm run build
npx @anyshare/cli ./distThe CLI warns you when a folder has a package.json but no index.html. A single .jsx or .tsx file is different: anyshare compiles and runs it live, like an artifact.
My single-page app shows 404 on refresh#
Publish with --spa (CLI) or spa: true (MCP), and unknown paths will serve your index.html.
How do I update a link?#
npx @anyshare/cli update sunny-otter-4821 ./distThe URL stays the same. On the machine that published the link, the CLI and the local MCP server know the token. Elsewhere, pass --token or use PUT /api/v1/sites/{slug} with Authorization: Bearer <token>.
I lost the token#
If the link is in your account, you don't need it: the account can update and delete its own links (Authorization: Bearer with your API key instead of the token). Otherwise the link can't be changed or deleted early, and it expires on its own (1 hour after upload if nobody kept it, 30 days if someone did). Publish the new version as a new link. On the machine where you published it, check ~/.config/anyshare/sites.json.
Can I pick the address?#
Yes: --slug q3-report (CLI), slug (API and MCP) gives https://q3-report.anyshare.site, if it's free. Slugs are 3–63 lowercase letters, digits and single hyphens. A few names, like www and api, are reserved.
Why is the content on a different domain?#
Hosted pages run on anyshare.site, separate from anyshare.ai, and each link is its own subdomain. That way a page you open can't read your cookies on anyshare or on other people's links.
Can I use my own domain, a password, or keep links forever?#
Not yet. A free account keeps links for 30 days. Longer-lived links, custom domains and password protection are planned.
Which file types work?#
All of them. HTML, Markdown, PDF, images, video, audio, CSV, JSON, Mermaid, notebooks, single-file React components, code, Office files and 3D models get viewers, and anything else gets a clean download page. See Quickstart.
Does it work with my agent?#
Anything that can run a shell command or connect to an MCP server: Claude Code, Codex, Cursor, Windsurf, Zed, Gemini CLI, claude.ai, ChatGPT and others. See MCP servers and the Agent Skill.
How do I use a local or self-hosted anyshare?#
Set ANYSHARE_API_URL:
ANYSHARE_API_URL=http://localhost:3400 npx @anyshare/cli ./dist