zrok
$ zrok Official High Riskzrok provides peer-to-peer private and public HTTP/TCP/UDP/file sharing built on OpenZiti zero-trust overlays (zrok share public, zrok share private). Supports --headless non-TUI sharing, zrok overview JSON inventory output, and --basic-auth or OAuth frontends for safer exposure.
brew install zrok Manages local OpenZiti zero-trust identity sockets and tunnels (zrok share, zrok access); MCP servers cannot establish peer-to-peer overlay tunnels.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Emits JSON from zrok overview, provides zrok status, and includes --headless to bypass the TUI on share/access commands.
zrok overviewoutputs JSON inventory--headlessflag disables TUI inzrok share
Zero-trust private sharing and --basic-auth/--oauth-provider protect endpoints, though zrok share public exposes localhost and ~/.zrok/ caches identity keys.
- Supports zero-trust
privateshares and frontend auth - Credentials stored under
~/.zrok/environment.json
Single Go binary via brew install zrok and GitHub Releases; requires zrok enable <token> before sharing.
- Available via
brew install zrokacross macOS, Linux, Windows
Supports public HTTPS shares, private peer-to-peer tunnels, static drive sharing, and reserved shares.
- Handles both
publicHTTPS andprivatezero-trust tunnels
Official OpenZiti / NetFoundry project (openziti/zrok) under Apache-2.0.
- Official
openziti/zrokrepository
Comprehensive official documentation at docs.zrok.io and descriptive --help subcommands.
- Official docs at docs.zrok.io
Security, Auth & Guardrails
Stores account token and OpenZiti identity JSON under ~/.zrok/environment.json via zrok enable; also honors ZROK_API_ENDPOINT and ZROK_ENABLE_TOKEN.
Apache-2.0 open-source CLI and self-hostable controller; NetFoundry offers a free hosted api.zrok.io tier.
# zrok Agent Rules - Always pass `--headless` to `zrok share` and `zrok access` so the TUI does not hang non-TTY shells. - Prefer `zrok share private` (or add `--basic-auth`) over unauthenticated `zrok share public` unless public internet access is explicitly requested.
Agent-Ready Command Recipes
Safe Read-Only Queries
zrok overview
Emits a JSON object listing enabled environments, active shares, and access tokens.
zrok status
Prints the active zrok API endpoint, secret token status, and OpenZiti identity state.
Controlled Writes & Previews
zrok share private localhost:8080 --headless
Creates an authenticated OpenZiti private share token for localhost:8080 without launching the interactive TUI.
Strengths for Agents
- +
zrok overviewoutputs machine-readable JSON of environments and active shares. - +
zrok share privateenables zero-trust peer-to-peer access without opening public ports.
Caveats & Pitfalls
- ! Omitting
--headlesslaunches a full-screen TUI that breaks non-TTY agent shells. - ! Requires an enabled
zrokaccount token (zrok enable) before creating shares.