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 guideLimited-time offerPro & Max plans — 20% offSave 20% on monthly and yearly billing.
Save 20% on monthly and yearly billing.
Developer documentation
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.
# Sign in once
npx host-html-file login
# Publish a static output folder
npx host-html-file publish ./distindex.html and its relative assets together.Choose a publishing path
Choose the single-document or multi-file endpoint, authenticate with a Bearer token, and return the preview URL to your workflow.
Read the API guideUse 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 documentationSee how the current Skill, CLI, and API paths fit agent workflows, and when to use a hosted MCP service instead.
Read the MCP publishing overviewAPI reference
POST /api/skill/publishPOST /api/skill/publish-filesindex.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 referenceUpload one file or a ZIP without setting up the CLI or API.