Pond for AI agents
Pond hosts static websites and files. Add Pond to Claude or ChatGPT as a connector to publish sites from a chat, or let agents and scripts use a scoped API token over a small REST API.
Overview
A pond is a website (type: web) or a file-sharing space (type: doc) at https://<prefix>.pond.domains, optionally on a custom domain. The REST API lets an agent list and create ponds, publish a site from a zip, upload, read and delete single files, turn a site on or off, and check when an upload is live.
Two ways in: add Pond to an AI app such as Claude or ChatGPT as a connector (below), or give an agent or script an API token for the REST API.
The API uses API tokens, never the user’s login. Tokens are scoped, can be limited to chosen ponds, and can be revoked at any time. They cannot touch billing, account settings or domains.
Add Pond to Claude or ChatGPT
Pond is a connector (a remote MCP server) at https://api.pond.sh/mcp. Add it once, approve it on pond.sh, and the app can publish the sites it builds straight from a chat. No token to copy.
Step-by-step for people using Claude, ChatGPT or other AI apps (no code): https://pond.sh/docs/ai-apps.
- Claude (claude.ai or the desktop app): Settings → Connectors → Add custom connector. Name
Pond, URLhttps://api.pond.sh/mcp. Then Connect, and approve on pond.sh. - ChatGPT: add a custom connector (in developer mode) with the URL
https://api.pond.sh/mcpand OAuth sign-in, then approve on pond.sh. - Claude Code:
claude mcp add --transport http pond https://api.pond.sh/mcp, then run/mcpto sign in. - Other MCP clients: Streamable HTTP, with OAuth sign-in or an API token sent as
Authorization: Bearer pond_....
| Tool | What it does |
|---|---|
pond_list_ponds | List your ponds and their URLs |
pond_create_pond | Create a website or file pond (counts against the plan) |
pond_deploy_site | Publish a website from its files (text, or base64 for images). Replaces the site unless merge is true; returns the live URL |
pond_upload_file | Add or replace one file in any pond |
pond_list_files | List the files in a pond, to see what is live |
pond_read_file | Read a page or other text file (up to 512 KB), to edit it |
pond_delete_files | Delete files from a pond (the app asks you first) |
pond_set_site_enabled | Turn a site on or off; its files are kept |
pond_set_password | Password-protect a pond, or remove the password (plans with password protection) |
pond_job_status | Check an upload that is still processing |
When you approve, you can limit the app to the ponds you choose. The connection shows as “<app> (connector)” in Settings → API tokens; revoke it there to disconnect. Uploads through the connector are up to 20 MB each; send a bigger site in parts (merge), or use the dashboard uploader.
Quick start
- Ask the user to create a token in Pond: Settings → API tokens. Request only the scopes you need, and ideally limit it to the ponds you will work on.
- Keep the token out of files you commit. Read it from an environment variable such as
POND_TOKEN.
export POND_TOKEN=pond_... # from Settings → API tokens
API=https://api.pond.sh/api/v1
# Check the token
curl -s -H "Authorization: Bearer $POND_TOKEN" $API/me
# Create a website pond (needs ponds:write): my-site.pond.domains
curl -s -X POST $API/ponds \
-H "Authorization: Bearer $POND_TOKEN" -H "Content-Type: application/json" \
-d '{"prefix": "my-site", "title": "My site"}'
# Publish the site: zip the build folder with index.html at the zip root
(cd dist && zip -r ../site.zip .)
curl -s -X POST "$API/ponds/<folder>/deploy" \
-H "Authorization: Bearer $POND_TOKEN" -H "Content-Type: application/zip" \
--data-binary @site.zip
# Poll the job until "completed" (its "url" is the live site) or "failed"
curl -s -H "Authorization: Bearer $POND_TOKEN" $API/jobs/<job id>Use the pond’s folder (from GET /ponds or the create response) in URLs, not its prefix.
Authentication and scopes
Send the token on every request: Authorization: Bearer pond_....
| Scope | Allows |
|---|---|
ponds:read | List and view ponds and their files, read text files, check upload jobs |
ponds:write | Create ponds (counts against the plan), turn them on or off, set passwords |
sites:publish | Deploy sites, upload and delete files |
A token limited to some ponds only sees those ponds and cannot create ponds (GET /me lists them in token.ponds; null means all ponds). Revoked or expired tokens get 401; a missing scope gets 403 with code missing_scope.
Endpoints
Base URL: https://api.pond.sh/api/v1. Full machine-readable spec: https://api.pond.sh/api/v1/openapi.json.
| Method and path | Scope | What it does |
|---|---|---|
GET /me | any | Token owner, scopes, whether uploads are open |
GET /ponds | ponds:read | List ponds |
POST /ponds | ponds:write | Create a pond: {"prefix", "type": "web"|"doc", "title"?} |
GET /ponds/{folder} | ponds:read | One pond |
PATCH /ponds/{folder} | ponds:write | Turn the site on or off: {"enabled": true|false}. Password-protect it: {"password": "..."}, or null to remove (plans with password protection) |
POST /ponds/{folder}/deploy | sites:publish | Publish a website from a zip. ?mode=replace (default) replaces the site; ?mode=merge only adds and overwrites |
POST /ponds/{folder}/files?path=dir/name.ext | sites:publish | Add or replace one file (any pond type) |
GET /ponds/{folder}/files | ponds:read | List files: ?under=folder, ?search=name, ?offset= and ?limit= (up to 500) |
GET /ponds/{folder}/files/content?path=… | ponds:read | A text file’s content as JSON (up to 512 KB), to edit it |
DELETE /ponds/{folder}/files?path=… | sites:publish | Delete one file from the live pond |
GET /jobs/{id} | ponds:read | Upload status: queued, processing, completed (with url) or failed (with error) |
Uploads take the raw file as the body (Content-Type: application/zip or application/octet-stream) or a multipart field named file. They return 202 with a job; processing usually takes seconds, longer for big sites.
Limits and errors
- 50 MB per upload through the API. The limit is per upload: one-file uploads and
mode=mergedeploys keep the rest of the pond, so a bigger site can go up in several uploads. A single file over 50 MB: the dashboard uploader. Per account: 10 uploads a minute, 5 publishing at once, 2 GB a day; an upload that can't fit in the account's storage gets 413storage_full. All limits: https://pond.sh/docs/limits. - Plan limits apply as in the dashboard: number of ponds and total storage.
- File types: free plans can upload web files, images, fonts, media and common documents; paid plans anything except programs and scripts (e.g.
.exe,.vbs). A refused file fails the upload with codefile_type_not_allowed, or a failed job naming the files. - 120 requests a minute per token (
429when exceeded). - Pond can pause uploads during maintenance:
503with codeuploads_paused. Try again later.
Errors are JSON with a stable code and a message you can show the user:
{"error": {"code": "pond_limit", "message": "Your plan allows 1 pond(s). Upgrade at pond.sh to add more."}}Guidance for agents
- Never ask the user for their password, login link or session token. Ask them to create an API token instead.
- Ask before replacing a live site (
mode=replaceremoves files not in the zip), deleting files, turning a site off or creating ponds that count against their plan. - To change a live site, list its files and read the pages you will edit first, then send only the changed files with
mode=merge, so nothing else is lost. - Put
index.htmlat the root of the zip, not inside a folder. - After deploying, poll
GET /jobs/{id}every few seconds and give the user theurlwhen it is completed, or theerrorif it failed. - If a request fails with
uploads_paused,pond_limitor a storage error, tell the user; do not retry in a loop.
Agents: the same guide is at /llms-full.txt and indexed in /llms.txt.