Skip to content

Packs / cloudflare-public

tunnel-quick

Expose a local port on a temporary https://*.trycloudflare.com URL with no account or key, plus the 'fast share' pattern (unguessable path on a static server behind a named tunnel).

Install

logicpacks pack use cloudflare-public/tunnel-quick
get_pack cloudflare-public/tunnel-quick

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: trycloudflare
  • Checks: 4 in outcome/checks.yaml
  • Code: e2e_check.shfast_share.shquick_tunnel.sh
  • Tools: cloudflared, curl, python3, dig

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Expose a local port on a temporary https://*.trycloudflare.com URL with no account or key, plus the 'fast share' pattern (unguessable path on a static server behind a named tunnel).

Goal

A local service or file is reachable over HTTPS from anywhere within a minute, and the link stops working when you stop sharing.

Routes (free first)

  1. trycloudflare (free): sh code/quick_tunnel.sh <port> - no account, no key

Steps

  1. Start your service on 127.0.0.1:.
  2. Run sh code/quick_tunnel.sh <port>; it prints the trycloudflare URL and keeps the tunnel open (Ctrl-C to close).
  3. Wait a few seconds before sharing the link: a brand-new hostname can take 5-20 s to resolve, and a resolver that was asked too early may cache the miss for minutes (the e2e check pins curl to an address from 1.1.1.1 for this reason).
  4. For links that must last (phone, another person, days): use a named tunnel (tunnel-named pack) with a fixed hostname and the fast-share pattern: SHARE_ROOT=... SHARE_BASE_URL=https://share.<your-domain> sh code/fast_share.sh <file> makes an unguessable 16-char path per share.
  5. Stop sharing: kill the tunnel (quick) or delete $SHARE_ROOT/<token> (fast share).

Edge cases

  • Quick tunnels have no uptime guarantee and a new random URL every start; never put one in a config that outlives the session.
  • Quick tunnels do not support Server-Sent Events well and cap request time; use a named tunnel for long requests.
  • If cloudflared finds a config.yml in ~/.cloudflared, quick mode may refuse to start: run from a clean HOME or pass --config /dev/null.
  • Unguessable paths are not authentication: for private material add Cloudflare Access (access-app pack) or Basic auth on the static server.

Don'ts

  • Don't expose admin panels, databases or SSH over a quick tunnel.
  • Don't bake usernames/passwords into share links.
  • Don't share files you were not asked to share.