Forward webhooks to localhost with one command
To build a webhook handler you need the provider to call code running on your laptop. The usual answer is a tunnel. HookRelay's CLI does it the other way round: your machine connects out to HookRelay, and events are delivered down that connection.
Three steps
Sign in once, then listen to an endpoint and say where your local server is:
npx hookrelay-cli login
npx hookrelay-cli listen my-endpoint --forward-to localhost:3000/webhookslogin opens your browser so you can approve the device and choose a workspace. listen then prints each event as it arrives, forwards it to your local URL, and sends your server's response back to HookRelay so the delivery shows as succeeded or failed in the dashboard. It needs Node 20 or newer.
Nothing is exposed to the internet
The CLI opens an outbound connection, so there is no public address pointing at your machine, no port to open and no tunnel URL to keep alive. Your provider only ever talks to your HookRelay endpoint.
Events are kept, even when you are not listening
Every event is stored when it arrives. If your laptop is closed, the route to your CLI can queue events until it reconnects (the default), or drop them if you would rather not catch up. Either way the event is still in the dashboard, so you can replay it later.
Useful options
--pathappends a path when the forward address has none.--no-forwardonly prints events and acknowledges them, with no local server at all.--onceexits after the first successful delivery, handy in scripts.--timeoutsets how long your server has to answer.
If something does not connect, hookrelay doctor checks DNS, the certificate, the WebSocket connection, your credentials and whether your local URL answers.
Look at and replay from the terminal
hookrelay events list --endpoint my-endpoint
hookrelay events tail
hookrelay events show <event-id>
hookrelay events replay <event-id>Install it globally with npm install -g hookrelay-cli to use the shorter hookrelay command. For testing in general, see how to test webhooks.
Try it with your own provider
The free plan needs no card. Create an account, add an endpoint, and paste its URL into your provider's webhook settings. The first event shows up in seconds.