🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Buy Domain Helper

by @wohaoshuai

3-layer site launcher: tunnel any HTML instantly (no account), deploy to Cloudflare Pages (permanent), then buy a domain and link it via DNS. Use when a user...

Versionv1.5.0
Downloads972
TERMINAL
clawhub install buy-domain-helper

πŸ“– About This Skill


name: buy-domain-helper description: | 3-layer site launcher: tunnel any HTML instantly (no account), deploy to Cloudflare Pages (permanent), then buy a domain and link it via DNS. Use when a user wants to share a local page, host a site, or get a custom domain live. version: 1.0.0 metadata: openclaw: requires: env: [] bins: - node - cloudflared - wrangler emoji: "🌐" homepage: https://github.com/wohaoshuai/buy-domain-helper

Buy Domain Helper

3 layers β€” pick the depth that fits the user's need:

| Layer | What it does | Needs | |-------|-------------|-------| | 1 β€” Tunnel | Instant public URL for any local dir or port | Nothing (cloudflared auto-installs) | | 2 β€” Pages | Permanent hosting on *.pages.dev | Cloudflare account + Pages token | | 3 β€” Domain | Custom domain linked to Pages via DNS | Domain purchased + DNS token |

Helper script

node site.js  [--token CF_API_TOKEN] [--account CF_ACCOUNT_ID]

| Command | Layer | Description | |---------|-------|-------------| | tunnel | 1 | Instant public URL via Cloudflare Tunnel | | deploy

| 2 | Deploy to Cloudflare Pages | | zone | 3 | Get zone ID for a domain | | dns-link | 3 | Add CNAME pointing domain to Pages | | pages-domain | 3 | Attach custom domain to Pages project | | domain-check | 3 | Check availability on Cloudflare Registrar |

Setup

  • Layer 1: No setup. cloudflared installs automatically via Homebrew if missing.
  • Layer 2: Needs a Cloudflare API token with Account > Cloudflare Pages > Edit permission.
  • Layer 3: Needs a separate token with Zone > DNS > Edit permission for the specific domain.
  • Create tokens at: https://dash.cloudflare.com/profile/api-tokens

    βš™οΈ Configuration

  • Layer 1: No setup. cloudflared installs automatically via Homebrew if missing.
  • Layer 2: Needs a Cloudflare API token with Account > Cloudflare Pages > Edit permission.
  • Layer 3: Needs a separate token with Zone > DNS > Edit permission for the specific domain.
  • Create tokens at: https://dash.cloudflare.com/profile/api-tokens