Getting started
Download the free Mac app and open it on macOS 14.4 or later. To build your own version, get the one-time $10 Supporter offer for the Swift source and its customization guide.
Add a project
Open Localhost King and add a project or scan a directory. Start your development server with its usual command in your terminal; adding a project does not start it.
Check a project’s storage
Choose Storage in the sidebar, select a project, then click Scan Project to measure its folder. Select an eligible cache and choose Review Cleanup to see the exact path and size before moving it to Trash. Explore Storage.
Use local HTTPS
Set up a local domain for your project and review Settings → Local. Certificate trust applies to your macOS user account. A .localhost name resolves automatically; other supported local names may require an administrator-authorized hosts-file change.
Leave external tools on Automatic
Core project and port management needs no extra tools. Install cloudflared only for tunnels, using brew install cloudflared if you use Homebrew. The system OpenSSL-compatible tool normally handles certificate generation. Override an executable only for a trusted custom installation.
Share with Cloudflare
A public tunnel makes a local service reachable over the internet. Use an appropriate test project. For dashboard-managed tunnels, Cloudflare owns configuration and DNS; Localhost King runs the connector. Cloudflare account and service terms apply separately.
Turn on dependency alerts
Choose Vulnerabilities in the sidebar, or open Settings → General → Dependency Alerts. Localhost King checks your projects’ npm, pnpm, Yarn, and Composer lockfiles against OSV.dev and notifies you when a new advisory affects a project. Only package names and versions are sent, and checks stay off until you turn them on.
Keychain access
Background refreshes do not open password prompts. If credentials are unavailable, use Settings → Cloudflare → Allow Keychain Access when you are ready. In the macOS dialog, Allow permits one read; Always Allow permits future access for that build.
For more help inside the app, choose Help → Localhost King Help.