Tunnels
An LPM.dev Registry tunnel gives a local development server a public HTTPS URL. LPM CLI connects to the tunnel relay, which receives the public requests. LPM CLI forwards each request to your local port and starts a local browser inspector for incoming traffic.
lpm login
lpm dev --tunnel
If your server is already running, start a standalone tunnel:
lpm tunnel 3000
Both workflows require an LPM.dev Registry login and a Pro or Organization plan.
If you revoke a CLI session in the dashboard, its open tunnels close after LPM.dev Registry processes the revocation. Before you start the tunnel again, run lpm login.
If the plan of an account stops including tunnels, the open tunnels of the account close, usually within a minute. A downgrade can cause this. The end of a billing grace period without a payment can also cause it.
Connection credentials expire periodically. LPM CLI renews them on the open connection, so requests and WebSocket connections continue.
Choose a workflow
| Workflow | Command |
|---|---|
| Start the development server and its tunnel together | lpm dev --tunnel |
Tunnel the only active lpm dev endpoint | lpm tunnel |
| Expose an explicit local port | lpm tunnel 3000 |
| Use a claimed domain | lpm tunnel 3000 acme-api.lpm.llc |
Without a port, lpm tunnel does not use port 3000. It uses the only active lpm dev endpoint. If it finds no endpoint or more than one, it stops with an error that asks for a port.
Start a tunnel explains inspector controls, session names, webhook auto-acknowledgement, and tunnel authentication.
Tunnel URLs
- On the Pro plan, a tunnel without a domain uses your account URL, such as
acme-ab3k9mzq.lpm.fyi. The last eight characters are random, so nobody can guess the URL. - On the Pro plan, you can claim up to three stable domains, such as
acme.lpm.fyi. - An organization on the Organization plan can claim up to three stable domains for its members. A member connects by naming one of these domains, such as
lpm tunnel 3000 staging.lpm.fyi. The member does not need a personal Pro plan.
Claimed domains use the base domains lpm.fyi and lpm.llc. Claimed tunnel domains explains naming rules, organization roles, and claim management.
Plan limits
| Capability | Pro | Organization |
|---|---|---|
| Concurrent tunnels | 3 | 3 |
| Included requests | 100,000 per billing period | 100,000 per paid seat and billing period |
| Account request rate | 20,000/min | 20,000/min per paid seat |
| Request rate per visitor IP address | 600/min | 600/min |
| Maximum request body | 11.5 MiB | 11.5 MiB |
| Claimed domains | 3 | 3 |
| Tunnel authentication | Yes | Yes |
| Browser inspector | Yes | Yes |
A request body must arrive in full within two minutes. If a body is too large, the relay answers 413. If a body arrives too slowly, the relay answers 408. Near the size limit, a request also gets 413 if its URL and headers do not fit in one relay message with the body. If the relay is busy with many large uploads, a new upload can get 503 with Retry-After: 5. If a visitor sends a WebSocket message larger than about 12 MiB, the relay closes that socket with code 1009.
All tunnels of an account share its included requests. A tunnel on an organization domain counts against the organization account, also if the member who starts it has a Pro plan.
The included requests of an organization count each paid seat that a member holds, only for the time that the organization pays for the seat. If paid seats change during a billing period, the included requests change by 100,000 per seat for the share of the period that is left. The account request rate follows the new seat count at once.
The concurrent-tunnel limit and the claim limit of an organization apply across all members and base domains. These limits do not increase with the seat count.
Overage is on by default on the Pro and Organization plans. It costs $1 for each 100,000 requests over the included requests. To stop at the included requests, turn off "Tunnel overage" on the tunnels dashboard. For an organization, only owners and admins can change this setting.
Without overage, the relay answers new requests with 429 after the account uses its included requests. The relay also answers 429 when an account or a visitor IP address goes over its request rate.
After a failed payment, the account enters a billing grace period, and overage pauses. Until the payment succeeds, tunnels stop at the included requests. The included requests cover the whole billing period. Requests before the grace period, during it, and after the payment all count toward them.
When to use a tunnel
Use a tunnel for these tasks:
- Send Stripe, GitHub, Slack, or other webhooks to a local handler, and inspect what arrived.
- Share a preview with a teammate through a temporary URL, without a deployment.
- Open a local development server from a phone on another network.
- Connect an external service to an HTTP endpoint on your machine.
Request inspector
LPM CLI starts a local inspector with the tunnel. To turn it off, pass --no-inspect. The inspector shows live requests and responses, searches capture history, exports cURL commands, and replays requests to the local server.
Request inspector explains the capture database, replay, and the terminal commands.
LPM CLI reference
These pages describe the hosted tunnel service, account limits, and claimed domains. The LPM CLI docs describe every command, flag, configuration field, and relay detail: