Hostlo

v0.1.1
ai.hostlo/hostlo Checked 6 hours ago Published 3 days ago

Publish and edit static websites on a free subdomain, just by chatting.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

add_domain

Connect a domain the person already owns to one of their sites (Pro plan). Returns the DNS records they must create at their domain provider. The domain starts serving once those records are in place and the certificate is issued, usually within minutes; use check_domain to follow it.

ParameterTypeDescription
domain *stringThe domain, e.g. "www.example.com". International names in punycode (xn--…).
site *stringThe site that should answer on this domain.

add_editor

Invite someone to edit a site you own: they can change its files, roll back and see its statistics, while you keep ownership (deleting it, domains, GitHub, editors). They get an email and become an editor when they accept.

ParameterTypeDescription
email *string
site *string

billing

Get a link to subscribe to Hostlo Pro, or, for an account that already pays, to the billing page where the card, the invoices and cancelling live. Give the link to the person; nothing is charged until they finish on Stripe. Pro costs $7 a month or $70 a year (a founding price of $50 a year applies while the first 100 places last) and adds custom domains, 5 sites, 1 GB per site, 90 days of visitor statistics and no badge. The first 14 days are refundable in full.

ParameterTypeDescription
billedHow the Pro plan should be billed: "monthly" ($7) or "yearly" ($70, or $50 while founding places last). Ignored for an account that already subscribes, which gets its billing page instead.

check_domain

Ask the certificate provider where a pending custom domain stands, and start serving it if it is ready.

ParameterTypeDescription
domain *stringThe domain, exactly as it was connected.

confirm_upload

Publish the file the person sent through an upload_link. Reports the file name and size, and where it is live. Call it after they say they have sent it.

ParameterTypeDescription
upload_id *stringThe upload id that upload_link returned.

connect_repo

Publish a site from a GitHub repository and republish it on every push. Works with private repositories. The first time, it returns a link the person opens to let Hostlo read their repositories; after they have, call it again. No builds are run: the folder is published as it is (found automatically, or given).

ParameterTypeDescription
repo *stringThe GitHub repository, as owner/name (for example maria/bakery) or its github.com URL.
site *stringThe site to publish.
branchstring | nullThe branch to follow. Leave out for the repository's default branch.
folderstring | nullThe folder holding the site, such as dist or public. Leave out to have it found; "/" means the repository root, which makes every web file in the root public.

create_site

Create a new site on a free subdomain. It stays empty until you publish files with write_files or start_upload. Before creating one, check what it is for against what Hostlo does not host (in the server instructions and /llms.txt), and tell the person first if it is not allowed.

ParameterTypeDescription
namestring | nullDesired subdomain: 3-63 lowercase letters, digits and hyphens. Omit for a random name.

delete_files

Delete files from a site and publish the result.

ParameterTypeDescription
paths *array
site *string
messagestring | null

delete_site

Permanently delete a site, its files and its whole deploy history. The name becomes available to others.

ParameterTypeDescription
confirm *stringType the site name again to confirm. Deletion removes the site and all its deploys.
site *stringSite name to delete.

disconnect_repo

Stop publishing a site from its GitHub repository. The site stays online with its current files, and can be edited here again. Pass the site name again in confirm.

ParameterTypeDescription
confirm *stringRepeat the site name to confirm.
site *stringThe site that should stop following its repository.

form_messages

Read the messages people have sent through a site's contact form(s), newest first, shown with the form's own field labels. This is the inbox: use it when the person asks whether anyone has written in.

ParameterTypeDescription
site *string
formstring | nullOnly this form's messages. Leave out for all the site's forms.
limitinteger | nullHow many recent messages to show (default 20, max 200).

import_site

Copy an existing website (a WordPress site, a static site, or the Wayback Machine's saved copy of one) into a Hostlo site: its pages, styles, scripts, images and fonts, with links rewritten to work on Hostlo. Only import a site the person owns or has the right to copy, and ask them if that is not clear. A small site finishes in the reply; a big one carries on in the background and import_status reports on it. Afterwards tell them what the reply says could not be carried over (forms, logins, search, shop checkouts need the old server).

ParameterTypeDescription
site *stringThe Hostlo site to import into (create it first with create_site). Imported files are added to it, replacing files with the same path; list_deploys and rollback undo the import.
url *stringThe address of the site to copy, for example "example.com" or "https://www.example.com/", or a Wayback Machine link (web.archive.org/web/...).
from_archiveboolean | nullCopy the newest version the Wayback Machine saved instead of the live site: for a site whose hosting has expired. Default false.

import_status

How an import started with import_site is going, or its full report once finished: what was copied, what was left out and why.

ParameterTypeDescription
site *stringThe site an import was started into.

list_deploys

Show a site's recent deploys, newest first, marking the live one.

ParameterTypeDescription
site *string
limitinteger | nullHow many recent deploys to show (default 20, max 100).

list_domains

List the custom domains on this account, their status and what is still missing.

ParameterTypeDescription
sitestring | nullOnly this site's domains. Leave out for all of them.

list_files

List the files of a site's live deploy with their sizes.

ParameterTypeDescription
site *string
prefixstring | nullOnly list paths starting with this prefix, e.g. "blog/".

list_forms

List the contact forms on a site (or all your sites): their fields, where submissions go, and how many messages each has had.

ParameterTypeDescription
sitestring | nullOnly this site's forms. Leave out for all of them.

list_sites

List your sites with their public URLs, file counts and sizes.

patch_file

Edit a text file by exact search and replace, then publish. Each old_text must match exactly once.

ParameterTypeDescription
edits *arrayEdits applied in order.
path *string
site *string
messagestring | null

preferences

Read or change the person's Hostlo preferences. Today that is the language of Hostlo's emails and web pages: English (en) or Khmer (km). Use it when they ask to read Hostlo in Khmer or English. Your own replies stay in whatever language you are speaking with them.

ParameterTypeDescription
languagestring | nullThe language for Hostlo's emails and pages: "en" (English) or "km" (Khmer). Leave out to only read the current preferences.

read_file

Read a text file from a site's live deploy.

ParameterTypeDescription
path *stringFile path inside the site, e.g. "index.html" or "css/style.css".
site *string

remove_domain

Disconnect a custom domain. The site stays online at its Hostlo address. Pass the domain again in confirm.

ParameterTypeDescription
confirm *stringRepeat the domain to confirm.
domain *stringThe domain to disconnect.

remove_editor

Remove an editor from a site you own, or withdraw an invitation or handover offer sent to that address. An editor can also remove themselves (leave a site).

ParameterTypeDescription
email *string
site *string

remove_form

Remove a contact form from a site. The stored messages are deleted with it. The HTML form on the page stops working; remove it from the page too.

ParameterTypeDescription
name *stringThe form name to remove.
site *string

rename_site

Rename a site you own. Its free address changes to the new name; the old address keeps working by redirecting to the new one, and the old name stays reserved for this site, so it can be switched back. Pages, history, statistics, custom domains, forms, editors and GitHub publishing all carry over. Confirm the new name with the person first.

ParameterTypeDescription
new_name *stringThe new name: 3 to 63 lowercase letters, digits and single hyphens (no dots). The site's free address becomes <new_name>.<sites domain>.
site *string

repo_status

Show which sites are published from GitHub repositories: repository, branch, folder, the live commit, and why the last push failed if it did.

ParameterTypeDescription
sitestring | nullOnly this site. Leave out for all of them.

rollback

Make an earlier deploy live again. Nothing is deleted; you can roll forward the same way.

ParameterTypeDescription
deploy_id *stringA deploy_id from list_deploys.
site *string

set_form

Add or update a contact form on a site. Describe the fields the visitor should fill (a name, an email, a message, a dropdown, and so on) and this stores them and returns an HTML form to drop into the page with write_files; the form posts to the site's own address, no third-party form service. Submissions are emailed to the owner (pressing Reply answers the visitor), kept for the chat inbox (form_messages), and, on the Pro plan, posted to a webhook (a Slack or Discord webhook, a Zapier catch hook, or any https URL). Hostlo forms are not for passwords or card numbers and refuse such fields. Use…

ParameterTypeDescription
fields *arrayThe fields the visitor fills, in the order they should appear.
site *stringThe site the form belongs to.
email_tostring | nullWhere submissions are emailed. Leave out to use the account's own address (the usual choice).
namestring | nullA short name for the form, used in its address `/_hostlo/forms/<name>`: lowercase letters, digits and underscores, e.g. "contact" or "call_back". Default "contact".
webhook_urlstring | nullA webhook URL to also POST each submission to (Pro plan): a Slack or Discord incoming webhook, a Zapier catch hook, or any https endpoint. Leave out for email only.

set_primary_domain

Make one of a site's connected domains its main address. The site's other domains redirect visitors and search engines to this one, so only one copy is indexed. The domain must already be live (check_domain shows when it is). Use this when a site has more than one domain and the person says which should be the main one.

ParameterTypeDescription
domain *stringThe domain, exactly as it was connected.

site_members

Who owns a site, who edits it, and which invitations or handover offers are waiting for an answer.

ParameterTypeDescription
site *string

site_stats

Visitor statistics for a site: page views and unique visitors per day, top pages, referring sites and pages, visitors by country and which location served them. Counted without cookies or tracking scripts; recent views can take about a minute to appear.

ParameterTypeDescription
site *string
daysinteger | nullHow many days back, including today (default 7, max 90).

start_upload

Prepare an upload of a local folder (for example a build output like dist/). Returns a one-time token and a shell command to run; only changed files are transferred. Valid for 60 minutes.

ParameterTypeDescription
site *string
messagestring | null
mode"replace" (default): the folder becomes the whole site. "merge": add/overwrite only.

transfer_site

Hand a site over to someone else, for example a site made for a client. They get an email with a link; when they accept, the site is theirs (pages, history, statistics, custom domains) and counts against their plan. Ask whether the person wants to stay on as an editor (keep_me_as_editor), as an agency usually does. Nothing changes until the other person accepts.

ParameterTypeDescription
site *string
to_email *stringThe email address of the person who takes the site over.
keep_me_as_editorboolean | nullStay on as an editor after the handover (an agency looking after a client's site). Ask the person; default false, which means they lose access once it is accepted.

whoami

Show the signed-in account, its plan limits and usage, and the edge locations serving sites.

write_files

Create, replace and delete files in one deploy that goes live immediately. Use utf8 for text and base64 for small binary files. For large or many files use start_upload instead. Allowed: HTML, CSS, JavaScript, JSON, text, XML, SVG, web fonts, images (PNG, JPEG, GIF, WebP, AVIF, ICO) and PDF; binary files must really be what their extension says.

ParameterTypeDescription
site *string
deletearrayPaths to remove in the same deploy.
filesarrayFiles to create or replace.
messagestring | nullShort description of the change, kept in the deploy history.