Limited-time offerPro & Max plans — 20% off

Save 20% on monthly and yearly billing.

View plans

Developer documentation

Publish the static page your workflow already built.

Send one HTML document or a static project through the CLI, API, or agent Skill. Host HTML File returns a browser preview link for review and QA.

Terminal
# Sign in once
npx host-html-file login

# Publish a static output folder
npx host-html-file publish ./dist
Keep index.html and its relative assets together.

Choose a publishing path

Use the interface that already has your files.

Publish HTML from an API

Choose the single-document or multi-file endpoint, authenticate with a Bearer token, and return the preview URL to your workflow.

Read the API guide

Install the CLI or agent Skill

Use the host-html-file package to publish from a terminal or let Codex, Claude, and Cursor publish the static files they created.

Open the CLI documentation

Understand the MCP publishing workflow

See how the current Skill, CLI, and API paths fit agent workflows, and when to use a hosted MCP service instead.

Read the MCP publishing overview

API reference

Match the endpoint to the files.

POST /api/skill/publish
One self-contained HTML document.
POST /api/skill/publish-files
A static project with HTML, CSS, scripts, and other supported assets. Include index.html.

Authenticate with a Bearer access token. Keep it in a server or tool runtime secret; never put it in browser-side HTML. The API guide documents request fields, response values, file limits, and errors.

Read the full API reference

Need the browser workflow?

Upload one file or a ZIP without setting up the CLI or API.

Guest publishing guide