Request inspector
LPM CLI starts a local browser inspector with each LPM.dev Registry tunnel. The inspector shows each request, the response of the local server, the status, the timing, the detected provider, and diagnostics.
The inspector is available on every tunnel plan.
Open the inspector
lpm tunnel 3000
LPM CLI starts the inspector on a free local port and prints its URL. While lpm tunnel runs, press o to open the inspector.
The same inspector is available when the development server and tunnel start together:
lpm dev --tunnel
Open the inspector URL from the startup output. To use the same local address each time, pass a port:
lpm tunnel 3000 --inspect-port 4500
Inspect and search
The browser inspector supports:
- Live request updates without refreshing the page.
- Request and response headers, bodies, status, and timing.
- Full-text search across paths, summaries, and body content.
- Provider, status, and session filters.
- Named sessions and session-level request history.
- Failure and signature diagnostics.
- cURL export for reproducing a request outside the inspector.
- Single-request replay and ordered replay sequences.
To tell webhook tests apart, give each lpm tunnel session a name:
lpm tunnel 3000 --session "stripe-test"
Replay a request
A replay sends a captured request again to the local development server. You can replay the original request. You can also change its method, path, headers, body, or destination port first.
By default, a replay keeps the original request headers, with the signature headers of the provider. LPM CLI drops host, content-length, and transfer-encoding and sets them again for the local connection.
Some providers put a timestamp in their signature. A replay of an old request can then fail the age check of your handler, although the body and the signature did not change.
A sequence replay sends the selected requests in order, with a delay that you set. The inspector shows the result of a replay. It does not record the replay as a new tunnel request.
Auto-acknowledged requests
If you pass --auto-ack and the local server is unavailable, LPM CLI stores the request and answers 200 OK:
lpm tunnel 3000 --auto-ack
If LPM CLI cannot store the request, it answers 503. The inspector marks a stored request as auto-acknowledged. The request stays in the inspector, so you can replay it after the local server restarts.
Local storage
LPM CLI stores the capture history of each project in this file, also when you pass --no-inspect:
<project>/.lpm/inspector.db
The project is the nearest directory at or above the current directory that has a package.json or an lpm.json. The SQLite database stays after the tunnel stops. When you start another tunnel in the same project, its inspector shows the stored sessions and requests.
The inspector stores complete request and response bodies. For a response streamed as server-sent events (text/event-stream), it stores only the first 64 KiB. Captures wait in a 64 MiB queue before LPM CLI writes them. If large requests or responses arrive faster than LPM CLI writes them, a capture that does not fit in the queue is lost. LPM CLI logs a warning, and the tunnel still serves the request.
Captured headers and bodies can contain credentials, cookies, signatures, and personal data. Treat inspector.db as sensitive local development data.
LPM CLI writes a .lpm/.gitignore file with the rule *, so Git ignores the capture files. If Git already tracks a capture file, LPM CLI shows a warning with the command that stops the tracking. To keep captures out of Git also without .lpm/.gitignore, add **/.lpm/inspector.db* to .gitignore. This pattern also covers the -wal and -shm files of the database and the captures of nested projects.
Terminal commands
lpm tunnel inspect, lpm tunnel log, and lpm tunnel replay read the .lpm/inspector.db of the project. They work while a tunnel runs and after it stops. lpm tunnel inspect --ui opens the stored captures in the browser inspector. lpm tunnel log --clear deletes the capture history.
While a tunnel runs, you can also use the inspector URL that lpm tunnel or lpm dev --tunnel prints. The LPM CLI tunnel reference describes each command in full.
Continue
- Start a tunnel shows how to start the relay connection and configure the inspector.
- Claimed tunnel domains shows how to keep the same public URL across debugging sessions.