Debug a webhook on localhost using its real, unchangeable callback URL — no redeploy, no new URL.
Claim one path on an existing fixed endpoint; its live traffic reaches localhost while every other path keeps serving the real app. Ctrl+C to release.
tul claim '/demo/my-tunnel/' -p 8080 -g tunlease-relay.ilogan.appSimilar in spirit to ngrok, localtunnel, and bore, Tunlease solves a different problem: it keeps the callback URL already in use and temporarily redirects only the path you claim.
The gateway receives the fixed host's traffic and forks by path: a claimed path with a connected tunnel reaches localhost; every other path is proxied to the configured original app. Blue nodes are Tunlease's; the rest already exist.
The safety model combines a path allowlist, exclusive connected tunnels, optional token authentication, audit logs, and origin fallback. Fallback covers requests that have no matching connected session before dispatch. Gateway, Ingress, and origin outages require separate infrastructure or bypass planning. See the routing and failure contract.
Once your platform team gives you the gateway host, an allowed path, and an optional token, install the CLI:
brew install iml885203/tap/tunleaseOn Windows, install with Scoop:
scoop bucket add tunlease https://github.com/iml885203/scoop-bucket
scoop install tunleaseOr install the latest verified binary directly
# macOS and Linux
curl -fsSL https://raw.githubusercontent.com/iml885203/tunlease/main/scripts/install.sh | bash# Windows PowerShell (amd64)
irm https://raw.githubusercontent.com/iml885203/tunlease/main/scripts/install.ps1 | iexThen claim the callback path:
tul claim '/demo/my-tunnel/' -p 8080 -g tunlease-relay.ilogan.appCtrl+C releases it. To use your own fixed callback host instead of the public demo, see Self-hosting Tunlease.
Warning
Don't use the public relay for a real webhook. Claims on
tunlease-relay.ilogan.app expire after 1 minute, so the callback stops
arriving right away. It is only for trying the CLI. For real use, run
your own gateway.
Use the public demo only with test traffic. Claims on your own staging gateway receive real callbacks, including their data and credentials. Start your local service first, claim the narrowest path you need, and make callback handling idempotent: provider retries and mid-request tunnel failures can produce duplicate delivery.
See the developer guide for configuration, lifecycle
commands, --output json automation, and troubleshooting. The installers
verify the published SHA-256 checksum before replacing the binary.
Choose the shortest path for your role:
- Developer receiving callbacks or integrating a provider: Developer guide — installation, provider security, configuration, CLI usage, and troubleshooting
- Self-hosting Tunlease: Deployment guide — gateway setup, routing, Helm, rollout, and security
- Contributor understanding the system: Architecture — control/data planes, routing, lifecycle, and recovery
- Go application author: Embedding the Go client — module setup, lifecycle API, errors, and testing
Contributions are welcome — see CONTRIBUTING.md for the local
setup and the make preflight quality gate. Please report security issues
privately per SECURITY.md. Participation is governed by the
Code of Conduct.
The public website uses PostHog Cloud (US) for pageviews, page departures and project-link clicks. Events include product and site_domain and share a project with Logan’s other public websites. URL queries and fragments are stripped before sending. Tracking runs only on the production website hostname and honors Do Not Track and Global Privacy Control. Link/button click autocapture, heatmaps and Web vitals are enabled. Session replay records 100% of eligible sessions with all inputs masked; console, network bodies/headers and network timing capture are disabled. No user identification is performed. It does not instrument the locally running application or CLI. The browser project token is public; analytics-reading credentials must never be added to the frontend.
