cloudflare-temporary-deploy
Skill này làm gì
Skill này giúp AI của bạn đưa một ứng dụng web nhỏ hoặc Worker lên một địa chỉ trực tuyến mà không cần tạo tài khoản Cloudflare trước. Phù hợp với người muốn có một liên kết chia sẻ nhanh hoặc một bản triển khai thử nghiệm nhanh.
Khi nào nên dùng
- ✓Khi bạn muốn AI triển khai một trang hoặc ứng dụng lên một liên kết trực tiếp mà không đăng ký tài khoản Cloudflare.
- ✓Khi bạn muốn một nguyên mẫu trực tuyến nhanh mà sau này có thể nhận vào tài khoản của bạn.
- ✓Khi bạn muốn một vòng lặp triển khai và kiểm tra tự động trong một phiên nền.
Liên kết skill
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/web-development/cloudflare-temporary-deploy/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Triển khai trang nhỏ này lên Cloudflare và cho tôi một liên kết trực tiếp để mở ngay.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill chạy công cụ wrangler với cờ tạm thời. Cloudflare tạo một tài khoản tạm, triển khai code và in ra một liên kết nhận quyền có hiệu lực trong 60 phút.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Cloudflare Temporary Deploy Skill
Deploy a Cloudflare Worker to a live workers.dev URL with zero account setup, using wrangler deploy --temporary. Cloudflare provisions a throwaway account, deploys, and prints a claim URL valid for 60 minutes; unclaimed accounts auto-delete. This gives an agent a tight write → deploy → verify loop without any OAuth, signup, or token copy-paste.
This skill does NOT cover production deploys (use wrangler login + a permanent account for those), nor non-Worker Cloudflare products beyond the temporary-account limits below.
When to Use
Load this skill when the user wants to:
- Ship agent-written code to a live URL without first creating a Cloudflare account — "deploy this and give me a link"
- Iterate in a background/autonomous session where a browser OAuth step would be a hard stop
- Prototype or evaluate Workers quickly with a throwaway, claimable target
- Build a self-verifying deploy loop — deploy,
curlthe live URL, confirm output matches the code, redeploy
When NOT to Use
- Production or CI/CD → use a permanent account (
wrangler loginorCLOUDFLARE_API_TOKEN).--temporaryerrors out if any credential is present. - Wrangler is already authenticated →
--temporaryreturns an error by design. Runwrangler logoutfirst only if the user explicitly wants a throwaway deploy. - Long-lived hosting → temporary deployments are deleted after 60 minutes unless claimed.
Prerequisites
- Wrangler 4.102.0 or later. This is the version that introduced
--temporary. Earlier versions do not have it. Verify withnpx wrangler@latest --version. - Node 18+ / npm (or
npx,yarn,pnpm). No global install needed —npx wrangler@latestworks. - No Cloudflare credentials present.
--temporaryonly works when Wrangler is unauthenticated: no OAuth login, noCLOUDFLARE_API_TOKEN/CLOUDFLARE_API_KEYenv var, no~/.wrangler/~/.config/.wranglercached OAuth. Use theterminaltool's environment as-is; do not set those vars. - Network egress to
cloudflare.comandworkers.dev. - Using
--temporaryaccepts Cloudflare's Terms of Service and Privacy Policy.
How to Run
Use the terminal tool for every step. Always pin the version (wrangler@latest or wrangler@4.102.0 or newer) so you don't accidentally run an old global wrangler that lacks the flag.
Scaffold a minimal Worker (skip if the project already exists). A Worker needs a
wrangler.toml(orwrangler.jsonc) and an entry script. Minimal TypeScript example — write these withwrite_file:wrangler.jsonc:{ "name": "hello-agent", "main": "src/index.ts", "compatibility_date": "2025-01-01" }src/index.ts:export default { async fetch(): Promise<Response> { return new Response("hello cloudflare"); }, };Deploy with
--temporaryfrom the project directory:npx wrangler@latest deploy --temporaryThe proof-of-work check adds a short automatic delay. On success Wrangler prints an
Account: <name> (created)(or(reused)) line, aClaim URL, and the livehttps://<worker>.<account>.workers.devURL.Parse the URLs from that output. Run the helper to extract them reliably instead of eyeballing:
npx wrangler@latest deploy --temporary 2>&1 | python scripts/parse_deploy_output.py(Resolve
scripts/parse_deploy_output.pyto this skill's absolute path.) It prints JSON:{"live_url", "claim_url", "account", "account_state", "expires_minutes", "deployed"}.Verify the deploy is actually live — do not trust the deploy log alone.
curlthe live URL and confirm the body matches what the code returns:curl -sS <live_url>Iterate. Edit the code, redeploy with the same
npx wrangler@latest deploy --temporary. Within the 60-minute window Wrangler reuses the cached temporary account (Account: <name> (reused)), so the URL stays stable.curlagain to confirm the change.Hand the claim URL to the user. Tell them: open it within 60 minutes to keep the deployment and any resources; if they don't claim it, everything auto-deletes. Treat the claim URL as a secret — it grants ownership of the account.
Quick Reference
| Step | Command |
|---|---|
| Check version (need 4.102.0+) | npx wrangler@latest --version |
| Deploy (no account) | `npx wrangler@latest deploy --tempora |
Câu hỏi thường gặp
Liên kết tồn tại bao lâu?
Skill nói liên kết nhận quyền có hiệu lực trong 60 phút, và các tài khoản chưa được nhận sẽ tự động bị xóa.
Tôi có thể dùng cho trang sản xuất không?
Không. Skill nói triển khai sản xuất nên dùng tài khoản lâu dài, và tùy chọn tạm thời sẽ lỗi nếu có thông tin xác thực.
Nếu tôi đã đăng nhập Wrangler thì sao?
Skill nói triển khai tạm thời sẽ trả về lỗi trong trường hợp đó, và bạn cần đăng xuất nếu muốn một bản triển khai dùng một lần.
Chi tiết
Mô tả gốc của tác giả
Deploy a Worker live, no account, via wrangler --temporary.
Độ phổ biến
- Sao GitHub
- 260k
- Vị trí xếp hạng
- #577
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-merge-conflict-arbiter
260kGiải quyết xung đột merge git giữa nhánh của hai agent với vai trò bên trung lập, tạo ra một kết quả merge duy nhất cho repo.
antigravity-cli
260kHướng dẫn bạn cài đặt, cập nhật và khắc phục sự cố công cụ dòng lệnh Antigravity, gồm plugin, đăng nhập và sandbox.
blackbox
260kCho phép agent của bạn giao một tác vụ lập trình cho công cụ dòng lệnh Blackbox AI, công cụ chạy nhiều mô hình và chọn kết quả tốt nhất.
dynamic-workflow
260kDạy agent của bạn chạy các đợt công việc tương tự lớn như một script đã lưu, để chỉ kết quả đã kiểm chứng mới quay về cuộc trò chuyện chính.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.