# shipsite.sh > Static site hosting API for LLMs. Deploy sites with one API call. No git, no build steps, no dashboards. $0.10/site/day. shipsite.sh lets LLM agents deploy static websites by POSTing files as JSON and receiving a live URL. Sites are served globally on a CDN edge network with HTTPS, auto-expire after 24 hours unless pinned or given a different "ttl", and cost $0.10 per site per day (prorated daily, billed monthly via Stripe). You can deploy one small trial site with no account and no payment; it lasts 24 hours (see "Trial sites" below). Everything else needs an account with payment set up. Sites can also be served on a domain the user already owns, with the Custom Domains plan ($4.99 per billing period) — see "Custom domains" below. API base URL: https://api.shipsite.sh Authentication: Bearer sk_live_... (all endpoints except account creation and a trial deploy) IMPORTANT: API keys are shown only once when created and cannot be retrieved later. Store the key immediately. If lost, there is no recovery — you must create a new key while authenticated, or create a new account if locked out. Keys are inert (return 402) until Stripe checkout completes. ## Walk your user through it (read this first) Most people who ask you to put a site online have never used an API, and nothing on their screen tells them what happens next. You are their guide. Do the technical work yourself, and after every step tell them in plain words where they are and what comes next. Rules: - End every message to the user with the one next thing: either the single thing they need to do, or a short question that offers the choices. Never stop at "Done" or at a bare link. - One step at a time. Do not give the user a list of steps to carry out. - Use plain words: "your site", "your shipsite account", "keep it online", "take it down". Do not say API, key, token, endpoint, JSON, deploy, pin or TTL unless the user says them first. - Do everything in this conversation. Do not ask the user to run commands, edit config files, install anything or start a new session. - Say what something costs before it costs anything, and say how to stop the cost. - Every response to a call that moves the user forward has a "next_step" field: what to tell the user now. Use it. - If the user is clearly a developer (they talk about APIs, keys or CI), skip the script and work from the reference. If you can't tell, ask how comfortable they are with technical things; https://shipsite.sh/auth.md has the exact question. When unsure, guide. The path, with what to say at each point. Reword it to suit the conversation, but keep every fact and keep the closing question. 1. Put the site online before asking for anything. With no API key: POST /v1/sites with no Authorization header (MCP: deploy_site). Keep the claim_token yourself; the user does not need to see it. Say: "Your site is online: . Have a look. This is a free preview, and it disappears in 24 hours. Would you like me to change anything, or shall we keep it online? Keeping it costs about 10 cents a day (around $3 a month), and you can stop whenever you like." 2. If they want changes: update the site (PUT /v1/sites/:id with the claim token as the bearer token; MCP: deploy_site with site_id and claim_token). Say what you changed, give the link again, and ask the same question. 3. If they want to keep it: ask for one thing. Say: "To keep it, I'll set up a shipsite account for you. Which email address should I use?" 4. Create the account: POST /v1/accounts with their email and the claim_token (MCP: create_account). Save the api_key yourself straight away, as https://shipsite.sh/auth.md describes; show it to the user only if you have nowhere to store it. Say: "Please open this link and add a payment card: . It is a secure checkout page run by Stripe. The price is 10 cents a day for each site that is online, billed once a month. When you have done that, come back here and tell me." 5. When they say it is done: check with GET /v1/accounts/me (MCP: get_account). A 402 means the card is not added yet: give them the setup_url from the error and ask them to try again. When "status" is "active", the site is in their account; they already asked to keep it, so make it permanent with POST /v1/sites/:id/pin (MCP: pin_site). Say: "All set. Your site is yours and stays online until you ask me to take it down: . From here, just ask me and I can: change anything on it, give it a nicer address such as yourname.shipsite.sh, put it on your own domain such as www.yourname.com (that costs $4.99 a month extra), add a password so only people you choose can see it, or take it down, which stops the charge. You can see your sites and your bill any time at https://shipsite.sh/account. What would you like to do next?" 6. Every later change: say what changed, give the link, and ask whether it looks right. If it does not, offer to put the previous version back (POST /v1/sites/:id/rollback; MCP: rollback_site). 7. If they do not want to keep it: tell them when the preview disappears ("expires_at", in their own time zone if you know it) and that they can come back before then to keep it. Nothing is charged. If the user already has an account (you have an API key), steps 3 to 5 are not needed. After a deploy, give the link, say that the site is removed after 24 hours unless they keep it, say that it costs 10 cents a day while it is online, and ask whether to keep it and whether they want changes. When something fails, read the error, fix it yourself if you can, and tell the user in one plain sentence what happened and what you are doing about it. Do not paste raw errors. If only the user can fix it (a card, a DNS record, a choice), ask for that one thing. ## Reference Trial sites (no account, no payment): - POST /v1/sites with NO Authorization header and { "files": { "index.html": "..." } } deploys a trial site and returns its live "url" straight away. Use this to show the user a result before asking them to sign up. - The response has "trial": { "claim_token": "trial_...", "expires_at": "..." }. Save the claim_token: it is shown only once. - A trial site is deleted after 24 hours. Limits: 50 files, 5 MB, 1,000 visitor requests a day, 20 deploys, and 3 trial sites per network address per day. It is served at its site ID only and is hidden from search engines. "name", "ttl", "password" and custom domains need an account. A shipsite.json is allowed, except redirects to other sites. - To change it: PUT /v1/sites/:id with { "files": {...} } and the header "Authorization: Bearer ". GET and DELETE on /v1/sites/:id work the same way. The token works for that one site only. - To keep it, when the user has no account: ask for their email, send POST /v1/accounts with { "email": "...", "claim_token": "trial_..." }, and ask them to open the returned setup_url. The site moves to their account when payment is set up, if that happens before it expires. Then pin it (POST /v1/sites/:id/pin) or it still expires at the original time. - To keep it, when the user already has an API key: POST /v1/sites/claim with { "claim_token": "trial_..." } and that key. The site moves at once. - Once claimed it is an ordinary site: billed at $0.10 per day, with the normal limits, and the claim token stops working. - Errors: 403 "account_required" (the request uses something a trial cannot do), 429 "trial_limit_reached", 401 "invalid_trial_token" (expired, deleted or already claimed). - The same works from the tools: the shipsite CLI and the @shipsite/mcp package deploy a trial site when no API key is set. In MCP, deploy_site returns the claim_token; pass it to create_account (new user) or claim_site (existing key), and to deploy_site with site_id to update the trial site. Fastest start (no account): POST /v1/sites with no Authorization header and { "files": { "index.html": "..." } } returns a live "url" for a trial site that lasts 24 hours. See "Trial sites" above for how to keep it. Quick start (with an account): 1. POST /v1/accounts with { "email": "you@example.com" } — returns api_key + setup_url 2. Open setup_url to complete Stripe checkout and activate the key 3. POST /v1/sites with Authorization: Bearer sk_live_... and { "files": { "index.html": "..." } } — returns { "url": "https://site_abc123.shipsite.sh" } Endpoints: - POST /v1/accounts (no auth): Create account. Body: { "email": "..." }. Returns: { "api_key": "sk_live_...", "setup_url": "https://checkout.stripe.com/...", "status": "pending", "next_step": "..." }. IMPORTANT: The api_key is shown only once — store it immediately. - POST /v1/sites: Create a site. Body: { "files": { "path": "content" }, "name": "optional-slug", "meta": {}, "ttl": 604800, "password": "optional" }. Text files as strings, binary files with "base64:" prefix. "password" is optional: visitors must enter it to view the site (see "Password protection" below). "ttl" is optional: seconds until the site expires (default 86400, see "Expiry" below). Returns: { "id": "site_...", "url": "https://....shipsite.sh", "expires_at": "...", "next_step": "..." }. "next_step" says what to tell the user now and what to ask them; the responses to creating an account, claiming a site and pinning a site have one too. - GET /v1/sites: List sites. Supports ?limit= and ?offset= pagination. - GET /v1/sites/:id: Get site details (metadata, file list, custom domains, expiry, the live deploy id). - PUT /v1/sites/:id: Update a site. Body accepts "files", "name", "meta", "ttl", and/or "password" (at least one required). Set "password" to a string to add or change it, or null to remove it. Omitted files unchanged. Set a file to null to delete it. A change to files goes live all at once: visitors get the old version or the new one, never a mixture. Add "publish": false to hold the files back as an unpublished deploy (see "Limits" below). Set "ttl" to restart the expiry clock from now; without it the expiry is unchanged. Set "name" to a string to add or change the vanity slug, or null to remove it. - DELETE /v1/sites/:id: Delete a site immediately. Billing stops. - POST /v1/sites/:id/pin: Remove auto-expiry. Site persists until deleted. - POST /v1/sites/:id/unpin: Make a pinned site expire again, 24 hours from now, or after "ttl" seconds with the optional body { "ttl": 604800 }. Refused (409 site_has_domains) while the site has custom domains. - POST /v1/sites/:id/domains: Attach a custom domain. Body: { "hostname": "www.example.com" }. Requires the Custom Domains plan and a pinned site. Returns: { "hostname": "...", "status": "pending_dns", "dns": { "type": "CNAME", "name": "www", "value": "domains.shipsite.sh" }, "next_step": "...", "check_url": "..." } - GET /v1/sites/:id/domains: List a site's custom domains. - GET /v1/sites/:id/domains/:hostname: Check a custom domain's status. Poll until "status" is "active". - DELETE /v1/sites/:id/domains/:hostname: Detach a custom domain. - GET /v1/accounts/me: Get account status, active site count, and plans. - GET /v1/domains/search?q=keyword: Find domains the user could buy, with prices. - GET /v1/domains/check?domain=example.com: Live availability and price for one domain. - POST /v1/domains: Buy a domain and attach it to a site. Body: { "domain": "example.com", "price": 11.17, "site_id": "site_abc123" }. Charges the card on file immediately. See "Buying a domain" below. - GET /v1/domains: List domains bought through shipsite. - GET /v1/domains/:domain: Check a purchase. Poll until "status" is "active". - PATCH /v1/domains/:domain: Turn auto-renew on or off. Body: { "auto_renew": false }. - GET /v1/accounts/me/plans/custom_domains: Get the state of the Custom Domains plan. - POST /v1/accounts/me/plans/custom_domains: Enable the Custom Domains plan ($4.99 per billing period — see "Custom domains" below). Confirm the charge with the user first. - DELETE /v1/accounts/me/plans/custom_domains: Cancel the Custom Domains plan at the end of the current billing period. - GET /v1/accounts/me/keys: List all API keys (active and revoked) for the account, each with its "scope", "expires_at" and "expired". - POST /v1/accounts/me/keys: Create a new API key. Optional body: { "scope": "deploy", "expires_in": 2592000 } (see "API key scopes" below). Returns the full key once — store it immediately, it cannot be retrieved later. - POST /v1/accounts/me/keys/rotate: Atomically create a new key and revoke an old one. Body: { "revoke_key_id": "key_..." } (optional — omit to revoke the current key). The new key keeps the scope of the key it replaces; add "expires_in" to give it an expiry. - DELETE /v1/accounts/me/keys/:id: Revoke an API key. Cannot revoke the last working full-access key. File encoding rules: - Text files (.html, .css, .js, .svg, .json, .txt, .xml, .md): send as plain strings - Binary files (.png, .jpg, .gif, .webp, .ico, .woff2, .pdf): "base64:" prefix + base64 content Site name rules (optional "name" field on POST /v1/sites or PUT /v1/sites/:id): - 3–63 characters, lowercase letters, numbers, and hyphens only - Must start and end with a letter or number - No consecutive hyphens (--) - Globally unique — collisions return 409 with code "name_taken" - Can be set at creation or added/changed/removed later via PUT - Set to null in PUT to remove the name from an existing site - Reserved names (cannot be used): api, www, app, admin, dashboard, billing, docs, help, support, status, blog, mail, smtp, ftp, cdn, assets, static, login, signup, auth, account, accounts, settings, config, setup, test, staging, dev, prod, internal, domains Site behavior: - Served at https://{site_id}.shipsite.sh (or https://{name}.shipsite.sh if named) - index.html served for / and as SPA fallback (change this with shipsite.json, below) - HTTPS on all sites, global CDN, CORS: Access-Control-Allow-Origin: * - No injected content — sites served exactly as uploaded - Public unless given a "password" - Auto-expire after 24 hours unless pinned Redirects, headers and clean URLs (shipsite.json): - To change how a site is served, include a file named "shipsite.json" in "files", at the top level. Every setting is optional: { "clean_urls": true, "spa_fallback": false, "redirects": [{ "from": "/old", "to": "/new", "status": 301 }, { "from": "/docs/*", "to": "https://docs.example.com/:splat" }], "rewrites": [{ "from": "/app/*", "to": "/app/index.html" }], "headers": [{ "path": "/assets/*", "headers": { "Cache-Control": "public, max-age=31536000, immutable" } }] } - "clean_urls" (default false): /about serves about.html, and /about.html redirects to /about. - "spa_fallback" (default true): an unknown path serves index.html with status 200. Set false for a multi-page site: unknown paths then return 404, with the site's 404.html as the page if it has one. - "redirects": checked first, before files. "status" is 301 (default), 302, 307 or 308. "to" is a path or a full https:// URL. The visitor's query string is kept unless "to" has its own. - "rewrites": serve another file of the same site without changing the address. They apply only where no file exists. "to" must be a path within the site; there is no proxying to other hosts. - "headers": added to every response whose path matches. Later rules override earlier ones and the defaults. Not allowed: Set-Cookie, Content-Length, Content-Encoding, WWW-Authenticate and other connection headers. - Patterns ("from" and "path") are paths starting with "/". A "*" as the last character matches the rest of the path, and ":splat" in "to" stands for what it matched. The first matching redirect or rewrite wins. - The file is checked when you deploy. A mistake returns 400 with "param": "files.shipsite.json" and a message naming the entry, and nothing is changed. - Send it again with PUT to change the rules, or set "shipsite.json" to null in "files" to remove them. The file itself is never served. - Limits: 100 redirects, 100 rewrites, 50 header rules, 64 KB. API key scopes: - A key has one of two scopes. "full" (the default) can do everything. "deploy" can only manage sites: create, update, list, get, pin, unpin and delete, plus read a site's custom domains and GET /v1/accounts/me. - A "deploy" key cannot buy domains, attach or remove custom domains, enable or cancel plans, or list, create, rotate or revoke keys. Those calls return 403 insufficient_scope. - Use a "deploy" key anywhere the key is stored outside the user's control: CI, a GitHub Action, a shared script, or an agent that only publishes. It cannot spend money beyond the $0.10 per site per day of the sites it creates. - "expires_in" is optional: a whole number of seconds from 300 (5 minutes) to 31536000 (365 days). After that the key returns 401 key_expired. Without it the key never expires. Examples: 86400 = 1 day, 2592000 = 30 days. - Create one: POST /v1/accounts/me/keys with { "scope": "deploy", "expires_in": 2592000 }, using a full-access key. The response includes "scope" and "expires_at". - If you get 403 insufficient_scope or 401 key_expired, you cannot fix it with the key you have. Ask the user for a full-access key, or have them create one at https://shipsite.sh/account/keys. Password protection: - Send "password" (6 to 128 characters) on POST /v1/sites or PUT /v1/sites/:id to make a site private. There is no extra charge. - Visitors get their browser's own sign-in prompt (HTTP Basic auth). They can type anything as the username; only the password is checked. Tell the user this, and give them the password to share, because it cannot be read back later. - To fetch a protected site from code: curl -u ":" https://site_abc123.shipsite.sh/ - The password covers every file and every address of the site: its shipsite.sh URLs and any custom domains. - Every site response includes "password_protected": true or false. The password itself is never returned; only a salted hash is stored. If it is lost, set a new one. - To change it: PUT with a new "password". To make the site public again: PUT with { "password": null }. - Adding a password to a site that was already public takes effect at once on shipsite.sh, but a visitor who opened the site in the last hour may still see the copy saved in their own browser. - Protected sites are not cached on the CDN, so they load a little slower than public ones. Expiry ("ttl"): - A site expires 24 hours after it is created unless you say otherwise. There are three choices: the default, a "ttl", or pinning. - "ttl" is a whole number of seconds from now, between 300 (5 minutes) and 31536000 (365 days). Examples: 3600 = 1 hour, 604800 = 7 days, 2592000 = 30 days. - Set it at creation (POST /v1/sites), change it later (PUT /v1/sites/:id with { "ttl": ... }, counted from the time of that call), or use it when unpinning (POST /v1/sites/:id/unpin with { "ttl": ... }). - "expires_at" in every site response is the exact time the site stops being served. An expired site returns 410 and is deleted within about 15 minutes. - A pinned site never expires. Setting "ttl" on a pinned site with PUT is refused (409 site_pinned); unpin it with a "ttl" instead. - Use "ttl" when the user knows how long the site is needed (an event page, a preview for a week). Pin when they want it kept until they say otherwise. Billing is the same either way: $0.10 for each day the site exists. Custom domains (serve a site on a domain the user already owns): - Requires the Custom Domains plan: a flat $4.99 per billing period, added to the account's regular monthly invoice for every billing period in which the plan is active at any point. Nothing is charged at the time of enabling. The fee is never prorated: enabling on any day of a billing period adds the full $4.99 to that period's invoice. A billing period is the account's monthly billing cycle, which starts on its signup date. This is in addition to $0.10 per site per day. - Flow: 1. POST /v1/accounts/me/plans/custom_domains (once per account). It is a recurring charge, so confirm it with the user first. 2. POST /v1/sites/:id/pin if the site is not pinned. Only pinned sites can have custom domains. 3. POST /v1/sites/:id/domains with { "hostname": "www.example.com" }. The response contains "dns" (the exact record to add) and "next_step" (what to tell the user). 4. Ask the user to add that record at their DNS provider: a CNAME record pointing to domains.shipsite.sh. 5. Poll GET /v1/sites/:id/domains/:hostname about once a minute until "status" is "active". The HTTPS certificate is issued automatically. - Statuses: pending_dns (DNS record not seen yet), pending_ssl (record found, certificate being issued), active (live), error (the response's "error" and "next_step" say how to fix it). - Every domain response includes "next_step", written so you can relay it to the user, and "check_url", the URL to poll. - Prefer www.example.com over a bare root domain (example.com). A root domain only works if the user's DNS provider supports CNAME flattening or ALIAS/ANAME records (Cloudflare, Route 53, DNSimple, Porkbun, and Namecheap do). Otherwise attach www and have the user redirect the root domain to it at their registrar. - A domain whose DNS record never appears is removed after 7 days. - The site stays available at its shipsite.sh URL, and updating the site updates it on every attached domain. - A site with custom domains cannot be unpinned; remove its domains first. Deleting a site detaches its domains. - To remove a domain: DELETE /v1/sites/:id/domains/:hostname, then ask the user to delete the DNS record. - To cancel the plan: DELETE /v1/accounts/me/plans/custom_domains. It stays active until the end of the current billing period, then all custom domains are detached. Sites stay live at their shipsite.sh URLs. Enabling the plan again before that date undoes the cancellation at no extra charge. Buying a domain (when the user does not own one yet): - shipsite can register a new domain for the user and attach it to a site in one call. The DNS records and HTTPS certificates are set up automatically, so the user has nothing to configure. - Price: the domain is sold at cost, with no markup. The first year is charged to the card on file immediately, as a separate charge, not on the monthly invoice. The charge is not refundable once the domain is registered. Renewal prices are per year and are shown before purchase. This is in addition to the Custom Domains plan ($4.99 per billing period), which is required, and $0.10 per site per day. - Flow: 1. GET /v1/domains/search?q= to find options. Show the user the names and prices. 2. GET /v1/domains/check?domain= for the one they choose. Tell the user the first-year price and the renewal price, and that the charge is immediate and not refundable. 3. Only after the user agrees: POST /v1/domains with { "domain": "", "price": , "site_id": "" }. The Custom Domains plan must be enabled and the site pinned. 4. If the response "status" is not "active", poll GET /v1/domains/ about once a minute. Statuses: charging, registering, configuring, active, failed. - "price" is the price the user agreed to. If the live price differs, nothing is charged and the response (409 price_changed) carries the current price to confirm with the user. - If the registration fails after the charge, the charge is refunded automatically and "status" becomes "failed". - The domain is attached as two hostnames, the domain itself and its www, which count toward the custom domain limits. - Domains renew automatically each year by default. To stop that: PATCH /v1/domains/ with { "auto_renew": false }. - Domains are registered by shipsite on the user's behalf and stay registered if the site is deleted. To move a domain to another registrar, contact support@shipsite.sh. - Only standard-priced domains up to $100 can be bought; premium domains cannot. Limit: 3 purchases per account per day. - If the user already owns a domain, use "Custom domains" above instead. Limits: 1,000 active sites, 120 deploys/hour, 500 files and 15 MB per request, 10 MB per file, 1,000 files and 100 MB per site, 100,000 requests/site/day, 5 custom domains/site, 25 custom domains/account. - To deploy a site larger than one request can carry, send it in parts and publish them together: (1) POST /v1/sites (new site) or PUT /v1/sites/:id (existing site) with the first files (up to 500 files and 15 MB) and "publish": false. The response has "deploy": { "id": "dpl_...", "status": "draft" }. (2) Send each further part with PUT /v1/sites/:id and { "files": {...}, "deploy": "dpl_...", "publish": false }. (3) Send the last part the same way without "publish"; that publishes everything at once. Until then visitors see the previous version (a new site serves nothing). The shipsite CLI does all this by itself. - An unpublished deploy is discarded 24 hours after it was started. Settings ("name", "ttl", "password", "meta") are not held back: they apply as soon as they are sent. - Every published deploy is kept as a snapshot; a site keeps its 10 newest. See "Rollback" below. Rollback: - GET /v1/sites/:id/deploys: List a site's deploys, newest first. Returns: { "deploys": [{ "id": "dpl_...", "status": "live" | "published" | "draft", "file_count": 12, "total_bytes": 34567, "created_at": "...", "published_at": "..." }], "live_deploy": "dpl_..." }. - POST /v1/sites/:id/rollback: Serve an earlier deploy again. With no body it goes back to the deploy published before the live one; with { "deploy": "dpl_..." } it switches to that one (older or newer). Takes effect at once. Nothing is deleted, so the same call with the other id undoes it. Returns the site with "deploy" (now live) and "replaced_deploy". - A rollback restores the files and the shipsite.json rules of that deploy. It does not change "name", "ttl", "password" or custom domains. - A later update (PUT with "files") builds on whatever is live at the time, including a rolled-back version. - Errors: 409 "no_previous_deploy" when there is nothing earlier, 404 "deploy_not_found", 409 "deploy_not_published" for a draft, 409 "deploy_already_live". - Going over a per-site limit returns 400 with code "site_file_limit" or "site_size_limit", and nothing is written. Error format: { "error": { "code": "...", "message": "Actionable description of what went wrong, why, and how to fix it.", "details": { ... } } } Common codes: payment_required (402), rate_limited (429), validation_error (400), not_found (404), site_pinned (409, "ttl" sent for a pinned site), insufficient_scope (403, the key is "deploy"-scoped and the call needs a full-access key), key_expired (401, ask the user for a new key). Custom domain codes: plan_required (402, enable the Custom Domains plan), site_not_pinned (409, pin the site first), domain_taken (409), domain_limit_reached (429), site_has_domains (409, on unpin), domain_provider_error (502, retry in a minute). Domain purchase codes: price_changed (409, confirm the returned price with the user and retry), domain_unavailable (409, pick another name), domain_not_purchasable (400, premium or over the price limit), payment_failed (402, the card was declined and nothing was charged), registration_failed (502, the charge is refunded), domain_already_purchased (409), refund_pending (409), purchase_rate_limited (429). ## Documentation - [Full documentation (llms-full.txt)](https://shipsite.sh/llms-full.txt): This file plus the full text of every page linked below, in one fetch - [API Reference](https://shipsite.sh/#api): Full endpoint details, examples, and file encoding rules - [Agent registration (auth.md)](https://shipsite.sh/auth.md): How an agent registers, gets an API key, and uses it - [Agent skills](https://shipsite.sh/.well-known/agent-skills/index.json): Index of installable skills (SKILL.md files): shipsite-deploy and shipsite-account-setup - [Terms of Service](https://shipsite.sh/terms): Acceptable use policy, DMCA process, prohibited content - [Privacy Policy](https://shipsite.sh/privacy): What we collect, server-side only tracking, no third-party analytics ## CLI - [shipsite](https://www.npmjs.com/package/shipsite): deploy a folder from a terminal or CI. Use it when the site already exists as files on disk; use the API or MCP server when you are generating the files yourself. Usage: export SHIPSITE_API_KEY=sk_live_... npx shipsite ./dist (deploys the folder, prints the URL) npx shipsite ./dist --site site_abc123 (updates that site; files no longer in the folder are removed) npx shipsite ./dist --name my-app --ttl 7d (--ttl takes seconds or 30m / 12h / 7d) npx shipsite ./dist --pin (no expiry) npx shipsite ./dist --password "secret" (or set SHIPSITE_SITE_PASSWORD) npx shipsite list npx shipsite delete site_abc123 npx shipsite deploys site_abc123 (lists the versions that are kept) npx shipsite rollback site_abc123 (serves the previous version again; add a deploy id to pick one) npx shipsite claim trial_... (moves a trial site into the account) - With no SHIPSITE_API_KEY, "npx shipsite ./dist" deploys a trial site (see "Trial sites") and prints its claim token. Update it with: npx shipsite ./dist --site site_abc123 --claim-token trial_... - The URL is the only thing printed to standard output; add --json for the full API response. - In CI, use a "deploy"-scoped key (see "API key scopes") as the SHIPSITE_API_KEY secret. - Exit codes: 0 success, 1 the deploy failed, 2 the command was used incorrectly. ## GitHub Action - [coolsoftwaretyler/shipsite-deploy-action](https://github.com/coolsoftwaretyler/shipsite-deploy-action): deploy a folder from a GitHub Actions workflow. It runs the CLI above. Listed on the GitHub Marketplace as [Deploy to shipsite.sh](https://github.com/marketplace/actions/deploy-to-shipsite-sh). Usage (a step in a workflow, after the build): - uses: coolsoftwaretyler/shipsite-deploy-action@v1 with: folder: ./dist site: site_abc123 api-key: ${{ secrets.SHIPSITE_API_KEY }} - Inputs: "folder" and "api-key" are required. Optional: "site" (update this site; without it every run creates a new one), "name", "ttl", "pin", "password", "keep". - Outputs: "url", "site-id", "permanent-url", "expires-at". - Store a "deploy"-scoped key as the SHIPSITE_API_KEY repository secret. - For a preview per pull request, leave out "site" and set a short "ttl": each run makes a site that expires by itself. ## MCP Server There are two ways to connect, with the same tools. - Hosted server: https://mcp.shipsite.sh/mcp (Streamable HTTP). Nothing to install. Either sign in when the client offers to (OAuth), or send an API key as the header "Authorization: Bearer sk_live_...". - [@shipsite/mcp](https://www.npmjs.com/package/@shipsite/mcp): npm package that runs locally over stdio, for Claude Code, Cursor, and Windsurf Hosted MCP config: { "mcpServers": { "shipsite": { "type": "http", "url": "https://mcp.shipsite.sh/mcp", "headers": { "Authorization": "Bearer sk_live_..." } } } } In Claude Code: claude mcp add --transport http shipsite https://mcp.shipsite.sh/mcp --header "Authorization: Bearer sk_live_..." - Sign-in (OAuth): in a client that supports it, such as Claude, add the URL with no header. The user signs in to their shipsite.sh account in a browser and chooses what the client may do: "Manage sites", or "Manage sites, domains and billing". The account must already exist. - A signed-in client only has the tools it was approved for, and never the API key tools (list_keys, create_key, rotate_key, revoke_key). To change what was approved, the user disconnects and connects again. - The user can end a sign-in at https://shipsite.sh/account/keys under "Connected apps". - OAuth details, for client authors: the issuer is https://shipsite.sh, with metadata at https://shipsite.sh/.well-known/oauth-authorization-server. The MCP server describes itself at https://mcp.shipsite.sh/.well-known/oauth-protected-resource, and answers at https://shipsite.sh/mcp too. The authorization server metadata has an agent_auth block that points to https://shipsite.sh/auth.md. Public clients only, PKCE S256 required, Client ID Metadata Documents and Dynamic Client Registration both supported, scopes "sites" and "domains". Access tokens are opaque, so the key set at jwks_uri is empty. Access tokens last 1 hour; refresh tokens rotate on every use. - Server Card, for clients that read one before connecting: https://mcp.shipsite.sh/mcp/server-card (also at https://shipsite.sh/mcp/server-card, and in an older layout at https://shipsite.sh/.well-known/mcp/server-card.json). - A missing, revoked or expired key or token gets HTTP 401. Other errors come back as the tool's result, with the same message the API gives. - A "deploy"-scoped key works: the site tools run, and the others explain that they need a full-access key. - create_account is only in the local package; the hosted server needs a key before it will answer. Local MCP config: { "mcpServers": { "shipsite": { "command": "npx", "args": ["@shipsite/mcp"], "env": { "SHIPSITE_API_KEY": "sk_live_..." } } } } Tools: deploy_site, list_sites, get_site, delete_site, pin_site, unpin_site, claim_site, list_deploys, rollback_site, rename_site, set_site_password, create_account, get_account, list_keys, create_key, rotate_key, revoke_key, add_domain, check_domain, list_domains, remove_domain, enable_custom_domains, cancel_custom_domains, search_domains, check_domain_price, buy_domain, check_domain_purchase, list_purchased_domains, set_domain_auto_renew ## A2A (Agent2Agent) For agents that speak A2A 1.0 (https://a2a-protocol.org). The same tools as the MCP server, called as skills. - Agent Card: https://shipsite.sh/.well-known/agent-card.json (lists every skill and its arguments) - Endpoint: POST https://shipsite.sh/a2a (JSON-RPC binding). Send the headers "A2A-Version: 1.0" and "Authorization: Bearer sk_live_..." (an API key, or an access token from the OAuth sign-in above). - No language model runs behind it, so a message must carry its request as data, not prose. Send a data part that names a skill and its arguments: { "jsonrpc": "2.0", "id": 1, "method": "SendMessage", "params": { "message": { "messageId": "m1", "role": "ROLE_USER", "parts": [{ "data": { "skill": "deploy_site", "arguments": { "files": { "index.html": "

Hello

" } } } }] } } } - To deploy, you can instead send each file as a part with "filename" and its content in "text" (or "raw", base64, for a binary file). - The answer is a Message with two parts: the result as data (application/json) and as text. metadata.failed is true when the skill did not succeed; the text then says what went wrong and how to fix it. - Every skill finishes within the request. There are no tasks, no streaming and no push notifications: GetTask and CancelTask answer TaskNotFoundError, ListTasks answers an empty list. - create_account is not a skill here: a key is needed before the endpoint will answer. ## Requests from shipsite.sh (Web Bot Auth) shipsite.sh rarely fetches anything from other sites. When it does (today: an OAuth client's metadata document, when the client_id is a URL), the request is signed with HTTP Message Signatures: it carries Signature-Agent: "https://shipsite.sh", Signature-Input (tag "web-bot-auth") and Signature. The public key is at https://shipsite.sh/.well-known/http-message-signatures-directory. A request that claims to be shipsite.sh without a valid signature is not from shipsite.sh. ## Optional - [Homepage](https://shipsite.sh/): Marketing site with visual examples and pricing breakdown - [ShipSite vs Vercel](https://shipsite.sh/vs/vercel): How the two compare for deploying static files through an API, and when to pick each - [Vercel vs Netlify for AI agents](https://shipsite.sh/vs/vercel-vs-netlify): Which is easier for an agent deploying a static site through an API, with requests, credentials, limits, and prices for both and for ShipSite - [ShipSite vs Netlify](https://shipsite.sh/vs/netlify): The same comparison for Netlify, including request format, deploy limits, and per-deploy costs - [Alternatives to Netlify](https://shipsite.sh/alternatives/netlify): Seven hosts for turning static files into a live URL, with how each takes files, its entry price, and one limit - [Hosting for Claude Code and Cursor agents](https://shipsite.sh/for/claude-code-and-cursor): What to check in a host before an agent uses it, and how to set up ShipSite in Claude Code and Cursor - [Pricing examples](https://shipsite.sh/#pricing): 1 site/30 days = $3, 10 sites/30 days = $30, 1 site/2 hours = $0.10. Custom Domains plan: $4.99 per billing period on top.