These are instructions for you (an AI coding agent) to help the user deploy a static UI with dayzero.run — in the same chat when possible.

Preferred bootstrap URL: https://dayzero.run/ai.md

## Product

- Name: dayzero.run
- CLI command: d0
- Site: https://dayzero.run/
- npm package: `@dayzero_run/d0`
- GitHub: https://github.com/dayzero-run/cli
- Purpose: Publish a static / vibe-coded UI to a public HTTPS subdomain in seconds
- Works with: Claude Code, Cursor, OpenAI Codex, and other CLI-capable agents

## Quick setup

1. Read the full agent playbook (keep it as your source of truth):
   https://dayzero.run/for-agents.md

2. Install the d0 CLI with npm:

   npm i @dayzero_run/d0

   or:

   curl -fsSL https://dayzero.run/install.sh | bash

   For one-off commands without a global install, use `npx @dayzero_run/d0 <command>`.

3. Authenticate (non-interactive — preferred):

   Ask the user for their API token from https://dayzero.run/ (register or dashboard).
   Then run:

   d0 token <API_TOKEN>

   Or set VIBEPAGE_TOKEN in the environment and skip `d0 token`.

4. From the project directory, deploy the static UI (index.html, or dist/ / build/):

   d0 deploy

   Optional sharing:
   - `d0 deploy` or `d0 deploy public` — site is public (default)
   - `d0 deploy private` — site requires a 6-digit access code (printed in CLI)
   - `d0 public` / `d0 private` — change sharing without redeploying

5. Read the CLI output for "Live at: https://….app.vibepage.cloud/" and give that URL to the user.
   If private, also give them the printed access code.

## Limits

- Static UI hosting only (frontend / built static output).
- Do not ask the user to create an AWS account or set up SSH.
- Do not invent extra CLI commands — only: token, deploy, public, private, tunnel, status.
- Do not put the API token into public git commits or screenshots.

## Optional live demo tunnel

If the user is running a local server (for example on port 3000):

   d0 tunnel

Traffic to the same public subdomain routes to localhost until the tunnel stops, then falls back to the last static deploy.

## More context

- Agent playbook: https://dayzero.run/for-agents.md
- Short index: https://dayzero.run/llms.txt
- Full product text: https://dayzero.run/llms-full.txt
- CLI docs: https://dayzero.run/documentation.html
- GitHub CLI repository: https://github.com/dayzero-run/cli
