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.
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.
01Leave named Cloudflare tunnels and DNS routes unchanged if they serve shared or long-running infrastructure.
02Install @ulpi/lokei globally, complete lokei setup, and run lokei doctor.
03From a development project, replace the separate app-start and cloudflared commands with lokei run.
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.