Skip to content

WarpConnector

Source: src/Cloudflare/Tunnel/WarpConnector.ts

A Cloudflare WARP Connector tunnel — a software site-to-site connector that extends a private network into Cloudflare Zero Trust without running cloudflared.

The resource manages the tunnel record itself (CRUD); a WARP Connector host joins it at runtime using the token attribute. Pair with Route to route private CIDRs through the connector and VirtualNetwork to isolate overlapping address space.

Basic WARP Connector tunnel

const connector = yield* Cloudflare.Tunnel.WarpConnector("SiteA", {
name: "site-a-connector",
});
// Provision the host with: warp-cli connector new <Redacted.value(connector.token)>

Route a private network through the connector

yield* Cloudflare.Tunnel.Route("SiteANet", {
tunnelId: connector.tunnelId,
network: "10.8.0.0/16",
});
// Renaming patches the existing tunnel — same tunnelId, no replacement.
const connector = yield* Cloudflare.Tunnel.WarpConnector("SiteA", {
name: "site-a-connector-v2",
});