Install moley
Prerequisites
- cloudflared — installed and on your
PATH - A domain on Cloudflare with DNS managed by Cloudflare
- A Cloudflare API token — required scopes are covered in the Quick Start
info
You don't need to run cloudflared tunnel login. Moley creates the tunnel via the API and writes the credentials file itself.
Install
- Homebrew
- Go
- Docker
- Binary
brew install --cask stupside/tap/moley
Requires Go 1.23+.
go install github.com/stupside/moley/v2@latest
A pre-built image bundling moley and cloudflared is published to ghcr.io/stupside/moley:latest. See Run moley in Docker for the full Compose setup.
docker pull ghcr.io/stupside/moley:latest
Grab a pre-built binary for your platform from the releases page.
Verify
moley info
info
Next: Quick Start — set up your first tunnel.