Skip to content

BigAngels docs

Everything an agent, or a person, needs to publish with BigAngels.

Overview

BigAngels puts what you make with your AI on the internet. Publish a folder or a file and it gets a live link in seconds.

  • Every site gets its own address, like https://bright-canvas-a7k2.bigangels.site/
  • Publish without an account for a live preview that goes offline after 6 hours. Claim it within 7 days to bring it back for good. Sign in (free account) to keep sites permanently on the Free plan (5 sites, 500 MB).
  • Anonymous previews show a banner on the live site; use the claim link or sign in from the same device to keep them.
  • Agents discover setup at https://bigangels.app/llms.txt, https://bigangels.app/llm-info.txt, and https://bigangels.app/llms-full.txt (full Markdown, same as https://bigangels.app/docs.md). Works with Claude Code, Claude, ChatGPT, Cursor, Codex and more.

After publishing: undo a change or copy a site (Versions), file and find sites (Folders, Find a site), show them off (Usernames and your public profile, Addresses with your name in them), buy a web address (Buy a domain), choose who can open a site (Password-protect a site, Share with specific people), collect form entries (Save form submissions and data), call AI with a key nobody sees (Call AI and other APIs), and keep private files for your agents (Keep files in a Drive).

Install

Two ways to connect, with the same publish result. Pick one (or both) for your tool.

  • Skill (recommended for Cursor, Claude Code, Codex): install.sh or npx skills copies SKILL.md + publish.sh + login.sh into your agent's skills folder. Publish first: saved credentials are reused, or you get a public six-hour preview without signing in. To keep it, sign in using login.sh --email or login.sh --browser. The API key is stored privately in ~/.bigangels/credentials.
  • MCP (recommended for Claude.ai, ChatGPT, and testing OAuth in Cursor): add https://api.bigangels.app/mcp in the client's MCP or Connectors settings. Sign in with OAuth in the browser (ba_oat_* access token). install.sh does not configure MCP.

Install the skill

One-time setup. From then on your agent knows how to publish.

With npm
bash
$ npx skills add attentionfactory/bigangels-skill --skill bigangels -g
Without npm (macOS, Linux)
bash
$ curl -fsSL https://bigangels.app/install.sh | bash
Windows (PowerShell)
bash
$ irm https://bigangels.app/install.ps1 | iex

Add MCP (OAuth)

Browser-based agents and Cursor's MCP panel use MCP, not the skill scripts. Cursor: Settings → MCP → add an HTTP server with the URL below (or merge into ~/.cursor/mcp.json). Choose OAuth when prompted.

Merge under mcpServers
json
{
  "mcpServers": {
    "bigangels": {
      "type": "http",
      "url": "https://api.bigangels.app/mcp"
    }
  }
}

Claude.ai and ChatGPT: add a connector with MCP URL https://api.bigangels.app/mcp and Authentication OAuth. Then say: “Publish this to BigAngels”.

Before starting a project that needs a build

Before generating or changing a Next.js, React/Vite, TypeScript or other build-based project, the agent must check command execution, writable files, Node.js, a suitable package manager, package registry access and a BigAngels publishing connection. Use lightweight version and registry metadata checks, not a dependency installation. An MCP connection alone does not provide a build environment.

If a required capability is missing or cannot be verified, pause before creating source files and prompt the user:

This project needs a build environment. Switch to ChatGPT Work with computer access so I can check the tools, install dependencies, build it and publish to BigAngels. Alternatively, continue in Codex, Claude Code or another coding agent with terminal and network access.

  • If the checks pass, continue in the current environment. Plain HTML/CSS/JavaScript and already-built static files can publish directly without Node.js or a build environment.
  • Provide a copyable handoff with the project brief, framework, existing source files and existing site URL/slug when updating. Never include credentials. Repeat the checks after switching; a mode name does not guarantee access, and BigAngels cannot switch modes for the user.
  • BigAngels hosts static output, not server-side Next.js features. Verify static-export compatibility before starting. Switching to Work does not change hosting capabilities. Never silently replace a requested framework with plain HTML.
  • Build successfully before publishing dist/, out/ or another static output folder. Do not publish raw framework source or .next/ as a working website. If a build fails, report the actual error and keep the previous site live; offer a handoff when environment access is the blocker.

Publish

Publish first, without signing in. Your agent runs publish.sh and gives you a public link. Without credentials, the preview goes offline after six hours; claim it within 7 days to keep it. Saved credentials create permanent account-owned sites. Publishing the same folder again updates the same site, and only changed files are uploaded.

bash
$ ~/.claude/skills/bigangels/scripts/publish.sh ./my-site$ ~/.claude/skills/bigangels/scripts/publish.sh ./my-site --anonymous  # ignore saved credentials$ ~/.claude/skills/bigangels/scripts/publish.sh ./dist --spa      # single-page apps$ ~/.claude/skills/bigangels/scripts/publish.sh ./report.pdf    # a single file gets a viewer page

Without the skill: three requests

Any agent can publish with plain HTTP, without signing in. Create the site, upload each file, then finalize. To publish permanently on an account, include its Authorization header when creating and finalizing.

1. Create
bash
$ curl -sS https://api.bigangels.app/api/v1/publish \$   -H "content-type: application/json" \$   -H "X-BigAngels-Client: my-agent/1.0" \$   -d '{ "files": [ { "path": "index.html", "size": 1234, "contentType": "text/html; charset=utf-8" } ] }'

Without Authorization, the response includes a private claimToken, claimUrl, and six-hour expiry. Keep the token for updates and finalize. The response has live: false, upload URLs for every file (upload.uploads[]), and upload.finalizeUrl. Share siteUrl only after finalize returns live: true; that public URL never requires sign-in to view.

2. Upload each file
bash
$ curl -X PUT "<upload url>" -H "Content-Type: text/html; charset=utf-8" --data-binary @index.html
3. Finalize
bash
$ curl -sS -X POST "<finalizeUrl>" \$   -H "content-type: application/json" \$   -d '{ "versionId": "<upload.versionId>", "claimToken": "<claimToken>" }'

Finalize is safe to retry. If a file never arrived it answers 400 with missingFiles. Updating or finalizing a site that belongs to an account requires Authorization: Bearer <api key> — otherwise the API returns 401.

Update

PUT https://api.bigangels.app/api/v1/publish/:slug with the same body. For anonymous sites, include claimToken; for account-owned sites, send Authorization. Include a SHA-256 hash on each file and unchanged files are skipped (listed in upload.skipped).

Settings in the publish body

  • displayName (string, max 80): the name shown in the dashboard.
  • spaMode (boolean): serve index.html for unknown paths, for React, Vue and Svelte apps with client-side routing. Build with root-relative asset paths.
  • crossOriginIsolation (boolean): make the site cross-origin isolated so SharedArrayBuffer and WebAssembly threads work. See Host games and WebAssembly.

Sign in right in the chat

Signing in is optional: publishing works without an account. When the person wants to keep a site, the agent signs them in without leaving the conversation. It asks for their email, BigAngels emails a code, the person types the code into the chat, and the agent gets an API key. No browser, no dashboard, no password. A new email creates a free account.

Any agent that can make HTTP requests

  • Ask for the email only once the person wants to keep a site, and say why: "What email should I use to save this to your account? I'll send you a code."
  • POST https://api.bigangels.app/api/v1/auth/request-code with { "email" }.
  • Tell them to check their inbox, then wait for them to paste the code. Don't guess or retry it.
  • POST https://api.bigangels.app/api/v1/auth/verify-code with { "email", "code", "keyName" }. keyName names the key after your tool, e.g. claude-code.
  • The reply's apiKey is shown once. Store it privately (~/.bigangels/credentials, mode 600) and send Authorization: Bearer <key> from then on. Never print it, repeat it, or put it in a URL.
  • Then claim any preview you published in this chat (POST /claim with its claimToken) so it stays.
bash
$ curl -sS https://api.bigangels.app/api/v1/auth/request-code -H "content-type: application/json" -d '{ "email": "you@example.com" }'$ # ...the person reads the code from their email and pastes it in the chat...$ curl -sS https://api.bigangels.app/api/v1/auth/verify-code -H "content-type: application/json" \$   -d '{ "email": "you@example.com", "code": "<code>", "keyName": "claude-code" }'$ # -> { "apiKey": "ba_live_...", "user": { ... }, "isNew": true }

Codes expire after 15 minutes, and five wrong codes cancel one; request a new code if that happens (at most one every 30 seconds). Signing in from the same computer also claims anonymous previews published from it (device recovery).

With the skill

login.sh runs the same flow and stores the key for you. Check first, so you never ask a signed-in person to sign in again.

bash
$ ~/.claude/skills/bigangels/scripts/login.sh --status              # exit 0 = already signed in$ ~/.claude/skills/bigangels/scripts/login.sh --email you@example.com # sends the code$ ~/.claude/skills/bigangels/scripts/login.sh --email you@example.com 123456  # verifies it$ ~/.claude/skills/bigangels/scripts/login.sh --browser             # if they'd rather use a browser

In apps that only connect over MCP

Claude.ai, ChatGPT and similar apps sign in once, when the person adds the connector (https://api.bigangels.app/mcp) and approves it in the browser with the same email code. After that every MCP tool runs as their account.

Find BigAngels from an agent

Everything an agent needs is machine-readable, so it never has to scrape a page:

  • https://bigangels.app/llms.txt: where to start, in Markdown. https://bigangels.app/llms-full.txt and https://bigangels.app/docs.md: these docs in full.
  • https://api.bigangels.app/openapi.json (also https://bigangels.app/openapi.json): the API as OpenAPI 3.1.
  • https://bigangels.app/.well-known/agent.json: what BigAngels does, how sign-in works, and where the API, MCP server, skill and docs are.
  • https://bigangels.app/.well-known/agent-card.json, https://bigangels.app/.well-known/ai-plugin.json and https://bigangels.app/.well-known/api-catalog (RFC 9727): the same, in other common formats.
  • https://bigangels.app/pricing.md: plans and limits.
  • https://api.bigangels.app/mcp: the MCP server, for apps that can't run commands.

Keep an anonymous preview

Previews published without an account go offline after 6 hours, and can still be claimed for 7 days after that; claiming brings one back on the same link. Unclaimed previews are then deleted. To keep one, the person opens the claimUrl and signs in, or a signed-in agent calls:

bash
$ curl -sS -X POST https://api.bigangels.app/api/v1/claim -H "Authorization: Bearer <key>" -H "content-type: application/json" -d '{ "claimToken": "<claimToken>" }'

Claiming is safe to repeat. A site someone else already kept answers 409.

Your sites

All of these need Authorization: Bearer <key>.

  • GET https://api.bigangels.app/api/v1/sites: every site in the account, newest first.
  • GET https://api.bigangels.app/api/v1/sites/:slug: one site with its files and version history, including which agent published each version.
  • PATCH https://api.bigangels.app/api/v1/sites/:slug with displayName, spaMode, crossOriginIsolation, password (see Password-protect a site), folder or siteName (see Folders and Addresses with your name in them).
  • GET and PATCH https://api.bigangels.app/api/v1/sites/:slug/access: who can view the site (see Share with specific people).
  • DELETE https://api.bigangels.app/api/v1/sites/:slug: removes the site and every stored file.
  • Versions: restore, preview, delete and duplicate are in the next section.
  • GET https://api.bigangels.app/api/v1/me: the account and how many sites and bytes it uses.
  • GET, POST and DELETE https://api.bigangels.app/api/v1/me/keys: list, create and revoke API keys. Use one key per agent or computer.

Read a site's files

To edit a site that's already live, read its files back first instead of guessing what's there. This reads the stored files directly, so it works on password-protected and invite-only sites too.

  • GET https://api.bigangels.app/api/v1/sites/:slug/files: every file in the live version, with path, size, contentType, hash and a url.
  • GET https://api.bigangels.app/api/v1/sites/:slug/files/<path>: one file's bytes, with its Content-Type, an ETag of its SHA-256 and X-BigAngels-Version. HEAD returns only the headers; If-None-Match with the ETag returns 304.
  • The same paths work under /publish/:slug/files.
  • Owners send Authorization: Bearer <key>. For an anonymous preview, send its claim token in the X-Claim-Token header (never in the URL).
  • Over MCP, get_site lists the paths and read_site_file returns a text file's contents.
bash
$ curl -sS https://api.bigangels.app/api/v1/sites/bright-canvas-a7k2/files -H "Authorization: Bearer <key>"$ curl -sS https://api.bigangels.app/api/v1/sites/bright-canvas-a7k2/files/index.html -H "Authorization: Bearer <key>" -o index.html

Then republish with each file's hash: files you didn't change are skipped and copied on the server, so only your edits upload. Errors: 404 file_not_found for a path that isn't live, 400 invalid_path, 409 not_published before the first finalize.

Versions: restore, preview, delete, duplicate

Every publish is saved as a version. You can put an earlier one back live in a second, look at any version privately before you do, delete versions you no longer want, and copy a whole site to a new link. In the dashboard: open a site, then the Versions tab. Duplicate is in each site's ⋯ menu. All of these need Authorization: Bearer <key> and only work on your own sites.

Restore an earlier version

bash
$ curl -X POST https://api.bigangels.app/api/v1/sites/<slug>/versions/<versionId>/restore -H "Authorization: Bearer <key>"
  • The site switches to that version at once, on the same link. Nothing is uploaded again.
  • What comes back with it: its pages and files, app mode (spaMode), cross-origin isolation, its Site Data collections and its proxy routes. Search finds the restored words again.
  • What stays as it is: the password, who can open the site, domains, and every saved Site Data entry.
  • The restore is written into the history as its own entry (source "restore", with restoredFromVersionId). The version that was live stays in the history, so restoring it again is your undo.
  • The answer has currentVersionId, previousVersionId, restoredFromVersionId and eventVersionId.
  • 409 already_live if that version is live, 409 restore_event if you pick a restore entry (restore the version it points to), 409 publish_in_progress while a publish is still uploading.

See the history

  • GET https://api.bigangels.app/api/v1/sites/:slug/versions: newest first. Each entry has id, number (1, 2, 3… for published versions, null for restores), source (publish, restore or duplicate), current, restoredFromVersionId, the agent that made it, file count, size, createdAt and previewUrl.
  • GET https://api.bigangels.app/api/v1/sites/:slug returns the same list as site.versions.

Preview a version privately

  • Each version has its own private address: https://<versionId>--<slug>.bigangels.site/. It shows the whole version, sub-pages and files included, with the settings it had. Search engines never see it and nothing is cached or counted as a visit.
  • Only the owner can open it. From the dashboard it just opens (Versions tab → ⋯ → Preview). Opened anywhere else, it sends you to the dashboard to sign in, then straight back.
  • Scripts: POST https://api.bigangels.app/api/v1/sites/:slug/versions/:versionId/preview returns previewUrl, a link that signs a browser in for one hour. The link itself works for two minutes.
  • Forms on a preview can read Site Data but can't save. Try them on the live site.

Delete a version

  • DELETE https://api.bigangels.app/api/v1/sites/:slug/versions/:versionId: removes that version and its history entry for good. It can't be undone.
  • Files another version still uses are kept, so other versions keep working. The answer says how many files were removed and how many bytes that freed.
  • The live version can't be deleted (409 version_is_live): restore or publish another one first. Restore entries can't be deleted either (409 restore_event).

Duplicate a site

bash
$ curl -X POST https://api.bigangels.app/api/v1/sites/<slug>/duplicate \$   -H "Authorization: Bearer <key>" -H "Content-Type: application/json" \$   -d '{"displayName": "Spring menu (test)"}'
  • Makes a new site with its own link and the live version's pages and files, app mode, cross-origin isolation, Site Data collections and proxy routes (they use the same variables, which belong to your account). It's ready at once, nothing is uploaded again.
  • Not copied: saved Site Data entries, the password, the list of people who can view it, domains, its folder, its place on your profile, and the version history. The copy opens for anyone with the link and starts at version 1.
  • displayName is optional; the default is the original's name with "(copy)". The answer has slug, siteUrl, sourceSlug and currentVersionId.
  • Deleting either site later never breaks the other.

Folders

Folders keep sites tidy: one per client, project or idea. They're a flat list (no folders inside folders), up to 50 per space. A site sits in one folder or in none. Moving a site, or deleting a folder, never changes the site's address or takes it offline.

Only file a site when the person names a folder, project or client. Don't invent folders they didn't ask for.

Publish straight into a folder
bash
$ publish.sh ./site --folder "Client work"   # made if it doesn't exist yet$ publish.sh ./site --no-folder              # take it out of its folder
  • "folder" on POST https://api.bigangels.app/api/v1/publish, PUT https://api.bigangels.app/api/v1/publish/:slug and PATCH https://api.bigangels.app/api/v1/sites/:slug: a folder name or id. A name that doesn't exist yet is created. null takes the site out of its folder; leaving it out keeps the site where it is. Needs an account (anonymous publishes get 400 folder_requires_account).
  • GET https://api.bigangels.app/api/v1/folders: the space's folders, A to Z, each with siteCount.
  • POST https://api.bigangels.app/api/v1/folders {"name"}: 201 with the folder. Names are 1 to 60 characters and unique ignoring capitals: a clash is 409 folder_exists with details.folderId. The 51st folder is 409 folder_limit.
  • PATCH https://api.bigangels.app/api/v1/folders/:id {"name"}: rename. Sites inside don't change.
  • DELETE https://api.bigangels.app/api/v1/folders/:id: removes the folder and moves its sites back to the top level. Returns {"removed", "unfiled"}.
  • GET https://api.bigangels.app/api/v1/sites?folder=<id or name> lists one folder; ?folder=none lists the sites in no folder.
  • Every site in the API carries "folder": {"id", "name"} or null.

Usernames and your public profile

Every account has a username, made from your email until you pick one. It names your public profile at https://bigangels.app/@username: a simple gallery of the sites you choose, a one-line bio and one link. The profile is off until you turn it on in Settings → Profile.

  • PATCH https://api.bigangels.app/api/v1/me {"username"}: 3 to 30 lowercase letters, numbers and single hyphens. A taken name is 409 username_taken. Your last three old usernames keep pointing to you for 30 days, so links don't break and nobody else can grab them. A name that is already a site's address (like bright-otter-a1b2) can't be a username.
  • GET https://api.bigangels.app/api/v1/usernames/check?name=…: whether a name is free. Saving is what claims it.
  • GET https://api.bigangels.app/api/v1/profile and PATCH https://api.bigangels.app/api/v1/profile {"enabled", "bio", "link", "username"}: the bio is one line of at most 160 characters; the link is one web address (https:// is added if missing).
  • POST https://api.bigangels.app/api/v1/profile/sites {"slug"} adds a site, DELETE https://api.bigangels.app/api/v1/profile/sites/:slug removes it (the site itself stays online), PUT https://api.bigangels.app/api/v1/profile/sites {"slugs": [...]} sets the whole list in order.
  • Sites with a password or shared with specific people can never be shown, and temporary sites can't be added. Adding a password, or limiting a site to specific people, takes it off your profile straight away.
  • Anyone can read a profile: GET https://api.bigangels.app/api/v1/profiles/:username (404 while it's off) or the feed at https://bigangels.app/@username/feed.json (JSON Feed 1.1). Neither ever shows your email.

Addresses with your name in them

On Creator and Pro, every site also opens at <site-name>.<username>.bigangels.site, for example golden-crumb.ada.bigangels.site. The site name comes from the site's name ("Golden Crumb" becomes golden-crumb) and follows it when you rename the site. The random address (like bright-prism-icq9.bigangels.site) keeps working too.

  • Site responses carry siteName and vanityUrl (null on the Free plan). publish.sh prints it as "also at:".
  • PATCH https://api.bigangels.app/api/v1/sites/:slug {"siteName": "my-bakery"} picks the name yourself; it then stays put when you rename the site. {"siteName": null} goes back to following the site's name. Names are 1 to 50 lowercase letters, numbers and single hyphens, unique among your sites (409 site_name_taken).
  • Old names keep working: they redirect (307, same path) to the current one. So do addresses with your previous username, for 30 days.
  • Who can view, Site Data, proxy routes and every other setting work the same at either address. Visitors confirm their password or email once per address.
  • On the Free plan these addresses don't open anything, so nobody can find a site by guessing its name. Sites you show on your public profile are the exception: their addresses redirect to the random address.

Buy a domain

Search for a name and buy it inside BigAngels, in the dashboard (https://bigangels.app/dashboard/domains → Buy a domain) or through your agent. BigAngels registers it and runs its DNS, so there is nothing to set up. A bought domain is ready to connect: it will show one of your sites as soon as custom domains arrive. Email and other records you add work straight away.

For agents: always confirm the price

  • Before buying, tell the person the exact domain, the first-year price (price.totalCents from check) and the yearly renewal price (renewalPriceCents), and that it renews automatically unless they turn that off.
  • Buy only after the person says yes to that price in this conversation. Never buy to “try it”, never pick a name for them, and never retry a purchase with a higher price they haven't seen.
  • Send that same total as acknowledgedPriceCents. Every purchase needs it. If the price moved, the answer is 409 price_changed and nothing is charged: show the new price and ask again.
  • Purchases are final once the domain is registered. If the registry refuses the name, the charge is refunded automatically.

Search, check, buy

Search: ranked names with estimated first-year and renewal prices
bash
$ curl "https://api.bigangels.app/api/v1/registrar/search?q=golden%20crumb&tlds=com,co,site" -H "Authorization: Bearer <key>"
Check: the exact price a purchase charges
bash
$ curl "https://api.bigangels.app/api/v1/registrar/check/goldencrumb.com" -H "Authorization: Bearer <key>"$ # {"domain":"goldencrumb.com","purchasable":true,"premium":false,"years":1,$ #  "price":{"totalCents":1099,"currency":"USD"},"renewalPriceCents":1599,"acknowledgedPriceCentsRequired":1099,…}
Buy, after the person agreed to $10.99 now and $15.99 a year
bash
$ curl -X POST https://api.bigangels.app/api/v1/registrar/purchase -H "Authorization: Bearer <key>" -H "Content-Type: application/json" \$   -d '{"domain": "goldencrumb.com", "acknowledgedPriceCents": 1099}'$ # 201 {"registration":{…,"autoRenew":true},"charged":{"amountCents":1099,"currency":"USD"},$ #      "dns":"managed","serving":{"state":"ready_to_connect",…}}
  • years is optional (1 to 10). It defaults to the ending's minimum; .ai is sold two years at a time. Add autoRenew: false to buy without renewing.
  • Asking to buy a domain you already bought returns the first purchase (200, replayed: true) and charges nothing.
  • 409 price_confirmation_required or premium_confirmation_required: no acknowledgedPriceCents was sent. The answer includes details.quote. Premium names cost more than usual; say so plainly.
  • 409 domain_unavailable: someone else has it. 402 payment_method_required: the person needs to add a card in Settings → Billing. 402 payment_failed: the card was declined and nothing was bought.
  • 429 purchase_limit_reached: new domains per 30 days are 1 on Free, 5 on Creator and 20 on Pro. Renewals don't count. Search, check, purchase, records and transfer share a budget of 120 calls an hour, with a records save or a transfer code counting as five (429 rate_limited with Retry-After).

Manage a domain you bought

  • GET /registrar/domains lists them. GET /registrar/<domain> shows status, expiresAt, renewalPriceCents, autoRenew and transferLockExpiresAt.
  • PATCH /registrar/<domain> with {"autoRenew": false} turns renewal off. With it on, the renewal price is charged about 30 days before the domain expires. If the registrar raises the price, nothing is charged and the owner gets an email.
  • GET /registrar/<domain>/transfer gives the code to move the domain to another registrar. It works 60 days after purchase (a registry rule), unlocks the domain and emails the owner each time. Use it only when the person asks to move the domain.

DNS records

GET /registrar/<domain>/records returns the records. PUT replaces all of them, so read first and send back the ones to keep. Types: MX (with priority), TXT, CNAME, SRV (with priority), and A or AAAA for names other than the domain itself and www. Those two are kept for serving your site and are preserved; changing them answers 409 serving_record.

Add email at goldencrumb.com
bash
$ curl -X PUT https://api.bigangels.app/api/v1/registrar/goldencrumb.com/records -H "Authorization: Bearer <key>" -H "Content-Type: application/json" \$   -d '{"records": [$     {"type": "MX", "host": "@", "value": "mx1.mail.example.net", "priority": 10},$     {"type": "TXT", "host": "@", "value": "v=spf1 include:mail.example.net ~all"},$     {"type": "CNAME", "host": "shop", "value": "shops.example.net", "ttl": 3600}$   ]}'

Password-protect a site

A password keeps a site private. Visitors see a short page that says the site is private and asks for the password. Every page and file stays hidden until they enter it, including direct file links. Passwords are part of the Creator and Pro plans, and only work on sites saved to an account.

The easiest way: open the site in your dashboard, go to Settings → Access, and turn on Password protection. Agents should send the person there rather than ask for the password in chat.

Or with the API
bash
$ curl -X PATCH https://api.bigangels.app/api/v1/sites/<slug> \$   -H "Authorization: Bearer <key>" -H "Content-Type: application/json" \$   -d '{"password": "<password>"}'
  • Send {"password": null} to remove it. Changing or removing it signs every visitor out at once.
  • Passwords are 4 to 128 characters. BigAngels keeps only a hash, never the password, and never sends it back.
  • The password stays on when you publish a new version.
  • A free account gets 402 with a link to the pricing page. A temporary site that hasn't been kept gets 409.
  • Once unlocked, a browser stays in for 30 days. Visitors can open /.bigangels/lock on the site to lock it again.
  • After 10 wrong tries in 15 minutes, that visitor waits a few minutes before trying again.
  • Site Data routes (/.bigangels/data/…) are behind the password too. You can always read your entries from the dashboard or the API.
  • Scripts can unlock too: POST the password (form or JSON field password) to /.bigangels/unlock on the site and keep the cookie it sets. Locked requests get 401 with code password_required. Forms posted from other websites are refused with 403.

Share with specific people

Choose who can open a site: anyone with the link, anyone with the password, specific people, or only you. With specific people, visitors type their email and get a 6-digit code to confirm it's theirs. Only the addresses and companies you list get in. Like passwords, this is part of the Creator and Pro plans and only works on sites saved to an account.

The easiest way: open the site in your dashboard, go to Settings → Access → Who can view, choose Specific people, and paste the emails. Add @company.com to let everyone at a company in. Tick Email them an invite to send each new person the link.

Or with the API
bash
$ curl -X PATCH https://api.bigangels.app/api/v1/sites/<slug>/access \$   -H "Authorization: Bearer <key>" -H "Content-Type: application/json" \$   -d '{"mode": "restricted", "allowedEmails": ["sam@example.com"], "allowedDomains": ["company.com"], "notify": true}'
  • GET https://api.bigangels.app/api/v1/sites/:slug/access returns { mode, accessPolicyVersion, allowedEmails, allowedDomains }. mode is anyone_with_link, password or restricted.
  • PATCH replaces the whole list. To add one person, read the lists, add them, and send both back. A list you leave out stays as it is; send [] to empty it. Up to 10,000 emails and 10,000 domains, saved in lowercase.
  • Only you: {"mode": "restricted", "allowedEmails": [], "allowedDomains": []}. The owner can always get in by entering their account email on the site.
  • {"mode": "anyone_with_link"} opens the site again and removes any password. {"mode": "password", "password": "…"} switches to a password. Setting a password clears the lists, and choosing specific people removes the password.
  • notify: true emails an invite to addresses this request adds, up to 200 at a time (400 too_many_invites and nothing saved if there are more). The response then includes notifications with sent, failed and skipped. Domains never get emails.
  • POST https://api.bigangels.app/api/v1/sites/:slug/access/invites with { "emails": [...] } sends the invite again. Addresses not on the list are skipped with reason not_allowed.
  • Each person gets at most one invite per site a day (skipped with reason recently_invited), and an account sends at most 1,000 invites a day (daily_limit).
  • Every change signs everyone out, so people you remove lose access at once. A free account gets 402; a temporary site gets 409 access_requires_account.
  • The page never says whether an email is on the list: everyone sees “If you're invited, a code is on its way.” Codes work for 15 minutes and 5 tries. A browser stays in for 30 days; /.bigangels/access/leave signs it out.
  • Domains match exactly: company.com lets in sam@company.com, not sam@team.company.com. International domains are stored in their xn-- form, so a lookalike letter is a different domain.
  • If a site gets 50 wrong codes in 15 minutes, new sign-ins pause until the 15 minutes are up (429). People already in aren't affected.
  • Other sites can't load a private site's scripts, images or data into their own pages, even other BigAngels sites. Links to it still work.
  • Everything on the site is behind it, including direct file links, folders, Site Data routes and your 404 page. Pages are never cached or indexed. Locked requests get 401 with code access_required. Scripts can sign in by POSTing { email } to /.bigangels/access/code and { email, code } to /.bigangels/access/verify on the site, then keeping the cookie.

How a site is served

  • index.html at the root is the home page. A folder with its own index.html is served at that folder's path.
  • A site with exactly one file gets a viewer page: images, video, audio and PDFs display; anything else offers a download.
  • A folder with no index.html shows a file listing; images show as a gallery.
  • Any file can be opened directly, like /report.pdf. A 404.html in the site is used for missing pages.
  • Files are served with the right Content-Type, ETags for caching, and byte ranges for video seeking and large downloads.
  • Pre-compressed files like app.wasm.br or app.js.gz are served with Content-Encoding and the type of the file inside. A request for app.wasm is answered with app.wasm.br when only the compressed file exists.

Host games and WebAssembly

Publish the folder your engine exports, the one with index.html in it. Every file keeps its exact bytes: .wasm is served as application/wasm, so WebAssembly.instantiateStreaming works, and game files like .pck, .data, .glb, .ktx2, .ogg and .opus get their proper types.

bash
$ ~/.claude/skills/bigangels/scripts/publish.sh ./build/web                             # Godot, Unity or Emscripten export$ ~/.claude/skills/bigangels/scripts/publish.sh ./build/web --cross-origin-isolation    # games that use threads

Cross-origin isolation

Threaded WebAssembly needs SharedArrayBuffer, and browsers only allow it on cross-origin isolated pages. Turn it on with --cross-origin-isolation, crossOriginIsolation: true in the publish body or PATCH, or Settings → Access → Games and WebAssembly in the dashboard. It stays on for later publishes until you turn it off the same way (--no-cross-origin-isolation or false). Every response from the site then sends Cross-Origin-Opener-Policy: same-origin, Cross-Origin-Embedder-Policy: require-corp and Cross-Origin-Resource-Policy: cross-origin, and crossOriginIsolated is true in the page. The last header lets other isolated pages, like a game portal, embed your game. The password page and Site Data routes send the same headers, so isolation works with both.

With isolation on, anything the page loads from another site (fonts, scripts, ad or analytics tags, embedded videos) must allow it with CORS or Cross-Origin-Resource-Policy: cross-origin, or the browser blocks it. Keep game files on your site. Isolated pages also can't talk to popups they open on other sites, which can break some sign-in and payment windows.

Threads only work when the game is the page itself or sits in an iframe on another isolated page that allows it with allow="cross-origin-isolated". The dashboard preview shows your site, but a threaded game won't start there: open the site in its own tab to play it.

Export tips

  • Godot 4: if Thread Support is on in the Web export preset, publish with --cross-origin-isolation. Exports without thread support run without it. Upload the .pck, .wasm and .js files together.
  • Unity WebGL: keep Brotli or Gzip compression and publish the whole export folder (index.html, Build and TemplateData) as exported, .br and .gz files included. BigAngels serves them with Content-Encoding, so Decompression Fallback isn't needed. Turn on isolation if you enabled WebAssembly threads.
  • Emscripten: builds with -pthread or SharedArrayBuffer need isolation. Pre-compress large .wasm and .data files to .br or .gz if you like; the browser unpacks them.
  • Rust (wasm-bindgen, Trunk) and Pyodide: publish the dist folder. Both run without isolation; turn it on only for features that use SharedArrayBuffer, like wasm-bindgen threads or Pyodide interrupt buffers.
  • Use root-relative or relative paths, like /Build/game.wasm or Build/game.wasm, never paths on your own computer.
  • Each file can be up to 25 MB and a site up to 100 MB in total. Compressed exports are what count, so keep the .br or .gz files instead of the uncompressed ones.

Save form submissions and data

Site Data lets a static page or single-page app save and read records with no backend: waitlists, RSVPs, contact forms, quiz scores, guestbooks. Describe your collections in .bigangels/data.json at the site root and publish. Entries belong to the site, not a version, so they survive every republish. You see them on the site's Data tab, as CSV, through the API, or by asking your agent. Site Data works on sites saved to your account; a temporary site answers account_required until you claim it.

  • Fields: string, number, integer, boolean, url, email, datetime, array, object. Options: required, default, minLength, maxLength (characters, or items for arrays), minimum, maximum, trim (on by default for text), allowedProtocols (url, default ["http", "https"]). "email": "email" is shorthand for {"type": "email"}.
  • access sets who can read, insert, update and delete: "public" (any visitor), "owner" (you, with your API key) or "none". Defaults: read owner, insert public, update owner, delete owner. Public update or delete also needs "publicMutation": "open", so visitors can't edit each other's entries by accident.
  • rateLimit per visitor address (an IPv6 /64 counts as one address): "10/hour/ip" or "5/minute/ip" for writes, or {"read": "600/hour/ip", "write": "10/hour/ip"}. Those are the defaults. You are never rate limited.
  • A manifest with mistakes doesn't stop the publish. The site goes live, the previous schema stays, and the problems come back as warnings (publish.sh prints them as warning: lines). Leaving the manifest out of a later publish keeps the current schema; {"collections": {}} turns Site Data off and keeps existing entries for export.
  • Single-page apps: put the manifest where your build copies static files, e.g. public/.bigangels/data.json for Vite, React, Vue and Next.js static export, or static/.bigangels/data.json for SvelteKit.

Ready-made manifests

Waitlist: emails only you can see
json
{
  "collections": {
    "waitlist": {
      "fields": {
        "email": { "type": "email", "required": true, "maxLength": 254 },
        "name": { "type": "string", "maxLength": 100 }
      },
      "access": { "read": "owner", "insert": "public" },
      "rateLimit": "5/hour/ip"
    }
  }
}
RSVP: who's coming and how many
json
{
  "collections": {
    "rsvps": {
      "fields": {
        "name": { "type": "string", "required": true, "maxLength": 100 },
        "email": { "type": "email", "required": true },
        "attending": { "type": "boolean", "required": true },
        "guests": { "type": "integer", "minimum": 0, "maximum": 5, "default": 0 },
        "dietary": { "type": "string", "maxLength": 200 }
      },
      "access": { "read": "owner", "insert": "public" },
      "rateLimit": "5/hour/ip"
    }
  }
}
Contact or lead form
json
{
  "collections": {
    "leads": {
      "fields": {
        "name": { "type": "string", "required": true, "maxLength": 100 },
        "email": { "type": "email", "required": true },
        "company": { "type": "string", "maxLength": 120 },
        "website": { "type": "url", "allowedProtocols": ["https"] },
        "message": { "type": "string", "required": true, "minLength": 10, "maxLength": 2000 }
      },
      "access": { "read": "owner", "insert": "public" },
      "rateLimit": "3/hour/ip"
    }
  }
}
Quiz scores: a public leaderboard
json
{
  "collections": {
    "scores": {
      "fields": {
        "player": { "type": "string", "required": true, "maxLength": 30 },
        "score": { "type": "integer", "required": true, "minimum": 0, "maximum": 1000 },
        "answers": { "type": "array", "maxLength": 50 }
      },
      "access": { "read": "public", "insert": "public" },
      "rateLimit": { "read": "600/hour/ip", "write": "20/hour/ip" }
    }
  }
}
Feedback or guestbook: everyone can read it
json
{
  "collections": {
    "guestbook": {
      "fields": {
        "name": { "type": "string", "required": true, "maxLength": 60 },
        "message": { "type": "string", "required": true, "maxLength": 500 },
        "rating": { "type": "integer", "minimum": 1, "maximum": 5 }
      },
      "access": { "read": "public", "insert": "public" },
      "rateLimit": "10/hour/ip"
    }
  }
}

Add a form

One script tag wires every form with data-bigangels="collection": it saves on submit without a page reload, shows "Thanks, it's saved." or the problem in the element marked data-bigangels-message, and resets the form. A hidden field named _gotcha catches bots: anything typed there is quietly dropped. Without JavaScript, a plain method="post" form works too; add a hidden _next field with a page on your site to land on afterwards.

index.html
html
<form data-bigangels="waitlist">
  <label>Email <input name="email" type="email" required></label>
  <input name="_gotcha" tabindex="-1" autocomplete="off" hidden>
  <button type="submit">Join the waitlist</button>
  <p data-bigangels-message></p>
</form>
<script src="/.bigangels/data.js"></script>

<!-- No JavaScript: -->
<form method="post" action="/.bigangels/data/waitlist">
  <input name="email" type="email" required>
  <input type="hidden" name="_next" value="/thanks.html">
  <button type="submit">Join</button>
</form>

From JavaScript and single-page apps

Requests go to the site root, so they work from any route. The helper is window.BigAngels after the script tag, or an ES module at /.bigangels/data.mjs. Paths are matched on their last /.bigangels/data/, so a relative fetch("./.bigangels/data/scores") from /quiz/results reaches the same collection.

Any framework (React, Vue, Svelte)
javascript
// With the script tag (or: import { data } from "/.bigangels/data.mjs")
const scores = window.BigAngels.data("scores");
const record = await scores.create({ player: "Ada", score: 870 }); // { id, data, createdAt, updatedAt }
const { records, nextCursor } = await scores.list({ limit: 10 }); // newest first
const older = await scores.list({ limit: 10, cursor: nextCursor });
// Also: scores.get(id), scores.update(id, fields), scores.remove(id)
// Errors have .message (show it to people), .code, .fields and .retryAfter.

// Or plain fetch, no helper:
const res = await fetch("/.bigangels/data/scores", {
  method: "POST",
  headers: { "content-type": "application/json", "idempotency-key": crypto.randomUUID() },
  body: JSON.stringify({ player: "Ada", score: 870 }),
});
const body = await res.json();
if (!res.ok) throw new Error(body.message);

Site routes

  • GET /.bigangels/data/:collection?limit=50&cursor=… → { records, nextCursor }, newest first. limit is 1 to 100.
  • POST /.bigangels/data/:collection with a JSON object (or a form) → 201 { record }. A plain HTML form (the browser asks for text/html) gets a page back instead, or a 303 to its _next path on your site. Send Idempotency-Key to make retries safe: the same key and body within 24 hours returns the first record with replayed: true.
  • GET, PATCH and DELETE /.bigangels/data/:collection/:id → { record } or { deleted: true }. PATCH merges fields, then checks the whole record.
  • Writes from visitors must come from a page on the same site (the browser's Origin header). Other websites can't post, and responses carry no CORS headers.
  • Errors are JSON: { "error", "code", "message", "retry_after" } with field problems in details.fields. 429 means too many requests; wait retry_after seconds. 403 account_required means the site is temporary: claim it first.
  • Send Authorization: Bearer <your key> to act as the owner on these routes. .bigangels/ files are never served to visitors.
  • On a password-protected site these routes need the unlock cookie like every other page, so only visitors who entered the password can save or read. Use the API routes below to see your entries without it.

Your entries

  • GET https://api.bigangels.app/api/v1/sites/:slug/data: collections with entry counts, fields and access.
  • GET and POST https://api.bigangels.app/api/v1/sites/:slug/data/:collection: list (limit, cursor) and add entries.
  • GET, PATCH and DELETE https://api.bigangels.app/api/v1/sites/:slug/data/:collection/:id. DELETE hides an entry and removes it for good after 30 days; add ?hard=true to remove it now.
  • GET https://api.bigangels.app/api/v1/sites/:slug/data/:collection/export.csv: every entry as a spreadsheet.
  • Limits: 64 KB manifest, 10 collections, 50 fields each, 16 KB per entry, lists and objects nested at most 10 levels, 25,000 entries per collection and 100,000 per site.

Call AI and other APIs without showing your keys

A static page can't keep a secret: anything in its HTML or JavaScript, visitors can read. Proxy routes fix that. Save the key once as a variable on your account. Then the page calls a path on its own site, like fetch("/api/chat"), and BigAngels adds the key on the server before passing the request on. Visitors only ever see your site's address.

1. Save the key as a variable

In the dashboard, open Variables and add it there: that keeps the key out of chats with your agent. Or with the API:

Save or replace a variable
text
curl -X PUT https://api.bigangels.app/api/v1/me/variables/OPENROUTER_API_KEY \
  -H "Authorization: Bearer $(cat ~/.bigangels/credentials)" \
  -H "content-type: application/json" \
  -d '{"value": "sk-or-…", "allowedUpstreams": ["openrouter.ai"]}'
  • Names use capital letters, digits and underscores and start with a letter, like OPENROUTER_API_KEY (64 characters at most). Up to 50 variables per account, 4 KB each.
  • Values are encrypted when stored and never returned: not by the API, the dashboard or MCP. To change one, save it again.
  • allowedUpstreams pins where a value may be sent: hostnames like "openrouter.ai", subdomains included (a full URL is reduced to its host). A route that tries to send it anywhere else answers 403 variable_not_allowed and names the variable. Send the list on every update; leaving it out removes the pin.
  • Add ?space=<spaceId> to save a value for the sites in one space only. Inside that space it wins over the account-wide value with the same name.
  • GET https://api.bigangels.app/api/v1/me/variables lists names, scope, pinning and when each was last used. DELETE https://api.bigangels.app/api/v1/me/variables/:name removes one (add ?space= for a space's own value).

2. Declare routes in .bigangels/proxy.json

Put the file at the site root (public/.bigangels/proxy.json for Vite, React, Vue and Next.js static export) and publish. The skill prints proxy routes: on (/api/chat). A file with a mistake doesn't stop the publish: the site goes live, every route stays off, and the problems come back as warnings in the finalize response (publish.sh prints them as warning: lines, MCP returns them as warnings). A variable that isn't saved yet is a warning too, and its routes answer 503 until you add it.

  • Route paths start with /. An exact path (/api/chat) matches only itself. A prefix ending in /* (/api/db/*) matches everything under it and adds the rest to the upstream: /api/db/todos calls <upstream>/todos.
  • upstream: the https:// address to call. It must be a public hostname: no IP addresses, localhost, private networks, cloud metadata addresses or BigAngels' own addresses.
  • method: "POST", or a list like ["GET", "POST"]. Default GET and POST; GET also answers HEAD.
  • headers: sent to the upstream. ${NAME} becomes the variable's value at request time, so a new key works on the next request without publishing again.
  • forward: visitor headers to pass on as they are, like ["Authorization"] for a signed-in user's own token. Without it, the visitor's cookies and Authorization never leave BigAngels.
  • rateLimit: "20/hour/ip", "5/minute/ip" or "500/day/ip". Default 100 requests per hour from each visitor's network. Responses carry RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset; a 429 has Retry-After.

Example: an AI chat with OpenRouter

.bigangels/proxy.json
json
{
  "proxies": {
    "/api/chat": {
      "upstream": "https://openrouter.ai/api/v1/chat/completions",
      "method": "POST",
      "headers": { "Authorization": "Bearer ${OPENROUTER_API_KEY}", "X-Title": "My chat" },
      "rateLimit": "20/hour/ip"
    }
  }
}
index.html (streams the answer as it's written)
html
<form id="ask">
  <input name="q" placeholder="Ask anything" required autocomplete="off">
  <button>Send</button>
</form>
<p id="answer" aria-live="polite"></p>
<script>
const messages = [];
document.getElementById("ask").addEventListener("submit", async (event) => {
  event.preventDefault();
  const form = event.target, out = document.getElementById("answer");
  messages.push({ role: "user", content: form.q.value });
  form.reset();
  out.textContent = "";
  const res = await fetch("/api/chat", {
    method: "POST",
    headers: { "content-type": "application/json" },
    body: JSON.stringify({ model: "openai/gpt-4o-mini", messages, stream: true }),
  });
  if (!res.ok) {
    out.textContent = (await res.json()).message ?? "Something went wrong. Try again.";
    return;
  }
  const reader = res.body.getReader(), decoder = new TextDecoder();
  let buffer = "", reply = "";
  for (;;) {
    const { done, value } = await reader.read();
    if (done) break;
    buffer += decoder.decode(value, { stream: true });
    const lines = buffer.split("\n");
    buffer = lines.pop();
    for (const line of lines) {
      if (!line.startsWith("data: ") || line === "data: [DONE]") continue;
      reply += JSON.parse(line.slice(6)).choices?.[0]?.delta?.content ?? "";
      out.textContent = reply;
    }
  }
  messages.push({ role: "assistant", content: reply });
});
</script>

Anyone who can open the page can use the route, and every answer is billed to your key. Keep rateLimit low, set a spending limit on the key with OpenRouter, and limit the site to a password or specific people if it's only for people you invite.

Example: Supabase

.bigangels/proxy.json
json
{
  "proxies": {
    "/api/db/*": {
      "upstream": "https://YOUR-PROJECT.supabase.co/rest/v1/",
      "method": ["GET", "POST"],
      "headers": {
        "apikey": "${SUPABASE_ANON_KEY}",
        "Authorization": "Bearer ${SUPABASE_ANON_KEY}"
      },
      "rateLimit": "300/hour/ip"
    }
  }
}
In the page
javascript
const todos = await (await fetch("/api/db/todos?select=id,title&done=eq.false")).json();

await fetch("/api/db/todos", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({ title: "Buy milk" }),
});

Use the anon (publishable) key with Row Level Security on your tables, and pin the variable to YOUR-PROJECT.supabase.co. Never put the service_role key behind a prefix route: every visitor could then read and change everything. For signed-in Supabase users, add "forward": ["Authorization"] and leave Authorization out of headers, so each visitor's own token reaches Supabase.

How routes behave

  • Only the browser's Content-Type and Accept, the visitor's query string, the headers you declare and the ones you forward reach the upstream. Request bodies can be up to 10 MB.
  • Answers stream through as they arrive, so server-sent events (AI chat tokens) show up word by word. The upstream's Set-Cookie and CORS headers are dropped, and an error page that quotes your key back has it replaced with [hidden].
  • Only pages on the same site can call a route. Another website, or another BigAngels site, gets 403 cross_origin. On a site with a password or limited to specific people, routes need the same sign-in as every page.
  • Redirects are followed up to three times, never to a private or BigAngels address. A redirect to another host drops the headers that carry variables.
  • Routes belong to the published version. Publishing again without the file removes them; restoring an older version brings its routes back. .bigangels/ files are never served to visitors.
  • Proxy routes run on sites saved to an account. A temporary preview answers 403 account_required until it's claimed.
  • Errors are JSON: { "error", "code", "message" }. Show message to people. Codes: variable_missing (503), variable_not_allowed (403), rate_limited (429), cross_origin (403), method_not_allowed (405), body_too_large (413), upstream_unreachable (502), upstream_timeout (504), upstream_redirect_blocked (502).
  • Your site's routes: GET https://api.bigangels.app/api/v1/sites/:slug/proxy, or the site's Settings in the dashboard.

Keep files in a Drive

A Drive is a private cloud folder on your account. Nothing in it is public. Agents use it to keep files that aren't a website between sessions and tools: notes, memory, plans, research, context, images and data. Every account has one called My Drive, and you can make up to 20.

  • Use a Drive for files to keep or hand to another agent. Use Publish for files people should open in a browser now. Use Site Data for what visitors send through a site.
  • Every change is saved as a new version. Replaced and deleted files stay readable for 30 days.
  • Share a Drive, or one folder in it, with a token: read-only or read and write, for as long as you choose. Revoking a token stops it at once.
  • Publish any folder of a Drive as a website in one step.

With the skill

drive.sh
bash
$ drive.sh ls                              # what's in My Drive$ drive.sh put plan.md plans/launch.md     # save a file (prints its etag)$ drive.sh cat plans/launch.md             # read it back$ drive.sh import ./research research/     # a whole folder; unchanged files are skipped$ drive.sh export research/ ./copy$ drive.sh mv plans/launch.md plans/done/launch.md$ drive.sh rm drafts -r                    # a whole folder$ drive.sh share --perms read --prefix research/ --ttl 7d$ drive.sh revoke dtok_…$ drive.sh publish site/                   # the site/ folder becomes a website

Another agent uses a shared token with BIGANGELS_DRIVE_TOKEN=drv_live_… and the same commands. It only reaches that Drive, and only the folder it was given.

Two agents, one file

Each file has an ETag that changes whenever the file does. Read the file, then write with If-Match set to that ETag. If someone changed it in between, the write is refused with 412 and nothing is overwritten: read it again, merge, and retry. If-None-Match: * only creates a file that doesn't exist yet. To make a change only if nothing in the Drive changed, send the Drive version you read as baseVersionId (or the X-Drive-Base-Version header).

Write a small file, safely
bash
$ curl -X PUT https://api.bigangels.app/api/v1/drives/default/files/notes/today.md \$   -H "Authorization: Bearer <key or drive token>" \$   -H 'If-Match: "<etag you read>"' --data-binary @today.md$ # 200: saved, with the new etag   412 etag_mismatch: it changed, read it again

API

Use your API key, or a Drive token (drv_live_…) someone shared with you. default works in place of a Drive id. Paths are relative, like notes/today.md; .., backslashes, empty folder names and right-to-left override characters are refused. Accented names are stored in one standard form (NFC), so café is the same file whichever keyboard typed it.

  • GET https://api.bigangels.app/api/v1/drives lists your Drives and storage used. POST with {"name"} creates one. GET https://api.bigangels.app/api/v1/drives/default returns My Drive (created if missing).
  • GET, PATCH ({"name", "description", "isDefault"}) and DELETE https://api.bigangels.app/api/v1/drives/:driveId. A deleted Drive can be brought back for 7 days with POST /drives/:driveId/restore, if its files fit in the storage you have left. The default Drive can't be deleted.
  • GET https://api.bigangels.app/api/v1/drives/:driveId/files: files sorted by path. prefix, limit (up to 1,000), cursor (the nextCursor you got), version (an older dv_… version), and delimiter=/ to get the files and folders directly inside prefix.
  • GET or HEAD https://api.bigangels.app/api/v1/drives/:driveId/files/:path: the file, with ETag, Content-Type and X-Drive-Version headers. ?version=dv_… reads an older version, ?download for a download, ?metadata for details plus a short-lived download link. If-None-Match gives 304.
  • PUT https://api.bigangels.app/api/v1/drives/:driveId/files/:path: write up to 10 MB from the request body. Takes If-Match, If-None-Match: * and X-Drive-Base-Version.
  • DELETE https://api.bigangels.app/api/v1/drives/:driveId/files/:path: delete a file (If-Match honoured). Add ?recursive=1 to delete a folder.
  • POST https://api.bigangels.app/api/v1/drives/:driveId/files/move with {"from", "to", "ifMatch"?, "overwriteIfMatch"?}. Paths ending in / move a whole folder. Moving onto an existing file needs overwriteIfMatch with that file's ETag.
  • PATCH https://api.bigangels.app/api/v1/drives/:driveId/files with {"ops": [...], "baseVersionId"?}: up to 50 operations as one version, all or nothing. Each op is write or create ({path, content, encoding?: "base64"} or {path, uploadId}), delete ({path, recursive?}) or move ({from, to}), with ifMatch where it applies.
  • POST https://api.bigangels.app/api/v1/drives/:driveId/files/download-url with {"path"}: a link anyone can open for 15 minutes (ttlSeconds up to an hour), pinned to that version of the file.
  • GET https://api.bigangels.app/api/v1/drives/:driveId/versions: recent changes, newest first.

Large files: stage, upload, commit

1. Stage
bash
$ curl -X POST https://api.bigangels.app/api/v1/drives/default/files/uploads -H "Authorization: Bearer <key>" \$   -H "Content-Type: application/json" \$   -d '{"path": "videos/demo.mp4", "size": 48213211, "sha256": "<shasum -a 256>", "ifMatch": "<etag>"}'$ # { "uploadId": "dup_…", "uploadRequired": true, "url": "<signed PUT url>", "headers": {…} }
2. Upload (skip if uploadRequired is false)
bash
$ curl -X PUT "<url>" -H "Content-Type: video/mp4" --data-binary @demo.mp4
3. Commit
bash
$ curl -X POST https://api.bigangels.app/api/v1/drives/default/files/finalize -H "Authorization: Bearer <key>" \$   -H "Content-Type: application/json" -d '{"uploadId": "dup_…"}'

The SHA-256 is required. Bytes that don't match it are refused, and a file the Drive already holds needs no upload at all. Upload links last an hour; an upload that is never committed is forgotten after two. Several staged uploads can be committed together with PATCH /files and {op: "write", path, uploadId}.

Share tokens

Make a token
bash
$ curl -X POST https://api.bigangels.app/api/v1/drives/:driveId/tokens -H "Authorization: Bearer <key>" \$   -H "Content-Type: application/json" \$   -d '{"perms": "read", "pathPrefix": "research/", "ttl": "7d", "label": "review agent"}'$ # { "token": "drv_live_…", "tokenInfo": { "id": "dtok_…", … } }   shown once
  • perms is "read" or "write". pathPrefix limits the token to one folder. ttl is like "30m", "12h" or "7d" (up to a year); leave it out for no expiry.
  • manageTokens: true lets the token make narrower tokens: no more access, the same folder or one inside it, expiring no later than itself. It can list and revoke only the tokens it made.
  • GET https://api.bigangels.app/api/v1/drives/:driveId/tokens lists tokens (never their secrets). DELETE https://api.bigangels.app/api/v1/drives/:driveId/tokens/:tokenId revokes one and every token made from it, from the next request on. Download links made with a revoked token stop working too.
  • Tokens can't create, rename or delete Drives, can't publish sites, and can't reach any other Drive. Deleting a Drive revokes all its tokens.

Publish a website from a Drive

Publish the site/ folder
bash
$ curl -X POST https://api.bigangels.app/api/v1/publish -H "Authorization: Bearer <key>" -H "Content-Type: application/json" \$   -d '{"fromDrive": {"driveId": "default", "prefix": "site/"}, "displayName": "Launch page"}'$ # { "live": true, "siteUrl": "https://….bigangels.site/", "slug": "…", "driveVersionId": "dv_…", "filesCount": 12 }
  • The folder's contents become the site root. Leave prefix out to publish the whole Drive.
  • Add "version": "dv_…" to publish the Drive as it was then, and "slug" to update one of your sites instead of creating a new one. spaMode, displayName, crossOriginIsolation and folder work as on any publish.
  • Files are copied into the site, so later Drive changes never change the site. Republishing copies only the files that changed.
  • POST https://api.bigangels.app/api/v1/publish/from-drive takes the same fields at the top level ({"driveId", "prefix", "versionId", "slug"}).

Limits

  • Storage, shared by all your Drives: 500 MB on Free, 5 GB on Creator, 50 GB on Pro. Only current files count, not older versions.
  • Older versions are kept for 30 days, up to as much again as your storage. Past that, the oldest replaced or deleted files are let go first.
  • Each file: up to 25 MB on Free, 100 MB on Creator and Pro. Up to 10 MB in a single PUT or batch; use staged uploads above that.
  • 20 Drives per account, 10,000 files per Drive, 100 active tokens per Drive, 512 characters per path.
  • 413 storage_full or file_too_large names what to delete or upgrade. 412 means a precondition failed; 409 destination_exists means a move would overwrite a file.

MCP connector

Agents that speak MCP (Claude, ChatGPT, Cursor and others) connect to https://api.bigangels.app/mcp. The server uses OAuth 2.1 (authorization code + PKCE) with protected-resource metadata at https://api.bigangels.app/.well-known/oauth-protected-resource/mcp. Clients register dynamically or use credentials from a prior registration.

  • stage_publish / stage_update: file manifest only (path, size, contentType, optional hash) — returns signed PUT URLs in uploads[], skipped[], and a finalize hint.
  • finalize_publish: after every uploads[] PUT succeeds, returns siteUrl.
  • publish_site / update_site: tiny UTF-8 text only (under 512 KB, no base64); use the stage flow for images, PDFs, and larger sites.
  • get_site: the URL, expiry, settings (who can view as accessMode, password, app mode, cross-origin isolation) and files of a site.
  • list_site_data: what visitors saved on one of your sites (form entries, RSVPs, scores). Read-only.
  • list_versions: a site's history, newest first, with which version is live.
  • restore_version: put an earlier version back live, instantly. Restoring the previous one undoes it.
  • duplicate_site: copy one of your sites to a new link (files, settings, Site Data collections and proxy routes; not entries, the password or who can view).
  • list_variables and set_variable: the names of your variables (never their values), and saving one for proxy routes.
  • search_sites: find one of your sites by its name, address, file names or the words on its pages.
  • list_folders and move_site_to_folder: see your folders and file a site (a new folder name is created).
  • drive_list, drive_read, drive_write: keep small text files (up to 256 KB), such as notes and memory, in your private Drive between conversations. drive_write takes the etag from drive_read as ifMatch, so it never overwrites a newer change.

Recommended MCP flow matches the HTTP API: manifest → PUT each file to its signed URL (exact Content-Length and Content-Type) → finalize.

PUT after stage_publish (from uploads[0])
bash
$ curl -sS -X PUT "<upload.url>" \$   -H "Content-Type: image/png" \$   --data-binary @assets/logo.png

When you add the connector, choose OAuth if the client offers it. The browser opens BigAngels to sign in with your email code, then returns to the app with an access token. You can still use Authorization: Bearer <api key> from Settings → API keys (same tools, no browser step).

Cursor / Claude Desktop (HTTP transport)
json
{
  "mcpServers": {
    "bigangels": {
      "type": "http",
      "url": "https://api.bigangels.app/mcp"
    }
  }
}

ChatGPT: Settings → Connectors → New connector. Paste the MCP URL, set Authentication to OAuth, and complete sign-in when prompted. Use stage_publish and HTTP PUT for binary and large files; inline publish_site is for small UTF-8 text only.

Limits

  • 500 files per site, 25 MB per file, 100 MB per site.
  • Drives: 500 MB on Free, 5 GB on Creator, 50 GB on Pro, shared by all your Drives. See Keep files in a Drive.
  • Anonymous previews go offline 6 hours after publishing and can be claimed for 7 days after that.
  • Upload URLs are valid for one hour. Ask for new ones with POST /publish/:slug/uploads/refresh.
  • Each feature lists its own limits in its section: Site Data, proxy routes and variables, specific people, folders, buying domains and Drives.
  • Errors are JSON: { "error": "a sentence for people", "code": "a_code_for_programs" }.

This page as Markdown: https://bigangels.app/docs.md (also https://bigangels.app/llms-full.txt). Agent discovery: https://bigangels.app/llms.txt and https://bigangels.app/llm-info.txt.