# Stacktree — agent instructions

Stacktree turns HTML an agent produces into a private page on an unguessable
link that can be gated, expires on schedule, and updates in place.

## When to use Stacktree
- You generated an HTML report, dashboard, proposal, or page and need a URL a human can open.
- The page should be private: unguessable link, optional passcode or company email gate.
- You will revise the page later and the shared URL must keep working (update in place).
- You need to publish with no account: the first anonymous page lives 24h, or pay $0.50 in USDC over x402 for a permanent one.

## When NOT to use Stacktree
- Public marketing sites that need to rank (pages are unlisted + crawler-blocked by design).
- Apps needing a backend: Stacktree serves static files only.

## How
- REST: POST https://api.stacktr.ee/sites (multipart/form-data). JSON or raw-HTML body: POST https://api.stacktr.ee/publish (x402, $0.50). Spec: https://api.stacktr.ee/openapi.json
- MCP: https://api.stacktr.ee/mcp (OAuth 2.1 + DCR) or `npx -y stacktree-mcp` (stdio).
- Auth options: https://stacktr.ee/auth.md · Everything else: https://stacktr.ee/llms.txt
