# Sitehold for AI agents

The assistant builds the website and sends its static files to Sitehold for preview and publishing. New accounts can publish one client site on their own domain free for 3 months. When you need more sites, choose a paid plan. See [pricing](https://sitehold.app/pricing).

## Connect

MCP server (streamable HTTP, OAuth sign-in): `https://accounts.sitehold.app/mcp`

- Claude: [connect Sitehold to Claude](https://sitehold.app/setup/claude) and sign in to the intended Sitehold account.
- ChatGPT: [connect Sitehold to ChatGPT](https://sitehold.app/setup/chatgpt). Custom connector availability depends on the ChatGPT plan and workspace settings.
- Claude Code: `claude mcp add --transport http sitehold https://accounts.sitehold.app/mcp`, then `/mcp` to sign in. Guide: https://sitehold.app/guides/claude-code.md
- Any other MCP client (Codex, Gemini CLI, Mistral Le Chat, Cursor, VS Code): add a remote HTTP server with the same address. Guide: https://sitehold.app/guides/any-agent.md
- After signing in, read the credential’s current scope and permissions with `account_context`. The owner can restrict access.
- No OAuth: the person creates a key on the Agents page of their Sitehold account; the key comes with its own address. Send it as `Authorization: Bearer <key>`.
- Automation tools (n8n, Make, Zapier): use such a key with their MCP client, transport Streamable HTTP. Guide: https://sitehold.app/guides/automation.md

## Preview or update an existing site

1. Read `account_context` for plan capacity, limits per upload, preview quotas and permissions. Find the existing site with `site_list`, then check its ID and current published URLs with `site_inspect`. Site names can repeat.
2. Upload a complete new version to that **site ID** with `deploy`. Keep its existing addresses untouched. For a legacy free site with no custom addresses, publish directly to the generated link. Only use `site_addresses` for a requested address change. It replaces the whole list, and an empty list removes all custom addresses.
3. Finish any upload transfer and inspect its result. If the version is ready and its preview is available, share its `previewUrl` for review and use the expiration time returned by Sitehold. Earlier previews may close when the account reaches its limit. A site’s `stablePreviewUrl` follows the newest available preview.
4. When the person asks to publish, use the chosen deployment ID and the expected production revision. An approval request or a pending serving update still needs action. After serving is updated, inspect the site’s `productionUrls` and give the person the live URL.

For a handoff between assistants, give the second assistant access to the same site and its current editable source and assets. Deployment history identifies versions. The previous conversation and original project files stay with their respective tools.

## Domains, subdomains and paths

- Customers keep full control of their domain and never change nameservers. Connecting a subdomain such as `artifacts.example.com` or `help.example.com` requires only two DNS records for that exact subdomain; `example.com`, email, and other subdomains stay untouched.
- One connected domain or subdomain can serve many independent sites or artifacts under different paths (`artifacts.example.com/calc`, `artifacts.example.com/q4-deck`) via `site_addresses`.
- **Prefer paths on one connected subdomain** when hosting multiple artifacts, demos, or micro-sites (zero extra DNS work). Connect separate domains or subdomains for distinct brands or standalone root sites.
- Single-file `deploy { artifact }` builds use subpath-safe relative URLs automatically. Multi-file sites published below `/` must also use relative asset paths (`./app.js`, not `/app.js`).

## Waits for the person

- `site_publish`, for a version or offline, on a site where the account owner turned on approval: answer `HUMAN_APPROVAL_REQUIRED` with an `approvalUrl`. Give the link to the account owner, then repeat the same call with the same `requestId`.
- `domain_connect`: Sitehold never changes DNS; it returns the records for the person to add. Guide: https://sitehold.app/guides/connect-a-domain.md
- Domain management and site creation are separate permissions. Use the values returned for the active credential.
- Visitor access: workspace owners and their agents can protect a site or its previews with an access code, email/domain allowlist or reusable group (and auto-protect newly created sites). Agents manage it too with site_access (one site and its previews) and access_groups (groups and the default for new sites; needs a credential for all sites), and see allowlists and new access codes; only the owner can turn protection off. Guide: https://sitehold.app/guides/visitor-access.md

## What Sitehold serves

- Static websites: HTML, CSS, JavaScript, images and fonts. No server code, no databases. Forms go through a third-party form service.
- Files are served exactly as uploaded. `/path` serves `path.html` or `path/index.html`. A root `404.html` is the not-found page.
- `account_context` reports the current limits of the account; check it before a large upload.

Limits an agent will meet: up to 1,000 files per site version; 100 deployments per rolling 24 hours; 5 active previews (preview links expire after about 2 days); 300 MCP requests per minute. Storage is one pool per account. Read `account_context` for the exact values and current usage for this account before a large upload.

## Machine-readable files on this site

- https://sitehold.app/llms.txt
- https://sitehold.app/sitemap.xml
- https://sitehold.app/faq: questions people ask about Sitehold, with answers.
- The guides under /guides and articles under /articles have Markdown copies. Their indexes are https://sitehold.app/guides/index.md and https://sitehold.app/articles/index.md. The two setup quick starts are HTML and linked at https://sitehold.app/resources.
