Skip to content

pgrok

Self-hosted SSH-based tunnel service with SSO and stable subdomains for teams

Permissive (OSI) · MIT
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

56

Health

Active

Overview

Stars

3,651

Last commit

yesterday

Nov 2026

Repository age

3 years

since Mar 2023

Latest version

v1.8.0

Nov 2026

Contributors

–

1 active in 90 days

Releases

5

last 12 months

Language

Go

pgrok is a self-hosted, multi-tenant platform that exposes local HTTP services and raw TCP connections through SSH reverse tunnels. You run it on your own server and domain, and users sign in through an OIDC-compatible SSO provider such as Google, Okta, GitLab or Keycloak. After sign-in they get a token and a stable HTTP subdomain.

The server, pgrokd, ships as a single binary, a Docker image or through Docker Compose. It needs a domain with wildcard DNS, a public server, an OIDC client and a PostgreSQL server, version 12 or higher. A Caddy reverse proxy in front handles HTTP. The pgrok CLI creates tunnels, picks subdomains and can route requests to different local services by path. A standard SSH client also works.

It is written in Go under the MIT license. It suits teams that want a replacement for paid tunneling services where stable subdomains and SSO cost extra, and an alternative to ngrok.

Who it's for

Dev teams sharing local services with colleagues

SSO sign-in gives each person a token and a stable subdomain.

Skip if: You are a solo developer who just needs a quick throwaway tunnel.

Small companies with their own domain and VPS

You control the domain, data and server, and pay for no hosted tunnel plan.

Skip if: You do not want to run PostgreSQL, DNS and a reverse proxy.

Non-developers such as sales or PMs who need to demo local builds

The dashboard provides copy-and-paste commands with the token filled in.

Skip if: You need heavy traffic inspection and replay features.

The problem it solves

Hosted tunneling services charge extra for stable subdomains and SSO. pgrok lets a team run its own tunnel server, so everyone gets a fixed URL after signing in with company credentials.

Strengths

  • Stable HTTP subdomains per user after SSO sign-in
  • Works with any OIDC-compatible provider, such as Okta or Keycloak
  • Tunnels HTTP and raw TCP, and a plain SSH client can connect
  • Server runs as a single binary, Docker or Docker Compose
  • Path-based routing to different local services

Trade-offs

  • Needs a domain, wildcard DNS, a public server and PostgreSQL 12+
  • You must set up HTTPS yourself, for example with Caddy
  • Only one contributor was active in the last 90 days

Self-host pgrok

Self-hostable
Yes
Docker Compose
The repository ships a Compose file

Quick start

brew install pgrok

From the project's own install instructions. Check the docs for production settings.

In the community

Frequently asked questions

Is pgrok free and self-hostable?

Yes. It is MIT licensed and designed to run on your own infrastructure.

What do I need to run the server?

A domain, a server with a public IP, an OIDC-capable SSO provider and a PostgreSQL server, v12 or higher.

How do I install the client?

Use Homebrew with brew install pgrok, or download an archive from the Releases page.

Does it tunnel only HTTP?

No. It handles HTTP services and raw TCP connections.

Similar tools in Tunnels, VPNs and networking

rathole

Tunnels, VPNs and networking

Rust reverse proxy that exposes services behind NAT through a server with a public IP

14k 852 3 months ago Dormant Apache-2.0

Technitium DNS Server

Tunnels, VPNs and networking

Self-hosted authoritative and recursive DNS server with ad blocking and encrypted DNS

10k 832 yesterday Thriving GPL-3.0

wstunnel

Tunnels, VPNs and networking

Single Rust binary that tunnels TCP, UDP and SOCKS5 over WebSocket or HTTP/2

7.2k 589 35 days ago Active BSD-3-Clause

iodine

Tunnels, VPNs and networking

IPv4-over-DNS tunnel for getting online where only DNS queries get through

8k 604 yesterday Active ISC

external-dns

Tunnels, VPNs and networking

Kubernetes controller that syncs Services and Ingresses to DNS providers like Route 53

9.2k 3k today Thriving Apache-2.0

ztnet

Tunnels, VPNs and networking

Self-hosted web UI for managing ZeroTier networks with multi-user and organization support

1.3k 129 5 days ago Thriving GPL-3.0