Cloudflare Tunnel alternative for development

lokei vs Cloudflare Tunnel

Cloudflare Tunnel is a connectivity layer between an origin and Cloudflare's global network. lokei is a local-development layer that starts with the project, gives it a private HTTPS identity, and opens a public share only when the developer asks.

Last verified: July 16, 2026

npm install -g @ulpi/lokei && lokei setup
See the feature comparison

At a glance

One product begins with an origin address; the other begins with a development project.

Scroll horizontally to see every column.

At a glance
CapabilitylokeiCloudflare TunnelOfficial evidence
Starting pointThe project directory, its detected command, and its local routeAn already-running origin URL such as http://localhost:8080
Fast public sharelokei share resolves and starts the project, authenticates if required, and creates a project share sessioncloudflared tunnel --url creates a random trycloudflare.com URL without an account
Local HTTPS before sharingEvery active route receives a trusted local .test URLThe documented local preview begins with localhost and produces a public tunnel URL
Stable or owned public hostnameProject names and custom-domain capabilities are managed by the lokei sharing serviceNamed tunnels attach a published application route to a hostname in a Cloudflare-managed zone
Application lifecycleStarts frameworks, package scripts, Compose, Sail, and declared project servicesRuns cloudflared and forwards to the configured origin; the application lifecycle stays separate
Platform scopeLocal HTTP development, inspection, and temporary collaborationPrivate-network connectivity, published applications, Cloudflare Access, and edge security services

Feature-by-feature comparison

Cloudflare's broader edge capabilities are strengths, not missing lokei features. The comparison focuses on the local-development decision.

01

Local development workflow

Scroll horizontally to see every column.

Local development workflow
CapabilitylokeiCloudflare TunnelOfficial evidence
Project and framework detectionDiscovers the current framework and injects the host, port, and application URL settings it needsFramework-neutral; the user supplies the local service URL to cloudflared
Docker and multi-service startupStarts Compose or Sail and identifies public HTTP services, private infrastructure, and dependenciesA named tunnel can publish several configured hostnames, but it does not start the Compose or application services
Local request inspectorCaptures local routed traffic with bodies, filters, editable replay, and HAR exportThe quick-tunnel workflow forwards traffic through Cloudflare; an equivalent local replay inspector is not part of the documented command
02

Public URL behavior

Scroll horizontally to see every column.

Public URL behavior
CapabilitylokeiCloudflare TunnelOfficial evidence
Account requirementLocal development needs no account; hosted sharing resumes through browser authentication when the developer is signed outQuick tunnels need no account, while named tunnels and owned hostnames use a Cloudflare account and zone
Recipient requirementA recipient opens the public URL without installing lokei or creating an account unless protection was enabledA quick or public hostname opens in a browser; Cloudflare Access can add an identity policy when desired
Quick-tunnel limitsSharing limits and expiry belong to the selected lokei cloud plan and share sessionTryCloudflare is for testing, has a 200 concurrent-request limit, and does not support Server-Sent Events
03

Networking and operations

Scroll horizontally to see every column.

Networking and operations
CapabilitylokeiCloudflare TunnelOfficial evidence
Edge servicesDifferent scope: the public relay exists for temporary development sharingPublished applications can use Cloudflare CDN behavior, WAF, DDoS protection, and Access controls
Non-HTTP servicesDifferent scope: public shares expose HTTP applicationsCloudflare Tunnel supports other private-network protocols, though some require cloudflared on the client
Long-running infrastructureDesigned for development sessions rather than production origin connectivityNamed tunnels can run as managed connectors with persistent DNS routes to private origins

Where each product has a real edge

The decision is usually project convenience versus Cloudflare infrastructure control.

01

Where Cloudflare Tunnel has a real edge

A mature bridge from private origins into the Cloudflare network.

  • Create a no-account quick URL for an already-running local service.
  • Attach owned hostnames to long-running named tunnels.
  • Apply Cloudflare Access, WAF, DDoS protection, and other edge services.
  • Connect private infrastructure and protocols beyond temporary HTTP development shares.
02

Where lokei has a real edge

The developer can express the intent to run or share a project instead of an origin port.

  • Detect and start the current project before opening any public connection.
  • Provide named, trusted local HTTPS even when nothing is publicly shared.
  • Understand frameworks, Docker Compose, Laravel Sail, workers, and dependencies.
  • Inspect and replay ordinary local traffic without routing it through a cloud edge.

Which one fits your workflow?

Choose Cloudflare for edge connectivity; choose lokei for the local application lifecycle.

01

Choose Cloudflare Tunnel if you...

  • Need a quick anonymous URL for one service whose port is already known.
  • Own a Cloudflare-managed domain and want a stable published hostname.
  • Need Access policies, WAF, DDoS protection, or private-network routing.
  • Plan to operate a long-running connector rather than a temporary development share.
02

Choose lokei if you...

  • Want to run and share the project with one command from its folder.
  • Need trusted local HTTPS even when the app remains private.
  • Do not want to find and maintain ports for frameworks or several services.
  • Need local request inspection and dependency-aware service sharing.

Use lokei for the development slice

You can keep Cloudflare Tunnel for owned domains or private infrastructure while moving local project startup and ad-hoc collaboration to lokei.

  1. 01Leave named Cloudflare tunnels and DNS routes unchanged if they serve shared or long-running infrastructure.
  2. 02Install @ulpi/lokei globally, complete lokei setup, and run lokei doctor.
  3. 03From a development project, replace the separate app-start and cloudflared commands with lokei run.
  4. 04Use lokei share for project-aware temporary previews; keep cloudflared for Cloudflare Access, owned hostnames, or non-development origins.

This is a division of responsibilities, not a recommendation to dismantle production or private-network Cloudflare Tunnel deployments.

lokei vs Cloudflare Tunnel FAQ

Direct answers about quick tunnels, accounts, domains, SSE, and project startup.

Is lokei a Cloudflare Tunnel replacement?

It can replace Cloudflare Quick Tunnels for the specific job of sharing a local HTTP development project. It does not replace Cloudflare Access, private-network connectivity, WAF, owned-zone ingress, or long-running production connectors.

Which option creates a public URL without an account?

Cloudflare Quick Tunnels do: cloudflared tunnel --url points at an existing local origin and returns a random trycloudflare.com URL. lokei local development needs no account, but lokei share requires a free cloud account and automatically resumes after browser authorization.

Does Cloudflare Tunnel start my application?

No. Its documented development workflow expects an already-running service URL. lokei detects and starts the application, waits for it to become ready, and then creates the local route or public share.

Can I use a custom domain with both products?

Yes. A Cloudflare named tunnel publishes a hostname in a domain managed by the account. lokei supports custom public-domain capabilities through its hosted sharing service. The setup and ownership models differ, so compare the exact plan and DNS requirements before moving a registered callback URL.

Do Cloudflare Quick Tunnels support Server-Sent Events?

No. Cloudflare documents that Quick Tunnels do not support SSE and recommends a named tunnel for streaming services. lokei is designed to proxy modern development traffic, including long-lived HTTP connections, through its local and sharing workflow.

Which is better for a monorepo?

lokei is better when the command should discover services, start dependencies, keep private processes internal, and share one or several public services coherently. Cloudflare Tunnel can publish multiple configured origins, but it does not model or start the monorepo lifecycle.

Can I keep Cloudflare Tunnel after installing lokei?

Yes. Use lokei for named local HTTPS, project startup, inspection, and temporary previews. Keep Cloudflare Tunnel wherever you need an owned Cloudflare hostname, Access policy, private network, or long-running connector.

Sources and methodology

Cloudflare claims use official Tunnel setup and local-preview documentation. lokei claims use the public website and npm package documentation.

Verified July 16, 2026. Cloudflare limits and product behavior can change. Cloudflare is a trademark of its respective owner. lokei is not affiliated with or endorsed by Cloudflare. Quick Tunnel limitations are kept separate from named-tunnel capabilities throughout this page.

$ lokei run

Share the project, not a remembered port

Install lokei, run setup once, then start and share an existing project from its directory.

npm install -g @ulpi/lokei && lokei setup