Skip to content
Sections
Docs

Local web inspector

See every incoming request and response in your browser while your tunnel runs, then replay any webhook locally after fixing your handler.

On this page7

When you start prontaro http 3000 (or prontaro run with at least one HTTPS tunnel) in an interactive terminal, the CLI opens a loopback web inspector and prints its address right under your tunnel URL—usually http://127.0.0.1:4040. Always open the address printed by your terminal, because prontaro automatically picks another port if 4040 is already busy or used by your local server (see Flags, environment variable, and hotkeys).

In non-interactive environments—piped stdout (url=$(prontaro http 3000)), CI (CI=1), --quiet, --json, --no-input, or background services installed with prontaro service install—the inspector stays off with no open ports unless you explicitly pass --inspect or --inspect-port <port>.

The local web inspector is built into prontaro on every plan, including Free.

Prontaro local web inspector in Night theme showing a replayed Stripe webhook with a green 500 to 200 status banner, masked Authorization header, and 64-bit integer JSON payload
A replayed webhook in the local web inspector: the status banner compares the original 500 response against the local 200 replay, masks sensitive headers as REDACTED, and preserves 64-bit JSON integers verbatim.

Diagnose failures and replay locally

Every incoming request to an active HTTPS tunnel appears in the left-hand feed newest first. If your local server is stopped when a webhook arrives, prontaro still records the 502 entry with a DOWN badge and the captured request body so you do not have to re-trigger the delivery from Stripe or GitHub after starting your app. Requests that drop before response headers return appear with status 0 (Closed) and remain replayable as well.

Press r or click Replay to send a captured request straight from prontaro to your local server without crossing the internet. Because replay stays on your machine, it does not add server load or count against your monthly HTTPS request or traffic quota.

Replay keeps the captured request body bytes and the order of retained headers, so cryptographic webhook signatures such as Stripe-Signature and X-Hub-Signature-256 continue to validate against your local handler. To construct a clean local HTTP/1.1 request, prontaro strips hop-by-hop headers, recalculates Content-Length, and adds Connection: close. Once your local app answers, a green result banner summarizes the change (for example, 500 → 200 · 14ms → 4ms · Body changed) and links back to the original capture.

Replay enforces two safety checks:

  • Bodies larger than 256 KiB: if the captured request body was truncated at the 256 KiB per-body cap, plain Replay refuses to resend an incomplete payload by default. Confirm a forced replay (or pass force in the local API) only when you intentionally want to send the truncated capture.
  • Stopped or unavailable tunnels: if the tunnel that received the request has stopped or is no longer active in this prontaro process, Replay is disabled.

Edit headers or payloads before replaying

Press e or click Edit & Replay to change the HTTP method, path, headers, or body before sending the request to your local server. This is handy for testing edge cases, different event types, or custom headers without setting up a separate HTTP client.

Changing the body or signed headers invalidates provider HMAC signatures such as Stripe-Signature or X-Hub-Signature-256. Use plain Replay when verifying signature checks, and Edit & Replay when testing application logic or routing.

When formatting JSON bodies, the inspector preserves large 64-bit integers (such as Stripe, Snowflake, or database sequence IDs above 2^53 - 1) verbatim without rounding.

Hide static assets, inspect blocked requests, and export

Modern web apps request dozens of stylesheets, scripts, and images alongside API calls. To keep those files from crowding out your memory buffer, prontaro skips response bodies for static assets (image/*, font/*, audio/*, video/*, text/css, JavaScript, and WebAssembly). The Hide assets chip is also enabled by default to hide static asset entries from the feed (including cached 304 Not Modified responses matched by file extension). Use search (/), Errors, and Blocked chips to isolate failing or rejected traffic.

Requests rejected by Prontaro servers before reaching your machine—such as IP allowlist refusals (403), Basic Auth failures (401), exhausted request quotas (429), or concurrent visitor limits (503)—still appear in the feed with a BLOCKED badge. Because those requests never reached your local app, Replay and Copy cURL stay disabled. For IP allowlist refusals, the detail view shows the exact prontaro access <tunnel> allow <ip> command with a one-click Copy command button so you can allow a legitimate webhook sender right away.

Prontaro local web inspector in Steel light theme showing a 403 Blocked request with a copyable prontaro access allow command and disabled Replay buttons
A request rejected by a tunnel IP allowlist shown in the Steel light theme: the inspector surfaces the exact prontaro access command to allow the sender while keeping Replay disabled.

To share a failing request in a bug report or test it from another terminal, use Copy cURL (targets your local server with POSIX single-quote escaping) or Copy Markdown (formats headers and bodies up to 16 KiB with an untrusted-traffic notice). Sensitive headers such as Authorization, Cookie, and X-Api-Key, common secret query parameters, and recognized JSON or form fields are masked as REDACTED by default in both the interface and exports. You can inspect original values in the browser with Reveal secrets or check Include secrets before copying; note that pattern-based masking matches common field names and cannot guarantee that arbitrary custom payloads contain no sensitive data.

Local privacy and memory limits

Captured requests, headers, and bodies live strictly in RAM inside the running prontaro process. They are never written to disk and never sent to Prontaro servers—server-side Connection logs continue to store metadata only. The browser interface saves only your local display preferences (such as theme and pane width) in localStorage.

Because the buffer stays in memory, stopping prontaro clears all captured requests immediately. Fixed ring-buffer caps keep memory usage predictable:

Cap Value Behavior at the limit
Stored requests 500 entries Oldest entries are evicted first (FIFO)
Total memory budget 32 MiB Oldest entries are evicted first to stay within budget
Body capture size 256 KiB per request and per response Larger bodies are marked truncated
Header capture size 64 KiB Oversized header blocks are truncated safely
Preview decompression 2 MiB (gzip and deflate) br and zstd bodies are stored raw without preview decompression

The inspector binds only to 127.0.0.1 with no cross-origin access, so only your browser and processes running on the same machine can reach it. For the exact Host, Origin, and Sec-Fetch-Site protections enforced by the loopback server, see Security of the local server.

Limitations

Currently, the local web inspector focuses on fast, zero-dependency HTTP/1.1 debugging:

  • HTTPS tunnels only: inspects prontaro http and HTTPS members of prontaro run. Direct TCP tunnels, prontaro forward, and outbound proxies are not inspected (TCP tunnels in prontaro run appear in the tunnel list as not inspected).
  • WebSocket and application SSE frames: 101 Switching Protocols and text/event-stream responses capture their initial handshake headers and then detach without decoding individual WebSocket or SSE frames.
  • Passive capture and local replay: the inspector does not modify live traffic in flight, inspect HTTP/2 frames, export HAR archives, or sync captures across machines.
  • Ephemeral RAM buffer: exiting prontaro or performing a hot reload (SIGUSR2) starts with an empty buffer.

To debug webhooks from Claude Code, Cursor, or Codex, connect the built-in Prontaro MCP server (prontaro mcp) or query the Local inspector API directly. To see how Prontaro’s tunnels and local inspector compare with other tools, read Prontaro vs ngrok and Prontaro vs Cloudflare Tunnel.

Flags, environment variable, and hotkeys

By default, prontaro tries port 4040 first. If 4040 is busy or matches a local server port, it scans 4041 through 4059 (skipping 4045, which browsers block as unsafe) and falls back to an OS-assigned port.

Control the local inspector on prontaro http and prontaro run:

Option Effect
--inspect Explicitly enable the inspector (including in scripts, CI, or --json mode). Pass --inspect=false to disable it in an interactive terminal. Overrides PRONTARO_NO_INSPECT.
--inspect-port <port> Bind the loopback inspector to a specific port (1–65535) on 127.0.0.1 and implicitly enable it. Cannot be combined with --inspect=false (exits with a usage error). On initial launch, fails before starting the tunnel if the port is already in use; during a SIGUSR2 hot reload, retries briefly and falls back to an auto-selected port with a warning. Port 4045 prints a browser-compatibility warning.
PRONTARO_NO_INSPECT Any non-empty value disables automatic inspector startup in interactive terminals.

Navigation shortcuts work anywhere outside text fields (without Ctrl, Meta, or Alt); the Edit & Replay dialog also supports Ctrl/⌘+Enter:

Key Action
j / k or ↓ / ↑ Select the next or previous request in the feed
/ Focus the search input
r Replay the selected request locally
e Open or close Edit & Replay for the selected request
Ctrl / ⌘ + Enter Send the edited replay from Edit & Replay
1 / 2 / 3 Switch between Request, Response, and Raw tabs
Esc Clear search, close the editor, or dismiss open popups
? Toggle the keyboard shortcuts reference

Next steps

  • Prontaro MCP server — connect Claude Code, Cursor, or Codex over local stdio MCP to inspect and replay captured requests.
  • Local inspector API — use /llms.txt prompts, non-MCP tools, or shell scripts over the loopback HTTP API.
  • HTTPS tunnels — persistent subdomains, custom Host headers, and running multiple tunnels with prontaro run.
  • Access control & firewalls — configure IP allowlists and Basic Auth passwords on your tunnels.
  • Dedicated static IPv4 — pair inbound tunnels with a dedicated static outbound IP on the same address.

Something wrong on this page? Contact us

Contact us

Enter your email so we can reply.Enter a valid email, e.g. name@company.example.
Tell us what you need or what went wrong.up to 2,000 characters

Sent! We’ll reply to .

Or email us at support@prontaro.com