Skip to content

Clarify in README that -H 0.0.0.0 starts a public Cloudflare tunnel - #7007

Merged
danielhanchen merged 6 commits into
unslothai:mainfrom
oobabooga:readme-cloudflare-tunnel-docs
Jul 10, 2026
Merged

danielhanchen merged 6 commits into
unslothai:mainfrom
oobabooga:readme-cloudflare-tunnel-docs

Conversation

@oobabooga

Copy link
Copy Markdown
Member

The README described -H 0.0.0.0 as a LAN-only bind ("Only use this on a trusted network"), but a wildcard bind also starts a public Cloudflare tunnel by default and publishes an internet-reachable https://*.trycloudflare.com URL. A user was caught out by this on Discord: they launched for the local network and ended up exposed to the internet, with nothing in the docs about it.

Docs-only. The -H 0.0.0.0 bullet now says it starts a public tunnel by default, that the URL works even behind a firewall, and that --no-cloudflare drops the public link while keeping the network bind. The startup warning banner for this already exists (#6515).

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the README.md documentation to explain that binding to all network interfaces with -H 0.0.0.0 starts a public Cloudflare quick-tunnel by default, and introduces the --no-cloudflare flag to disable it. The review feedback suggests minor phrasing and terminology improvements to enhance readability and maintain a professional tone.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread README.md Outdated
unsloth studio --secure -p 8888
```
- `-H 0.0.0.0`: bind the raw port on all network interfaces, reachable from anywhere on the network. Only use this on a trusted network.
- `-H 0.0.0.0`: bind the raw port on all network interfaces, reachable from anywhere on the network. Only use this on a trusted network. This also starts a public Cloudflare tunnel by default, exposing Studio to the internet at a `https://*.trycloudflare.com` URL that works even behind a firewall. Pass `--no-cloudflare` to drop the public link while keeping the network bind.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve readability and maintain consistency with standard terminology (and the rest of the codebase), we can remove the hyphen from "quick-tunnel" to make it "quick tunnel". Additionally, we can streamline the parenthetical "(when it comes up)" to "once connected" or "once established" for a more professional tone.

Suggested change
- `-H 0.0.0.0`: bind the raw port on all network interfaces, reachable from anywhere on the network. Only use this on a trusted network. This also starts a public Cloudflare tunnel by default, exposing Studio to the internet at a `https://*.trycloudflare.com` URL that works even behind a firewall. Pass `--no-cloudflare` to drop the public link while keeping the network bind.
- `-H 0.0.0.0`: bind the raw port on all network interfaces, reachable from anywhere on the network. This also starts a public Cloudflare quick tunnel by default, which publishes an internet-reachable `https://*.trycloudflare.com` URL once connected (even behind a firewall). Both the raw port and the tunnel expose Studio beyond this machine, so only use this on a network you trust; pass `--no-cloudflare` to drop the public link while keeping the network bind.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed: adopted Cloudflare's own 'quick tunnel' terminology and merged the trust warning to cover both the raw port and the tunnel.

@oobabooga

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 995c097c4a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@danielhanchen
danielhanchen merged commit b0b8aea into unslothai:main Jul 10, 2026
2 checks passed
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