From 29b97a45f2c2a47c3da23ec3ae3e9953c5830ceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=B4=E5=A4=A9?= Date: Mon, 23 Feb 2026 02:29:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20GitHub=20Pages=20?= =?UTF-8?q?=E5=AE=98=E7=BD=91=E5=8D=95=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/CNAME | 1 + docs/index.html | 316 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 317 insertions(+) create mode 100644 docs/CNAME create mode 100644 docs/index.html diff --git a/docs/CNAME b/docs/CNAME new file mode 100644 index 0000000..d6813b1 --- /dev/null +++ b/docs/CNAME @@ -0,0 +1 @@ +cftunnel.qt.cool diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..2264641 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,316 @@ + + + + + +cftunnel — Cloudflare Tunnel 一键管理 CLI | 内网穿透工具 + + + + + + + + + + + + + + + +
+
+

一条命令
localhost → 公网域名

+

基于 Cloudflare Tunnel 的开源 CLI 工具,免费、安全、无需公网 IP

+ +
+
+
+
+
+
+
+
$ cftunnel quick 3000
+
正在下载 cloudflared...
+
cloudflared 已下载
+
✔ 隧道已启动: https://portrait-liverpool-essentials.trycloudflare.com
+
+
+ + +
+
+ +
+
+
+

为什么选 cftunnel

+

把 Cloudflare Tunnel 的繁琐流程封装成极简 CLI

+
+
+
+
+

免域名模式

+

cftunnel quick <端口>,零配置生成 *.trycloudflare.com 临时公网地址,无需账户和域名

+
+
+
🔧
+

极简操作

+

init → create → add → up,4 条命令搞定自有域名穿透,DNS CNAME 自动创建和清理

+
+
+
🌍
+

跨平台

+

macOS (Intel / Apple Silicon)、Linux (amd64 / arm64)、Windows (amd64 / arm64),6 个平台全覆盖

+
+
+
🔒
+

安全免费

+

基于 Cloudflare 全球网络,流量加密传输,无需公网 IP,完全免费使用

+
+
+
🖥️
+

系统服务

+

cftunnel install 一条命令注册开机自启,macOS launchd / Linux systemd / Windows Service

+
+
+
🤖
+

AI 集成

+

内置 Claude Code / OpenClaw Skills,AI 编码助手可直接帮你管理隧道

+
+
+
+
+ +
+
+
+

cftunnel vs 原生 cloudflared

+

同样的 Cloudflare Tunnel,更简单的操作方式

+
+
+ + + + + + + + + + + +
操作原生 cloudflaredcftunnel
免域名穿透cloudflared tunnel --url 手动操作cftunnel quick <端口>
创建隧道登录浏览器 + 手动配置cftunnel create my-tunnel
DNS 记录手动去 Dashboard 创建 CNAME自动创建
多路由管理手动编辑 YAML 配置add / remove / list
开机自启手动写 systemd / launchdcftunnel install
清理资源手动删隧道 + 删 DNS + 删配置cftunnel destroy
自更新cftunnel update
+
+
+
+ +
+
+
+

安装

+

单二进制文件,零运行时依赖

+
+
+
+ + + +
+
+
$ curl -fsSL https://raw.githubusercontent.com/qingchencloud/cftunnel/main/install.sh | bash
+

支持 macOS Intel / Apple Silicon、Linux amd64 / arm64

+
+
+
PS> irm https://raw.githubusercontent.com/qingchencloud/cftunnel/main/install.ps1 | iex
+

支持 Windows amd64 / arm64,自动添加到 PATH

+
+
+
$ git clone https://github.com/qingchencloud/cftunnel.git
+$ cd cftunnel
+$ make build
+

需要 Go 1.21+

+
+

+ 也可以从 GitHub Releases 手动下载 +

+
+
+
+ +
+
+
+

快速上手

+

两种模式,按需选择

+
+
+
+
+ 方式一:免域名模式 + 零配置,临时分享和调试 +
+
$ cftunnel quick 3000
+
+✔ 隧道已启动:
+https://xxx-yyy-zzz.trycloudflare.com
+
+# Ctrl+C 退出,域名自动失效
+
+
+
+ 方式二:自有域名模式 + 固定域名,稳定持久 +
+
$ cftunnel init
+$ cftunnel create my-tunnel
+$ cftunnel add app 3000 --domain app.example.com
+$ cftunnel up
+
+# app.example.com → localhost:3000
+
+
+
+
+ + + + + +