ngrok-preview

Generate short-lived, mobile-friendly ngrok preview links for local artifacts and share them in Telegram. Use when OpenClaw produces images/charts/generated files that the user needs to view remotely on phone, and a temporary per-task link is preferred over manual file transfer.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ngrok-preview" with this command: npx skills add ngrok-preview

ngrok-preview

Provide a temporary preview window for task outputs. Keep it fast, scoped, and easy: generate link -> send link -> close link.

One-time setup

  1. Install ngrok if missing.
  2. Configure auth token once:
ngrok config add-authtoken "$NGROK_AUTHTOKEN"
ngrok config check

If token is not preconfigured, pass --auth-token when running the script.

Per-task workflow

  1. Collect only task artifacts (images/charts/files) for this request.
  2. Create a session-scoped temporary preview link.
  3. Send the link with explicit expiry in Telegram.
  4. Stop and delete the preview session after user confirms or task ends.

Use this command from the skill directory:

python3 scripts/ngrok_preview.py up \
  --title "<task title>" \
  --session-id "<task-id>" \
  --ttl-minutes 120 \
  --source "<artifact-path-1>" \
  --source "<artifact-path-2>"

The command returns JSON including:

  • public_url
  • expires_at
  • session_id
  • stop_command

Session ID convention (context binding)

Use IDs that map to the current conversation/task:

  • tg-<date>-<topic>
  • task-<short-request-id>

This keeps each link tied to one task context.

Telegram send pattern

After up succeeds, send a concise message:

🔗 Temporary preview link (valid for <X> minutes)
<public_url>

Scope: artifacts from this task only
This link will be cleaned up after expiry

If not currently in Telegram, still return the same link format in the active channel.

Safety boundaries

  • Publish only task-specific outputs, never broad directories (do not expose workspace root).
  • Keep TTL short (default 120 minutes; use shorter when possible).
  • Treat link as temporary access, not persistent hosting.
  • Stop session when no longer needed:
python3 scripts/ngrok_preview.py down --session-id "<task-id>" --delete-session-dir
  • Periodically clear expired sessions:
python3 scripts/ngrok_preview.py cleanup

Command quick reference

# List sessions
python3 scripts/ngrok_preview.py status

# Create preview (auto-generate session id)
python3 scripts/ngrok_preview.py up \
  --title "image results" \
  --source ./outputs/result-1.png \
  --source ./outputs/result-2.png

# Stop latest session
python3 scripts/ngrok_preview.py down

Troubleshooting

If link creation fails, check references/troubleshooting.md and follow the minimum recovery sequence.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Clawpet

Virtual pet game (Tamagotchi-style) with Telegram Mini App, social visits, friendship, playdates, mortality. When user asks for /pet or virtual pet, reply wi...

Registry SourceRecently Updated
450Profile unavailable
General

Morning Brief · 每日AI早报

每日AI早报。抓取多路信源(HuggingFace Blog、人人都是产品经理、blogwatcher订阅、36氪/知乎/Reddit/Twitter工具网关),LLM智能筛选最有价值的10条,推送到Telegram。内置OpenRouter榜单快照。使用场景:每天定时生成个性化AI资讯早报,过滤低信噪比内容,突...

Registry SourceRecently Updated
1020Profile unavailable
General

Topic Selection Expert

选题专家:全网热点监控 → 筛选打分 → 初步三要素 → 写入飞书选题库 → 推送Telegram。Use when user asks to 启动选题专家 / 获取选题推荐 / 查看热点 / 帮我选题。

Registry SourceRecently Updated
3490Profile unavailable
General

Digen Ai Free

DigenAI image and video generation for OpenClaw. Supports image-to-video and text-to-image. Video generation via api.cowork.digen.ai with Bearer token. Trigg...

Registry SourceRecently Updated
1291Profile unavailable