Webhook inbox / fan-out / catch-up / signatures at the edge / HTTP & TCP tunnels / MIT / self-hosted

One webhook URL. Every developer gets every event.

Tunnex Inbox — a self-hosted webhook inbox for teams, with tunnels.

Point Stripe, GitHub or Telegram at one stable URL. Tunnex keeps every event, checks its signature at the edge and delivers a copy to every developer who is listening — including the ones who were offline when it arrived.

Fig. 1 One Stripe event, two developers. Alice is online and gets it at once. Carol's laptop was asleep: her cursor waits, and the event arrives, re-signed, when she reconnects. Hex is the real 8-byte frame header — version, type, flags, reserved, stream id.
  1. POST /webhooks/stripe
  2. signature valid · stored as #418
  3. 200 ack
  4. OPEN #12 POST
  5. DATA #12 FIN
  6. RESPONSE 200
  7. asleep · cursor #417
  8. HELLO listen acme-stripe
  9. OPEN #1 catch-up #418
  10. RESPONSE 200

event #418 alice 200 live · carol 200 catch-up, re-signed

  1. 01

    One URL, every listener

    A team inbox per provider stores each event and gives every developer who listens a copy. Missed events arrive on reconnect.

  2. 02

    Verified at the edge

    Stripe, GitHub, Slack, Shopify, Standard Webhooks and Telegram signatures are checked before delivery. Replays are re-signed.

  3. 03

    Made for teams

    Owners, admins and members, invite links, scoped expiring tokens, an audit log, and MCP tools for coding agents.

  4. 04

    Runs where your code runs

    Docker images, tunnex.yaml, Compose and Kubernetes sidecars, GitLab CI and GitHub Actions.

Webhooks have one URL. Your team has many laptops.

Providers send to one endpoint per environment. Everyone who works on the integration needs those events.

One URL, many developers
Stripe allows 16 endpoints per account, a Telegram bot has exactly one webhook, and gh webhook forward lets only one person at a time forward a repository. So someone rewires the dashboard whenever a tunnel URL changes.
Events lost while a laptop sleeps
A tunnel that is down answers 404 or 502. GitHub does not redeliver automatically, and Stripe retries test-mode events only a few times over a few hours.
Replays fail the signature check
Stripe and Slack sign a timestamp and reject signatures older than five minutes, so resending yesterday's payload to your handler fails verification.
Workarounds leak or break
stripe listen gives every developer the whole account's events. smee.io is unauthenticated and was taken offline in March 2023 under load.

Step by step for each provider: Stripe for a whole team, GitHub webhooks on every laptop, one Telegram bot for several developers.

One URL per provider. A copy for everyone.

An inbox is a team-owned subdomain such as acme-stripe.tunnex.org. It stores the request, acknowledges the provider at once, then delivers it over the connection each listener already keeps open.

$ tunnex inboxes create acme-stripe --provider stripe --secret whsec_...
Created https://acme-stripe.tunnex.org in team acme.
$ tunnex listen acme-stripe --forward 3000          # on every machine
$ tunnex listen acme-github --forward 8000 --filter header.x-github-event=pull_request
Fan-out, not load-balancing
Every listener whose filters match gets its own copy. Ten developers, ten deliveries.
A cursor per listener
The server remembers the last event each listener name received. Reconnect and the missed ones arrive in order, within retention.
Start where you want
--from cursor (default), now, a window like 6h or 2d, or an event id.
Filters
On method, path, query.*, header.* and json.*, e.g. json.type=checkout.session.completed.
At least once, in order
The cursor moves only after your app answers. If the local app is down, delivery is retried with backoff while you stay connected.
History and delivery log
tunnex inboxes events shows recent events with their signature result; tunnex inboxes event shows headers, body and every delivery.
Inbox guards
An IP allowlist, a body size limit, a per-inbox rate limit and retention in days.
Replay on demand
tunnex inboxes replay acme-stripe 418 delivers a stored event again to your listeners.

Every option, filter and header: the inbox guide.

Verified at the edge. Still valid on replay.

Give the inbox the provider's signing secret. Events with a bad signature get 401 and are not delivered, unless you create the inbox with --accept-invalid.

Signature schemes checked at the edge
--providerHeader checkedSigned timestampOn replay and catch-up
stripeStripe-SignatureYesRe-signed with a fresh timestamp
githubX-Hub-Signature-256NoOriginal signature stays valid
slackX-Slack-Signature, X-Slack-Request-TimestampYesRe-signed with a fresh timestamp
shopifyX-Shopify-Hmac-Sha256NoOriginal signature stays valid
standardwebhook-id / -timestamp / -signature (or svix-*): Standard Webhooks, SvixYesRe-signed with a fresh timestamp
telegramX-Telegram-Bot-Api-Secret-TokenNoOriginal header stays valid
Re-signed, days later
When a stored event is older than half the five-minute tolerance, Tunnex signs it again with the inbox secret, so your handler's own check passes.
Slack URL check handled
Slack's url_verification challenge is answered when you save the URL in Slack.
Secrets encrypted at rest
Signing secrets are stored encrypted with the server's secret key.

How each scheme is checked and when events are re-signed: signature verification.

Built for a team, not one laptop.

Inboxes belong to teams. People join with an invite link; a CI job gets a token that can do one thing.

What each team role may do
ActionMemberAdminOwner
See inboxes, events, membersYesYesYes
Listen, replay to own listenersYesYesYes
Replay to anyone's listener—YesYes
Create inboxes, change secrets—YesYes
Invite and remove members—YesYes
Read the audit log—YesYes
Change roles, delete the team——Yes
tunnex teams create acme
tunnex teams invite acme --role member
tunnex teams join <code or link>
tunnex tokens create staging-listener --scope listen --expires-in 90
Invite links
One-time, valid for 7 days. You send them yourself.
Scoped, expiring tokens
Scopes tunnels, listen, inboxes:read, inboxes:write, account; expiry from 1 to 365 days.
Audit log
Every change to accounts, tokens, teams and inboxes is recorded, replays included. Admins read it at GET /api/v1/audit?team=acme.

Roles, tokens and the audit log: teams and access.

Your coding agent can wait for the webhook.

tunnex mcp serve gives Claude Code, Cursor and other MCP clients 14 tools that work against your team's server with your account.

Cursor and other clients: command uvx, args tunnex mcp serve.

Inbox tools

  • list_inboxes
  • list_webhook_events
  • get_webhook_event
  • start_listener
  • wait_for_webhook
  • replay_webhook

Tunnel tools

  • start_tunnel
  • stop_tunnel
  • list_tunnels
  • list_requests
  • get_request
  • wait_for_request
  • replay_request
  • send_request

The webhook loop

  1. > Fix the Stripe webhook handler.
  2. start_listener acme-stripe 3000
  3. wait_for_webhook POST /webhooks/stripe 500
  4. reads the event, edits the handler
  5. replay_webhook acme-stripe 418 re-signed
  6. wait_for_webhook 200

The real event, replayed until the handler passes. No copied payloads.

Tunnex runs where your code runs.

The same client runs on a laptop, in a container and in a CI job. No prompts: a config file, a token in the environment, and a fixed listener name whose cursor survives restarts.

# tunnex.yaml, read by `tunnex start`
version: 1
listeners:
  stripe:
    inbox: ${TUNNEX_INBOX}
    forward: http://app:3000
    name: compose
tunnels:
  preview:
    addr: app:3000
    basic_auth: ["demo:${PREVIEW_PASSWORD}"]
# docker-compose.yml, next to your app
services:
  tunnex:
    image: registry.gitlab.com/homycoder/tunnex/client
    environment:
      TUNNEX_TOKEN: ${TUNNEX_TOKEN}
      TUNNEX_INBOX: acme-stripe
      PREVIEW_PASSWORD: ${PREVIEW_PASSWORD}
    volumes:
      - ./tunnex.yaml:/etc/tunnex/tunnex.yaml:ro

Client and server images for linux/amd64 and linux/arm64. The client image runs tunnex start by default; TUNNEX_TOKEN and TUNNEX_SERVER come from the environment, and a volume at /data keeps the listener's identity between restarts (full example). Every key of tunnex.yaml: the configuration reference.

Deployment examples in the repository
WhereWhat it does
Docker ComposeTunnex next to your app: the team's inbox is delivered to it, and it gets a preview URL behind basic auth.
Kubernetes sidecarA staging pod receives Stripe or GitHub webhooks without a public ingress; events missed during a rollout are delivered.
GitLab CIEnd-to-end tests against real provider webhooks, and a preview URL per merge request.
GitHub ActionsThe same, with a pull-request comment linking the preview.

Every example runs in Tunnex's own CI. In a job: tunnex listen acme-stripe --forward 3000 --from now --name "ci-$CI_JOB_ID" --no-inspector --quiet &

Built on a real tunnel.

Listeners ride the same multiplexed connection as Tunnex's HTTP and TCP tunnels — there when you need a public URL for a demo, a preview or a database. No account needed for the first one.

Public URL https://<random>.tunnex.org Inspector http://127.0.0.1:4040

Edge policy flags
FlagEnforced at the edge
--basic-auth demo:secretHTTP basic auth.
--key autoGenerates an API key: Authorization: Bearer or X-Api-Key.
--allow-ip 203.0.113.0/24Only these IPs or CIDRs may connect.
--allow-path /apiOnly these path prefixes; everything else is 404.
--rate-limit 600Requests per minute.
--allow-email @acme.comTunnex SSO for these accounts, on servers with GitHub sign-in configured.
HTTP, WebSocket, TCP
Streaming responses and WebSockets pass through with per-stream flow control. tunnex tcp 5432 opens a raw TCP port (account required).
Local inspector
Every request and delivery at 127.0.0.1:4040: replay, edit and replay, export as cURL, Python, JavaScript or pytest.
Your own names
tunnex login is a device flow in the browser. --subdomain myapp reserves the name to your account.

How it compares.

Several tools solve part of this, and some do it better than Tunnex. Compared on ; numbers in brackets are sources, listed below.

Tunnex compared with Hookdeck, Convoy, Webhook Relay, smee.io and ngrok on 2026-10-14
CriterionTunnexHookdeckConvoyWebhook Relaysmee.iongrok
Self-hosted, licenceYes, MIT [1]No, SaaS; CLI Apache-2.0 [2]Yes, ELv2 since 2024 [3]No [5]Yes, MIT server, ISC client [6]No [8]
A copy per developerYes, every listener [1]Yes, the most complete [2]Partly [3]Broadcast to all [5]Broadcast, no auth [6]No; endpoint pooling load-balances [8]
Durable inboxYes, 1–30 days on tunnex.org [1]3 days free, 7 days Team [2]Yes [3]Not stated [5]No [6]No; 24 h inspector [8]
Catch-up after offlineYes, server-side cursor [1]Not documented [2]listen --since [3]No [5]No [6]No [8]
Signature check at the edge6 schemes, re-signed on replay [1]Yes [2]Partly [3]No [5]No [6]Yes, as a traffic policy [8]
Stronger than Tunnex atYoung project; one server node by design [1]Most complete per-developer routing; nothing to run [2]A full webhook gateway with a durable store [3]Hosted broadcast, nothing to run [5]Zero setup, free [6]Mature tunnel service with traffic policies [8]
Limits to knowSelf-hosting needs wildcard DNS and TLS in front of the server [1]Free plan is one user; payloads stored by a third party [2]Not OSI open source; free self-host tier is 1 user, 1 org [4]Team members from $71.99/month [5]Went offline under load in 2023 [7]Not a webhook inbox; per-seat add-ons [8]
  1. Tunnex: source code and ADR 0001
  2. hookdeck.com/pricing
  3. github.com/frain-dev/convoy
  4. getconvoy.io/self-hosted
  5. webhookrelay.com/pricing
  6. github.com/probot/smee.io
  7. smee.io issue #137
  8. ngrok verify-webhook docs

Wrong or out of date? Tell us and we will fix the cell. Longer, sourced comparisons: ngrok vs Tunnex for webhooks and a self-hosted smee.io alternative.

Thirty seconds to the first event.

Hosted

On tunnex.org

pip install tunnex
tunnex login
tunnex inboxes create acme-stripe --provider stripe --secret whsec_...
tunnex listen acme-stripe --forward 3000

Give Stripe https://acme-stripe.tunnex.org/webhooks/stripe; the path is kept, so events reach localhost:3000/webhooks/stripe. Bring the team with tunnex teams invite <team>; they run tunnex teams join and the same listen. Step by step: getting started.

Self-hosted

On your machine, with Docker Compose

curl -fsSLO https://gitlab.com/homycoder/tunnex/-/raw/main/examples/self-hosted/docker-compose.yml
docker compose up -d
tunnex login --server ws://connect.lvh.me:8081
tunnex inboxes create acme-stripe
tunnex listen acme-stripe --forward 3000

The server and PostgreSQL start locally; the inbox answers at http://acme-stripe.lvh.me:8081 (*.lvh.me resolves to 127.0.0.1). For production, put a wildcard DNS record and TLS in front of registry.gitlab.com/homycoder/tunnex/server, or use the Kubernetes manifest. Backups, upgrades and every setting: the self-hosting guide.

Limits on tunnex.org

Default limits of the hosted instance
Without an accountHTTP tunnels: 3 at a time per IP, 120 requests per minute, a random sticky subdomain, a notice page for browsers
Free account10 tunnels, 1,200 requests per minute, 3 reserved subdomains, TCP, up to 3 teams of your own
Inboxes10 per team, 50 listeners each, 600 events per minute, 1 MiB per event
EventsKept 7 days by default, up to 30; up to 1,000 missed events delivered on reconnect

A self-hosted server sets its own limits in config.yaml or TUNNEX_* environment variables.

Open source. Your server.

Client, server and examples are MIT licensed. Run it yourself and payment and customer payloads never leave your infrastructure.