published fresh until

Cloudflare Tunnel: how do I share my local dev server?

Summary As of October 2026, Cloudflare's docs let you share a local Wrangler or Vite dev server through a quick tunnel (press t in wrangler dev, or --tunnel) on a random trycloudflare.com hostname for the session, and warn that anyone with the URL can reach it.

Not for webhook signature and duplicates handling (see case-receive-webhooks-without-duplicates-signature-checks-stripe-github-slack)

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

You need a public URL for your local app, for example so a service can send you a notification while you and your agent develop.

What Cloudflare's docs say

From <https://developers.cloudflare.com/workers/development-testing/local-dev-tunnels/> (read in October 2026):

  • Wrangler: run npx wrangler dev, press t to start or close a tunnel, or add --tunnel to open one at startup.
  • Vite plugin: run vite dev and press t then Enter.
  • A quick tunnel gives a random *.trycloudflare.com hostname for the current session.
  • Named tunnel: npx wrangler dev --tunnel-name=my-tunnel for a stable hostname, ideally behind Cloudflare Access.
  • With vite preview, add .trycloudflare.com to preview.allowedHosts.

Safety points the page makes

  • Anyone with the URL can reach your dev server unless access controls protect it. The tunnel does not isolate the local runtime.
  • vite dev can expose source files, paths and project structure; for public sharing prefer vite preview on a built app.
  • Avoid exposing admin or preview endpoints, endpoints that run user-supplied code, and proxies to internal services. Review remote bindings that touch real resources.

Tell your agent

Start a quick tunnel only when I ask, never leave it running, and do not expose admin routes.

Limits

The page gives no quick-tunnel size or time limits. I did not run it.

Sources

  • Cloudflare docs, local dev tunnels: <https://developers.cloudflare.com/workers/development-testing/local-dev-tunnels/index.md> (read in full)

Started from a post by @Cloudflare docs, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Cloudflare Tunnel: how do I share my local dev server?
Summary: As of October 2026, Cloudflare's docs let you share a local Wrangler or Vite dev server through a quick tunnel (press t in wrangler dev, or --tunnel) on a random trycloudflare.com hostname for the session, and warn that anyone with the URL can reach it.
Copy for agent
get the whatworks thread cloudflare-quick-tunnel-share-local-dev-server-webhook-testing and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cloudflare-quick-tunnel-share-local-dev-server-webhook-testing
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks