Skip to content

Install and find cloudflared on Windows - #4

Merged
devXpro merged 1 commit into
devXpro:mainfrom
alexkonstant:windows-cloudflared
Nov 17, 2026
Merged

devXpro merged 1 commit into
devXpro:mainfrom
alexkonstant:windows-cloudflared

Conversation

@alexkonstant

Copy link
Copy Markdown
Contributor

What

On Windows, Address → Connect fails with Unpacking cloudflared-darwin-amd64.tgz failed:. Without Homebrew, install() always downloads the macOS .tgz and unpacks it with /usr/bin/tar, and God Mode's own copy is looked up as bin/cloudflared, without .exe.

This PR, on Windows only:

  • downloads cloudflared-windows-amd64.exe straight into ~/.paseo/god-mode/bin/cloudflared.exe (Cloudflare publishes no Windows arm64 build; the amd64 one runs under emulation on Windows 11 on ARM);
  • looks for God Mode's own copy as cloudflared.exe;
  • says in signIn() why the PATH override also keeps cloudflared from opening a browser on Windows (it launches it through cmd, which that PATH hides);
  • adds two lines to docs/configuration.md.

macOS behaves exactly as before.

Scope

Only installing and finding cloudflared. With the binary in place, the rest already worked on Windows: sign-in, tunnel create, route dns, tunnel run, the gateway and assistant tool calls. The voice button stays Mac-only, and the docs still describe a Mac.

A known limit this PR leaves alone: on Windows cloudflared takes its home directory from HOME before USERPROFILE, while os.homedir() ignores HOME. With HOME set somewhere else (MSYS2, Cygwin), the sign-in watcher would look for cert.pem in the wrong place.

Testing

Windows 11 x64, Node 22.22.2, Paseo 0.15.4.

  • npm run check: the typecheck is clean and 334 of 342 tests pass. The 8 failures fail the same way on main on Windows (server/process.test.ts needs cat; server/voice-button/mac.test.ts is macOS-only), and neither file imports cloudflared.ts.
  • Tunnel.beginSetup() with GOD_MODE_DATA_DIR pointing at an empty directory downloaded cloudflared 2026.11.0 to bin\cloudflared.exe and reached signing-in with the Cloudflare login link. stop() left no cloudflared process behind.
  • The full flow on the same machine, with cloudflared put in place by hand before this fix: sign-in, tunnel, DNS route and tunnel run work, and an assistant's tool calls reach Paseo through the tunnel.

🤖 Generated with Claude Code

Without Homebrew God Mode downloaded the macOS .tgz and unpacked it with
/usr/bin/tar, so Address -> Connect failed on Windows with "Unpacking
cloudflared-darwin-amd64.tgz failed". On Windows it now downloads
cloudflared-windows-amd64.exe straight into bin/ and looks for it as
cloudflared.exe. macOS behaves as before.
@devXpro
devXpro merged commit 22bdbc8 into devXpro:main Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants