Vanish Upload Files
Upload files through Vanish and return temporary public URLs. Use this for documents, screenshots, generated reports, decks, spreadsheets, images, and any single-file artifact that needs to be shared outside the workspace. Use vanish-publish-site instead when the deliverable is a static folder or browser preview.
Workflow
- Confirm each target exists and is a file.
- If the task clearly asks for a public link, upload without asking unless the privacy gate applies.
- If filenames or visible content suggest sensitive material, stop and ask before uploading.
- Run the default JSON command:
vanish upload <files...> --json --no-clipboard
If vanish is not installed, use:
npx vanish-cli upload <files...> --json --no-clipboard
Return the URL, id, filename, size, expiry, and any delete command field from the JSON output.
If the agent may retry after a network failure, include a stable key:
vanish upload <files...> --idempotency-key <stable-key> --json --no-clipboard
Structured JSON errors include code, message, hint, retryable, status, limits, and upgradeRequired when available.
For multiple related files that should share one URL, use the bundle command:
vanish bundle report.pdf screenshot.png logs.txt --json --no-clipboard
Output Formats
Use these only when they match the destination:
vanish upload image.png --md --no-clipboard
vanish upload data.json --json --no-clipboard
vanish upload file1.pdf file2.png --json --no-clipboard
--md prints Markdown image syntax and is best for screenshots or images in issues, PRs, and docs.
The shorthand vanish <file> is valid for casual use, but prefer explicit vanish upload in agent workflows.
Retention
Use custom retention only when the user asks for a longer-lived link or the artifact must remain available beyond the default:
vanish upload report.pdf --days 90 --json --no-clipboard
--days requires Pro and supports 1-365 days. If unavailable, route to vanish-connect-upgrade.
Access Protection
Use only when the user asks for a restricted file:
printf '%s' "$PASSWORD" | vanish upload report.pdf --password-stdin --json --no-clipboard
vanish upload report.pdf --allow-email ana@acme.com --json --no-clipboard
Protection is applied atomically with the upload and requires login; --allow-email is Pro only. Change it later with vanish files access <id-or-url> --mode link|password|email. Protected files cannot be embedded in GitHub or Markdown previews.
Privacy Gate
Vanish creates public URLs. Ask before uploading if paths, names, or obvious content indicate:
- Secrets, credentials, keys,
.env, tokens, or internal config. - Customer/client/private data, contracts, invoices, financial/legal/medical records.
- Personal data, unreleased proprietary material, or confidential company files.
Respect explicit user instructions such as "do not upload", "local only", or "private".
Limits And Gotchas
- Anonymous: image uploads only, 300 MB max, 24h retention.
- Free login: all non-executable file types, 50 MB max file, 50 MB total storage, 48h retention.
- Pro: all non-executable file types, 1 GB max file, 10 GB total storage, 30-day default retention,
--daysup to 365. - Blocked upload extensions:
.exe,.bat,.cmd,.com,.msi,.scr,.sh,.bash,.ps1,.psm1. - Multiple uploads return multiple results. Copying to clipboard is disabled by default in this skill with
--no-clipboard.