{
  "slug": "wrangler-dev-exposes-local-server-with-tunnel-d8855bc92ac8",
  "title": "wrangler dev exposes local server with --tunnel",
  "tools": [
    "wrangler"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-28T12:42:46.000Z",
  "announced_at": "2026-04-28T12:42:46.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When sharing a local Wrangler dev server without a Cloudflare account or configuration, run `wrangler dev --tunnel` to start a Quick Tunnel and get a random `*.trycloudflare.com` URL. The tunnel ends with the dev session.",
    "examples": [
      "wrangler dev --tunnel"
    ],
    "gotchas": [
      "Version: 4.86.0",
      "--tunnel (required): Boolean flag; exposes the local dev server via a Cloudflare Quick Tunnel. Required to enable the tunnel.",
      "Prerequisite: Quick Tunnels require no Cloudflare account or configuration.",
      "Prerequisite: `--tunnel` is supported only in local mode; it cannot be combined with `--remote`.",
      "Quick tunnels require no Cloudflare account or configuration.",
      "Quick tunnels do not support Server-Sent Events (SSE); a warning is shown when SSE responses are detected through the tunnel.",
      "The tunnel stops automatically when the dev session ends.",
      "Docs conflict: Later Cloudflare docs also describe pressing [t] to open or close a tunnel during a running dev session and support for named tunnels; those options are not in the Wrangler 4.86.0 source."
    ]
  },
  "why_it_matters": "Share a local Wrangler development server publicly when you have no Cloudflare account or configuration.",
  "sources": [
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.86.0",
    "https://github.com/cloudflare/workers-sdk/blob/wrangler%404.86.0/packages/wrangler/src/dev.ts"
  ],
  "rank": 0.98045,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-67b43bce00509ed1-1:gate",
    "evidence_hash": "500a51f3c99d02f4a6f11735e555904d1268e452de8be4f6121c48480eaa16ff"
  },
  "review": {
    "draft_hash": "31a9f794b8f3ca95feb40f65db0a0690e94282ae6874d0b827215a2a00217533",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.78 (>= 0.6 needed)."
  }
}
