zrok
Secure tunneling and sharing platform
TLDR
Share local HTTP service publicly
SYNOPSIS
zrok command [options]
DESCRIPTION
zrok is a next-generation sharing platform built on OpenZiti, providing secure tunneling for HTTP services, files, and arbitrary TCP/UDP traffic.
Public shares create internet-accessible URLs pointing to local services. Private shares require an access token and go through encrypted Ziti network overlay, providing zero-trust security.
zrok can share:
- HTTP/HTTPS services (web apps, APIs)
- Static files (file server mode)
- Raw TCP/UDP endpoints
Unlike simple tunnels, zrok's private shares never expose traffic to the public internet - all traffic stays within the zero-trust overlay network.
SUBCOMMANDS
enable
Enable zrok environmentshare mode target
Share local resourcereserve mode target
Create reserved sharerelease share
Release reserved shareaccess mode share
Access shared resourcecopy
Copy files to/from sharesstatus
Show environment statusdisable
Disable zrok environment
PARAMETERS (share)
public
Publicly accessible shareprivate
Share accessible only with token--backend-mode mode
Backend type (proxy, web, files)--unique-name name
Reserve specific subdomain--headless
Run without terminal UI
CAVEATS
Public shares expose your local service to the internet. Ensure appropriate authentication/security.
Free tier has usage limits. Heavy usage may require a paid account or self-hosted infrastructure.
Reserved names persist but shares don't - you must re-run share commands after restart.
zrok account required. Run zrok invite to get started.
SEE ALSO
ngrok(1), cloudflared(1), tailscale(8)
