# BigAngels

> BigAngels publishes static files and folders to a live URL in seconds — sites, demos, reports, PDFs, and exports on `*.bigangels.site`. When the user says **"Publish this to BigAngels"** or **"publish with BigAngels"**, install the skill (or connect MCP) and run `publish.sh` or MCP `stage_publish` — **no account required**, but the preview **goes offline after 6 hours**; the user can claim it within 7 days (`keep it:` link) to bring it back for good. **Publish first**; sign in only when the user wants to keep sites permanently (free: 5 sites, 500 MB storage).

BigAngels is built for AI agents: a skill (`SKILL.md` + `publish.sh` + `login.sh`) for terminals, and an MCP server for OAuth-only clients. Do not call the REST API with raw `curl` unless you implement the full create → upload → finalize flow, including the private claimToken when anonymous. Prefer the skill scripts on the user's machine.

## Trigger phrases

- [User intent](https://bigangels.app/): "Publish this to BigAngels", "publish with BigAngels", "host this on BigAngels", "deploy to BigAngels", "put this online with BigAngels"

## Start here (agents)

- [llm-info.txt](https://bigangels.app/llm-info.txt): one-screen facts — install, auth, publish steps, claim behavior
- [llms-full.txt](https://bigangels.app/llms-full.txt): complete docs (Markdown; same content as [Docs (Markdown)](https://bigangels.app/docs.md))
- [Docs (Markdown)](https://bigangels.app/docs.md): full API, MCP, limits, and sign-in flows
- [Install guide](https://bigangels.app/install): human-readable setup for Claude, Cursor, ChatGPT, and Codex
- [Skill repository](https://github.com/attentionfactory/bigangels-skill): `SKILL.md` and shell scripts (`publish.sh`, `login.sh`)

## Install (skill — recommended)

- [install.sh](https://bigangels.app/install.sh): `curl -fsSL https://bigangels.app/install.sh | bash` — copies the skill into agent skills folders
- [npx skills](https://bigangels.app/install#skill): `npx skills add attentionfactory/bigangels-skill --skill bigangels -g` when npm is available

After install, read the skill's `SKILL.md` and run `publish.sh <file-or-folder>`. Show the public website before asking for sign-in. Use `--anonymous` to ignore saved credentials. Return only the `published:` URL after finalize (HTTP 2xx verified).

## MCP (OAuth)

- [MCP endpoint](https://api.bigangels.app/mcp): HTTP MCP for Cursor Settings, Claude.ai, ChatGPT connectors — OAuth sign-in (`ba_oat_*`) or `Authorization: Bearer ba_live_*`
- [MCP setup](https://bigangels.app/install#mcp): merge server URL in client config; tools include `stage_publish`, `stage_update`, `finalize_publish`, `get_site`, `list_site_data` (read form entries), tiny-text `publish_site` / `update_site`, `read_site_file` (read a live file to edit it), `list_versions`, `restore_version`, `duplicate_site`, `search_sites`, `list_folders`, `move_site_to_folder`, `list_variables`, `set_variable` (secrets for proxy routes), `drive_list`, `drive_read`, `drive_write` (private Drive files: notes, memory, context)

MCP and the skill share the same backend; do not mix `publish.sh` and MCP in one publish unless the user is testing MCP explicitly.

## Sign in right in the chat (to keep sites permanently)

You can sign the person in without leaving the conversation, no browser needed. Any agent that can make HTTP requests:

1. Ask for their email (only once they want to keep a site).
2. `POST https://api.bigangels.app/api/v1/auth/request-code` with `{ "email" }`. BigAngels emails them a code.
3. Ask them to paste the code from their inbox into the chat.
4. `POST https://api.bigangels.app/api/v1/auth/verify-code` with `{ "email", "code", "keyName": "<your-tool>" }` → `apiKey` (shown once). A new email creates a free account.
5. Store the key privately (`~/.bigangels/credentials`) and send `Authorization: Bearer <key>`. Then `POST /claim` any preview you made in this chat.

- [Details](https://bigangels.app/docs#sign-in): codes expire after 15 minutes; five wrong codes cancel one
- With the skill: `login.sh --status` (exit 0 = signed in), `login.sh --email you@example.com` then `login.sh --email you@example.com <code>`, or `login.sh --browser`
- MCP-only apps (Claude.ai, ChatGPT): sign-in happens once, when the person approves the connector
- [Dashboard](https://bigangels.app/signup): free account — permanent sites, dashboard, API keys

Never paste API keys or claim tokens into chat.

## Publish workflow (skill)

1. `publish.sh ./path` — works without sign-in (offline after 6h; claim within 7 days to bring it back); optional `--spa`, `--name "Title"`, `--new`, `--anonymous` (ignore saved credentials)
2. `login.sh --status` then publish again when the user wants a permanent site on their account
3. Give the user the `published:` link only after finalize succeeds

Per-site limits: 500 files, 25 MB per file, 100 MB total. Static hosting only (use `dist/`, `out/`, not raw Next.js server output).

## REST API (advanced)

- [API base](https://api.bigangels.app/api/v1): `POST /publish` (optional auth → **201** anonymous preview with `claimToken`) → PUT uploads → `POST /publish/:slug/finalize` (`claimToken` when anonymous; **401** without Bearer when finalizing or updating an **account-owned** site)
- [Claim site](https://api.bigangels.app/api/v1/claim): `POST` with `claimToken` while signed in
- [Recover device publishes](https://api.bigangels.app/api/v1/me/recoverable-sites): `GET` with `X-BigAngels-Publish-Device` after sign-in; `POST /me/claim-recoverable` with `{ slugs }`

## Read a site's files (to edit what's live)

- [Files API](https://bigangels.app/docs#files): `GET https://api.bigangels.app/api/v1/sites/:slug/files` lists the live files (path, size, contentType, hash, url); `GET .../files/<path>` returns the bytes. Owners send their key; anonymous previews send `X-Claim-Token`
- Republish with each file's SHA-256 `hash`: unchanged files are skipped (`upload.skipped`) and only edits upload

## Machine-readable

- [OpenAPI 3.1](https://api.bigangels.app/openapi.json): the whole public API
- [agent.json](https://bigangels.app/.well-known/agent.json): capabilities, sign-in flow, API, MCP, skill and docs in one file (also `agent-card.json`, `ai-plugin.json`, `api-catalog` under `/.well-known/`)
- [pricing.md](https://bigangels.app/pricing.md): plans and limits

## Optional

- [Pricing](https://bigangels.app/pricing): Free, Creator, Pro plans
- [Terms](https://bigangels.app/terms): service terms
- [Privacy](https://bigangels.app/privacy): privacy policy
- [llms.txt spec](https://llmstxt.org/): format reference for this file

## Starter prompt (copy to a new agent chat)

```text
I'd like you to set up BigAngels: instant hosting for anything I make with you.

If you can run commands, install the skill: npx skills add attentionfactory/bigangels-skill --skill bigangels -g
Without npm, run this instead: curl -fsSL https://bigangels.app/install.sh | bash
Then read the skill's SKILL.md.

Publish without asking me to sign in. Reuse a valid saved sign-in if there is one; otherwise create a public six-hour preview and show me its published: URL. Use publish.sh --anonymous only when I ask for an anonymous preview.

Only when I want to keep a site, sign me in right here in the chat: ask for my email, send me a code (scripts/login.sh --email, or POST https://api.bigangels.app/api/v1/auth/request-code), wait for me to paste the code, then verify it. Use scripts/login.sh --browser only if I'd rather use a browser.

Never show API keys or claim tokens in the chat.

Before changing a site that's already live, read its current files first (GET https://api.bigangels.app/api/v1/sites/<slug>/files) instead of guessing, then republish to the same site.

If you can't run commands but can make web requests, use the API directly: https://api.bigangels.app/openapi.json. If you can't do either, guide me through connecting https://api.bigangels.app/mcp in this app's connector settings. If none of that works here, tell me plainly and give me the finished files to take to an agent that can publish.

Read https://bigangels.app/llms.txt for how BigAngels works, then ask me what I'd like to publish.
```
