Double-click to launch an interactive terminal interface for creating, managing, and controlling your Cloudflare tunnels.
- 🍎 Native macOS App - Double-click .app bundle that opens in Terminal
- 🚀 Interactive Setup - Guided tunnel creation with step-by-step prompts
- 📋 Complete Tunnel Management - Create, edit, remove, start, stop, and list tunnels
- 🔄 External Tunnel Import - Discover and import tunnels created outside the app
- ⚡ Background Tunnels - Tunnels run in background, returning you to the menu immediately
- 🧭 Full Navigation - Back/cancel options throughout all dialogs
- 📊 Status Monitoring - Real-time tunnel status with local and Cloudflare sync
- 🔍 Cloudflared Status - Check cloudflared installation, authentication, and account info
- 🧹 Reset Functionality - Clean up configuration files when needed
- 🎨 Beautiful Interface - Colored terminal output with progress indicators
- Node.js 20 or higher
- cloudflared installed and accessible in PATH
- Cloudflare account with tunnel permissions
-
Clone this repository to your Mac:
git clone https://github.com/itsmereal/cloudflare-tunnel-buddy.git cd cloudflare-tunnel-buddy -
Build the app:
./build.sh
-
Launch the app:
- Double-click
Cloudflare Tunnel Buddy.appin Finder - Or run:
open "Cloudflare Tunnel Buddy.app"
- Double-click
The build script will automatically:
- ✅ Install npm dependencies
- ✅ Create the macOS app bundle structure
- ✅ Copy the custom orange tunnel icon
- ✅ Build and bundle all JavaScript code
- ✅ Set proper permissions for macOS
When you first open the app, it will:
- Check for Node.js and cloudflared requirements
- Open Terminal with a welcome screen and helpful tips
- Prompt for Cloudflare authentication if needed
- Present the main interactive menu with all available options
When you launch the app, you'll see an interactive menu with these options:
🆕 Create a new tunnel
- Guided setup for HTTP/HTTPS services
- Support for Local by Flywheel, XAMPP, MAMP, etc.
- Custom URL and hostname configuration
- Automatic DNS routing setup
📋 List all tunnels
- View both local and external tunnels
- Shows status, URLs, and source information
- Distinguishes between locally managed and externally created tunnels
- Select from available configured tunnels
- Tunnel runs in background
- Returns to menu immediately while tunnel stays active
⏹️ Stop a tunnel
- Gracefully stop running tunnels
- Returns to main menu automatically
🔍 Cloudflared status
- Check if cloudflared is installed
- View cloudflared version
- Check authentication status
- View account ID and zone information
- List all tunnels in your Cloudflare account with connection status
📊 Check tunnel status
- Local process status
- Cloudflare connection status
- Detailed tunnel information
✏️ Edit a tunnel
- Modify service URLs
- Update hostnames
- Change DNS routing
🗑️ Remove a tunnel
- Delete tunnel configuration
- Remove from Cloudflare (with confirmation)
- Handles both local and external tunnels
🔄 Import external tunnels
- Discover tunnels created outside the app
- Bulk import or selective import
- Sync with Cloudflare tunnel list
🧹 Reset configuration
- Clean up configuration files
- Remove generated folders
- Fresh start option
- Create tunnel: Select "Create a new tunnel"
- Configure:
- Name:
my-site - Service URL:
https://my-site.local(your Local site domain) - Hostname:
my-site.yourdomain.com
- Name:
- Start: Select "Start a tunnel" → choose your tunnel
- Update: Update the site url to what you entered as Hostname
- Access: Visit
https://my-site.yourdomain.com
- Create tunnel: Select "Create a new tunnel"
- Configure:
- Name:
dev-site - Service URL:
http://localhost:8080(or your port) - Hostname:
dev.yourdomain.com
- Name:
- Start: Launch tunnel when ready to share
- Sync: Select "Import external tunnels"
- Choose: Select tunnels to import or import all
- Edit: Configure URLs for imported tunnels
- Use: Start/stop as normal
The tool stores configuration in ~/.cf-tunnel-buddy/:
tunnels.json- Tunnel configurationscredentials.json- Cloudflare credentials (managed by cloudflared)
The build process is handled by a single script that does everything:
./build.shThis script will:
- Create the macOS app bundle structure
- Install npm dependencies
- Build and bundle all JavaScript code
- Set executable permissions
- Verify the app is ready to use
├── src/ # Source code
│ ├── interactive.js # Main app entry point
│ ├── commands/ # All tunnel operations
│ ├── utils/ # Configuration & helpers
│ └── lib/ # Core tunnel management
├── AppIcon.icns # Pre-built app icon
├── build.sh # Complete build script
└── Cloudflare Tunnel Buddy.app/ # Generated app bundle
After modifying source code, just run:
./build.shThe script will rebuild everything and update the app bundle.
App won't open
- Make sure Node.js 20+ is installed
- Right-click the app → "Open" to bypass Gatekeeper if needed
"cloudflared not found"
- Install cloudflared: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/installation
- Restart Terminal after installation
"Please login" or authentication issues
- The app will guide you through Cloudflare authentication automatically
- Follow the browser prompts when they appear
Can't see external tunnels
- Use "Import external tunnels" to discover tunnels created outside the app
- This syncs with your Cloudflare account
Use the "Reset configuration" option in the app menu to clean up all settings and start fresh.
Cloudflare Tunnel Buddy makes it easy to expose your local development sites to the internet using Cloudflare's tunnel service. Perfect for:
- Local Development: Share Local by Flywheel, XAMPP, MAMP sites instantly
- Client Previews: Show work in progress without deployment
- Testing: Test webhooks, APIs, and mobile apps against local services
- Collaboration: Let team members access your local environment
The app handles all the complex cloudflared configuration automatically while providing a simple, menu-driven interface.
This is a third-party tool and is not affiliated with Cloudflare Inc.