Back to blog
Guides

Publish HTML from Claude Code in one command with the Handoff skill (2026)

After installing the Handoff skill and setting your API token, ask Claude Code to upload the HTML file to a named slug.

Last updated:

H
Handoff
5 min read

After a one-time setup, ask Claude Code to use the Handoff skill to upload your HTML file with a named slug. The skill calls Handoff's upload API and returns a shareable URL; reuse that slug for later revisions. “One command” means one publishing request after setup, not an installation-free upload.

Set up once, then publish from the session

  1. Create a Handoff account and get your API token from Dashboard → Settings.
  2. Save the official Handoff skill as ~/.claude/skills/handoff/SKILL.md. Review the downloaded instructions before using them.
  3. Set HANDOFF_API_TOKEN in the environment used to launch Claude Code. Keep the token out of your HTML, repository and published output.
  4. Start Claude Code with that environment, then ask: “Use the Handoff skill to upload ./report.html with slug weekly-report. Return the share URL and version number.”
  5. Open the returned URL and check the report. For a revision, make the same request with the updated file and the same slug.

You can also invoke the installed skill directly in Claude Code:

/handoff Upload ./report.html with slug weekly-report and return the share URL and version.

The underlying upload command

Once your token is configured and report.html exists, this is one shell command, formatted across lines for readability:

curl --fail-with-body -sS https://handoff.host/api/upload/ \
  -H "Authorization: Bearer $HANDOFF_API_TOKEN" \
  -F "file=@./report.html" \
  -F "slug=weekly-report" \
  -F "note=Weekly report update"

A successful response includes url, slug, version and file_type. The url is a path such as /@yourname/weekly-report/; prepend https://handoff.host to build the full share link. Check for a successful response before reporting publication.

The slug must contain 3–50 lowercase letters, numbers or hyphens. Include local images as repeated assets form fields if needed; the skill documents this workflow. If an upload returns a plan-limit error, follow its upgrade message or reduce the file size instead of assuming publication succeeded.

Make the second upload predictable

Record the destination slug alongside your report-generation instructions. Ask the agent to finish and inspect the file before uploading. Do not infer “new version” from the filename: the same account and slug determine which hosted file receives the revision.

The setup path follows Claude Code's skill documentation. The upload fields and response above follow the live Handoff skill checked November 20, 2026.

Which tool fits this workflow?

Checked November 20, 2026. Links go to vendor documentation; plan details can change. Handoff publishes this comparison.

Tool Verified behavior Better fit when…
Handoff Same slug keeps the URL; earlier versions have links. Free or $5/month Pro. You share individual HTML, Markdown or image files.
GitHub Pages Repository hosting; public repositories supported on Free. Your team already reviews changes in Git.
Netlify Drop Drag-and-drop folder deployment; update the existing project. Your output includes multiple site files.
Tiiny Host Updating a project preserves its link. You want its upload-oriented site workflow.
display.dev Same-link updates; earlier versions on Solo and above. You need document collaboration and comments.
Claude Publish Native Claude Code artifacts update in place. You want publishing inside Claude.

“Claude Publish” here means Claude Code's native artifact publishing. On Team/Enterprise, public sharing requires owner enablement. See URL readability and external sharing. Tiiny Host also retains five versions on Tiny and above; version history is not unique to Handoff.

What does Handoff cost?

Handoff Free costs $0 and includes 5 files, pages up to 2 MB and images up to 5 MB, with a small Handoff bar. Pro costs $5/month and includes unlimited files subject to fair use, pages up to 10 MB, images up to 20 MB, password protection and no Handoff bar. Both plans include versioned URLs and the AI skill. Viewers do not need an account.

These details were checked against the Handoff homepage and llms.txt on November 20, 2026. See the pricing page for the plan comparison.

Frequently asked questions

Is there a Handoff CLI to install?

This workflow uses a Claude Code skill and the HTTP API through curl; it does not require a separate Handoff CLI.

How do I update without making a new link?

Upload the revised file with the same slug and account. Handoff adds a version and keeps the main share URL.

Related guides

Ready to share your work?

Upload a file, get a link. Free plan, no credit card needed.

Start sharing free