Native • Non-Root • Universal Input Parser

Expose Local Android Servers to the Internet with Cloudflare Zero Trust

A native, high-performance wrapper for Cloudflare Tunnel (cloudflared). Paste any command from Cloudflare (Windows, Linux, or Docker) and the app automatically extracts and connects your tunnel without root or port forwarding.

Cloudflared for Android UI Screenshot
Universal Command Input
Paste entire Cloudflare commands directly (cloudflared.exe service install..., sudo cloudflared..., or Docker commands). The app automatically strips wrappers and extracts the clean token.
No Root Required
Executes within the standard Android application sandbox. No Magisk, superuser, or custom kernels needed.
Kernel Stdin DNS Patch
Solves Android's absence of /etc/resolv.conf by piping upstream resolvers (1.1.1.1) directly via //proc/self/fd/0.
Direct Boot Auto-Start
Automatically resumes tunnel sessions immediately after system reboot (LOCKED_BOOT_COMPLETED) before unlock.
Bypasses CGNAT & Firewalls
Establishes secure outbound QUIC and HTTP/2 connections to Cloudflare Edge. No router port forwarding required.
Live Token Verification
Instantly validates your Base64 token on paste, verifies the JSON structure, and displays your Tunnel ID preview before connecting.

Built for Simplicity & Control

Cloudflared Android Application Interface
Universal Input & Smart Parser
Paste whatever Cloudflare gives you: Windows CMD, PowerShell, Linux sudo, or Docker scripts. The parser isolates the Base64 token, strips quotes, and validates the Account & Tunnel IDs.
Real-Time Tunnel Telemetry
The high-contrast status card provides live feedback showing connection states: Connected (green), Disconnected, or Error diagnostics with active protocol details.
Direct Boot & Configurable Delay
Enable "Start on Boot" with customizable delay in seconds to ensure Wi-Fi or LTE networks are fully initialized before the tunnel connection is established.
Integrated Engine Updates
The top update card provides a 1-tap "Check Update" button that checks upstream Cloudflare releases and applies binary updates and kernel patches automatically without reinstalling the APK.
One-Tap Clipboard Paste & Clear
Tap the clipboard icon inside the input field to paste directly from your clipboard, or tap the clear button to reset your token in a single click.

Getting Started in 3 Steps

1

Create a Tunnel in Cloudflare Zero Trust

Log in to the Cloudflare Zero Trust Dashboard. Go to Networks > Tunnels > Add a tunnel.

Select Cloudflared, enter a name, and under Install and run a connector, copy the command line from any operating system (Windows, Linux, or Docker):

# You can copy the entire command as-is:
cloudflared.exe service install eyJhIjoiMzEyNDZl...
# OR
sudo cloudflared service install eyJhIjoiMzEyNDZl...
# OR
docker run cloudflare/cloudflared tunnel --no-autoupdate run --token eyJh...
2

Paste into the App

Install cloudflared-android.apk on your device. Open the app and paste what you copied into the Tunnel Token field (or tap the Paste from Clipboard icon).

The app will automatically detect and extract the token, validate its structure, and show a green confirmation badge with your Tunnel ID.

Tap Connect Tunnel, grant Notification Permission, and approve the battery optimization exemption when prompted.

3

Route Inbound Public Hostname

Back in your Cloudflare dashboard under the Public Hostnames tab, configure a route pointing to your Android local service:

Public Hostname: mydevice.yourdomain.com
Service Type:    HTTP
URL:             localhost:8080

Traffic to https://mydevice.yourdomain.com is now routed directly and securely to your phone or tablet.

What You Can Build

Exposing Termux Web Applications
Host Python APIs, Node.js web apps, or static websites on your mobile device and serve them globally:
# In Termux: Launch server
python3 -m http.server 8080

# Mapped via Cloudflare to:
# https://api.yourdomain.com
Repurposed Android Homelab
Turn an unused phone into an ultra-low-power server hosting Home Assistant dashboards, PocketBase instances, or webhook endpoints for GitHub and Stripe.
Unlimited Ngrok Alternative
No session timeouts, no randomized dynamic URLs, and no monthly fees. Connect your custom domain directly through Cloudflare's free Zero Trust plan.

24/7 Background Execution Guide

Aggressive battery-saving algorithms in custom Android skins can kill background services. Configure your device manufacturer's settings for uninterrupted uptime:

Manufacturer / OS Menu Navigation Required Configuration
Google Pixel / AOSP Settings > Apps > Cloudflared > App battery usage Set to Unrestricted
Samsung (One UI) Settings > Battery > Background usage limits Add Cloudflared to Never sleeping apps
Xiaomi (HyperOS / MIUI) App Info > Battery saver & Autostart Select No restrictions and enable Autostart
OnePlus / Oppo / Realme App Info > Battery usage Enable Allow background activity and Allow auto-launch

Frequently Asked Questions

Can I paste the entire command from Cloudflare?

Yes. The app features a smart universal input parser. You can paste cloudflared.exe service install <token>, sudo cloudflared service install <token>, Docker commands, or raw tokens. The app will automatically isolate, clean, and validate the token.

Does this application require root access?

No. Cloudflared for Android operates completely within the unprivileged Android application sandbox. It uses custom stdin descriptor redirection to provide DNS resolution natively without superuser rights.

Can I expose services running inside Termux?

Yes. Any web service, API, or socket bound to localhost or 127.0.0.1 in Termux can be accessed by the Cloudflared service and exposed through your public hostname.

How does this bypass CGNAT and mobile carrier firewalls?

Traditional hosting requires an open incoming port, which mobile carriers block via Carrier-Grade NAT (CGNAT). Cloudflared establishes outbound encrypted QUIC/HTTP2 connections to Cloudflare's edge network, completely eliminating the need for inbound ports.

Will this drain my device's battery?

The native engine is lightweight and consumes minimal CPU when idle. When configured with appropriate battery exemptions, it typically consumes under 2-3% of battery over a full 24-hour period.