https://github.com/openziti/zrok
Secure internet sharing made simple.
https://github.com/openziti/zrok
file-sharing golang network peer-to-peer reverse-proxy security zero-trust
Last synced: 8 days ago
JSON representation
Secure internet sharing made simple.
- Host: GitHub
- URL: https://github.com/openziti/zrok
- Owner: openziti
- License: apache-2.0
- Created: 2022-07-18T19:14:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2026-11-13T21:49:03.000Z (13 days ago)
- Last Synced: 2026-11-15T05:31:43.959Z (11 days ago)
- Topics: file-sharing, golang, network, peer-to-peer, reverse-proxy, security, zero-trust
- Language: Go
- Homepage: https://zrok.io
- Size: 43.2 MB
- Stars: 4,815
- Watchers: 30
- Forks: 230
- Open Issues: 121
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-cli-apps-in-a-csv - zrok - Geo-scale, next-generation peer-to-peer sharing platform built on top of OpenZiti. (Data transfer)
- awesome-cli-apps - zrok - Geo-scale, next-generation peer-to-peer sharing platform built on top of OpenZiti. (<a name="transfer"></a>Data transfer)
- awesome - openziti/zrok - Secure internet sharing made simple. (Go)
README
# zrok - Secure internet sharing made simple

**Share anything, anywhere, instantly. Enterprise reliability. No firewall changes. No port forwarding. No hassle.**
zrok lets you securely share web services, files, and network resources with anyone—whether they're across the internet or your private network. Built on zero-trust networking, it works through firewalls and NAT without requiring any network configuration changes.
## Quick start
Get sharing in under 2 minutes:
1. **[Install zrok](https://docs.zrok.io/docs/guides/install/)** for your platform
2. **Get an account**: `zrok invite` (use the free [zrok.io service](https://docs.zrok.io/docs/getting-started/))
3. **Enable sharing**: `zrok enable`
That's it! Now you can share anything:
```bash
# Share a web service publicly
$ zrok share public localhost:8080
# Share files as a network drive
$ zrok share public --backend-mode drive ~/Documents
# Share privately with other zrok users
$ zrok share private localhost:3000
```

## What you can share
### Web services
Instantly make local web apps accessible over the internet:
```bash
zrok share public localhost:8080
```

### Files & directories
Turn any folder into a shareable network drive:
```bash
zrok share public --backend-mode drive ~/Repos/zrok
```


### Private resources
Share TCP/UDP services securely with other zrok users—no public internet exposure.
## Key features
- **Zero Configuration**: Works through firewalls, NAT, and corporate networks
- **Secure by Default**: End-to-end encryption with zero-trust architecture
- **Public & Private Sharing**: Share with anyone or just specific users
- **Multiple Protocols**: HTTP/HTTPS, TCP, UDP, and file sharing
- **Cross-Platform**: Windows, macOS, Linux, and Raspberry Pi
- **Self-Hostable**: Run your own zrok service instance
## How it works
zrok is built on [OpenZiti](https://docs.openziti.io/docs/learn/introduction/), a programmable zero-trust network overlay. This means:
- **No inbound connectivity required**: Works from behind firewalls and NAT
- **End-to-end encryption**: All traffic is encrypted, even from zrok servers
- **Peer-to-peer connections**: Direct connections between users when possible
- **Identity-based access**: Share with specific users, not IP addresses
## Developer SDK
Embed zrok sharing into your applications with our Go SDK:
```go
// Create a share
shr, err := sdk.CreateShare(root, &sdk.ShareRequest{
BackendMode: sdk.TcpTunnelBackendMode,
ShareMode: sdk.PrivateShareMode,
})
// Accept connections
listener, err := sdk.NewListener(shr.Token, root)
```
[Read the SDK guide](https://blog.openziti.io/the-zrok-sdk) for complete examples.
## Self-hosting
Run your own zrok service—from Raspberry Pi to enterprise scale:
- Single binary contains everything you need
- Scales from small personal instances to large public services
- Built on the same codebase as the public zrok.io service
[Self-Hosting Guide](https://docs.zrok.io/docs/guides/self-hosting/self_hosting_guide/)
## Resources
- **[Documentation](https://docs.zrok.io/)**
- **[Office Hours Videos](https://www.youtube.com/watch?v=Edqv7yRmXb0&list=PLMUj_5fklasLuM6XiCNqwAFBuZD1t2lO2)**
- **[Building from source](./BUILD.md)**
- **[Contributing](./CONTRIBUTING.md)**
---
*Ready to start sharing? [Get started with zrok →](https://docs.zrok.io/docs/getting-started)*