Marketplace

Cloudflare Tunnel

Other

Cloudflare Tunnel driver (quick + named tunnels).

togo-framework
bash
togo install togo-framework/tunnel-cloudflare

Install

bash
togo install togo-framework/tunnel-cloudflare

Cloudflare Tunnel driver for togo's tunnel subsystem. Wraps the cloudflared binary: a quick tunnel (no account, a *.trycloudflare.com URL) by default, or a named tunnel when a token is set.

Requires the cloudflared binary on PATH.

Config

Env
Meaning
TUNNEL_DRIVERset to cloudflare
CLOUDFLARE_TUNNEL_TOKENnamed-tunnel connector token (optional; omit for a quick tunnel)
CLOUDFLARE_TUNNEL_HOSTNAMEthe hostname a named tunnel routes to (reported as the URL)
CLOUDFLARED_BINpath to cloudflared (default: cloudflared on PATH)
Rows per page
1–4 of 4
Page 1 of 1
go
svc, _ := tunnel.FromKernel(k)
url, _ := svc.Start(ctx, "8080")   // → https://<name>.trycloudflare.com
defer svc.Stop(ctx)

Quick tunnels parse the public URL from cloudflared output (up to 45s). Named tunnels start the connector and report CLOUDFLARE_TUNNEL_HOSTNAME.


<div align="center"> <h3>Premium sponsors</h3> <p> <a href="https://id8media.com"><strong>ID8 Media</strong></a> &nbsp;·&nbsp; <a href="https://one-studio.co"><strong>One Studio</strong></a> </p> <p><sub>Support togo — <a href="https://github.com/sponsors/fadymondy">become a sponsor</a>.</sub></p> </div>