Open source alternatives to ngrok

Updated 22:00 UTC.

octelium/octelium is the most used open source alternative to ngrok, with 4.2k stars. There is no star history yet, so growth is not ranked. Data as of 5 Dec 2026.

These open source projects offer ways to expose local servers and route webhooks, with setup that ranges from easy to hard.

Most used: octelium/octelium, pgrok/pgrok, amalshaji/portr.

All alternatives

  1. octelium/octelium

    Self-hosted zero trust secure access platform

    4,233 starsMaintenance: ActiveOK for work: Yes, with conditions (AGPL-3.0)Runs on: Windows, macOS, Linux

  2. pgrok/pgrok

    Self-hosted tunnels with SSO and stable subdomains

    3,652 starsMaintenance: ActiveOK for work: Yes (MIT)Runs on: Windows, macOS, Linux, Docker

  3. amalshaji/portr

    Expose local HTTP, TCP, or WebSocket services publicly

    3,197 starsMaintenance: ActiveOK for work: Yes, with conditions (AGPL-3.0)Runs on: Windows, macOS, Linux, Docker

  4. anderspitman/SirTunnel

    Minimal self-hosted tunnel with automatic HTTPS

    1,564 starsMaintenance: SlowOK for work: Yes (MIT)

  5. azimjohn/jprq

    Expose local servers to the public internet

    1,556 starsMaintenance: ActiveRuns on: macOS

  6. tuanngocptn/nport

    Free open source ngrok alternative via Cloudflare

    779 starsMaintenance: ActiveOK for work: Check the license (Custom license)

  7. joaoh82/rustunnel

    Self-hosted secure tunnel server written in Rust

    669 starsMaintenance: ActiveOK for work: Yes, with conditions (AGPL-3.0)Runs on: Windows, macOS, Linux

  8. akazwz/hostc

    Localhost, anywhere

    643 starsMaintenance: ActiveOK for work: Yes (Apache-2.0)

  9. amak-tech/port-buddy

    Expose local ports to the internet

    537 starsMaintenance: SlowOK for work: Yes (Apache-2.0)Runs on: Windows, macOS, Linux, Docker

  10. hookdeck/hookdeck-cli

    Forward webhooks to localhost and manage Hookdeck resources

    373 starsMaintenance: ActiveOK for work: Yes (Apache-2.0)Runs on: Windows, macOS, Linux, Docker

  11. gosuda/portal-tunnel

    Publish localhost services with your own or public relays

    304 starsMaintenance: ActiveOK for work: Yes (MIT)Runs on: Windows, macOS, Linux, Docker

  12. vitobotta/docker-tunnel

    Self hosted Docker tunnel that exposes a local app

    293 starsMaintenance: SlowRuns on: Docker

  13. ntnj/tunwg

    Secure tunnel to your local servers

    292 starsMaintenance: SlowOK for work: Yes (MIT)Runs on: Windows, macOS, Docker

  14. AnimMouse/frp-flyapp

    Run your own frp tunnel on fly.io

    128 starsMaintenance: SlowOK for work: Yes, with conditions (MPL-2.0)Runs on: Docker

  15. calabinet/calabi

    Self-hosted HTTPS endpoints and a private WireGuard mesh

    120 starsMaintenance: ActiveOK for work: Yes (Apache-2.0)Runs on: Windows, macOS, Linux

  16. mr-karan/arbok

    Secure HTTP tunnels to localhost using WireGuard

    119 starsMaintenance: SlowOK for work: Yes (MIT)Runs on: Windows, macOS, Linux, Docker

  17. hoangtuvungcao/proxvn_tunnel_full

    Expose localhost over HTTPS, TCP and UDP

    114 starsMaintenance: SlowOK for work: Check the license (Custom license)Runs on: Windows, macOS, Linux, Docker

Table view
Not legal advice
ProjectWhat it isSetupLicenseMaintenance
octelium/octeliumSelf-hosted zero trust secure access platformHardAGPL-3.0: Yes, with conditionsActive
pgrok/pgrokSelf-hosted tunnels with SSO and stable subdomainsHardMIT: YesActive
amalshaji/portrExpose local HTTP, TCP, or WebSocket services publiclyMediumAGPL-3.0: Yes, with conditionsActive
anderspitman/SirTunnelMinimal self-hosted tunnel with automatic HTTPSMediumMIT: YesSlow
azimjohn/jprqExpose local servers to the public internetEasyActive

Which one?

  • octelium/octelium: Teams wanting a single self-hosted platform for VPN, ZTNA and gateway needs
  • pgrok/pgrok: Teams that want tunnels behind their own SSO and domain
  • amalshaji/portr: Small teams that want to expose development servers on a public URL

Keep up with ngrok