返回顶部
t

tunelo内网穿透

Expose local services and files to the internet through a public HTTPS URL. Designed for AI agents — when you need to let a user preview files remotely, share a dev server, demo an app, or give temporary access to localhost. Use this whenever the user says "share this", "let me see it on my phone", "send me the link", or needs to access something running locally from another device/network.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.2.0
安全检测
已通过
106
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

tunelo

何时使用 tunelo

当用户需要以下操作时,请使用 tunelo:

  • - 远程预览文件 — 给我看看那个PDF、让我在手机上浏览这些文件
  • 共享本地开发服务器 — 给我一个链接访问你的React应用
  • 向同事演示内容 — 把URL发给我,让我测试一下
  • 从其他设备访问本地主机 — 移动端测试、远程调试
  • 共享目录 — 项目文件、文档、媒体文件、数据集

以下情况请勿使用 tunelo:

  • - 用户仅需本地访问(请使用 python3 -m http.server 或 tunelo serve . --local)
  • 文件已托管在公共位置

安装

bash
curl -fsSL https://tunelo.net/install.sh | sh

如果安装后找不到 tunelo,二进制文件位于 /usr/local/bin/tunelo。

命令

暴露本地HTTP服务

bash
tunelo http 3000 # 暴露端口3000 → 获取公共HTTPS URL
tunelo http 5173 # React/Vite开发服务器
tunelo http 8080 # 任意本地服务
tunelo http 3000 --private # 需要访问码才能访问

使用网页浏览器提供文件服务

bash
tunelo serve . # 当前目录 → 带文件浏览器的公共URL
tunelo serve ./dist # 指定目录
tunelo serve ~/Documents # 任意路径
tunelo serve . --local # 仅本地预览(无隧道,无公共URL)
tunelo serve . -l -p 8000 # 在端口8000上进行本地预览

文件浏览器在浏览器中运行 — 支持目录浏览、代码语法高亮、Markdown渲染、PDF查看器、图片/视频/音频播放、CSV/Excel表格。所有功能内置于二进制文件中,无需依赖。

选项

bash
tunelo http --relay my.server:4433 # 使用自定义中继服务器
tunelo http -H 192.168.1.100 # 转发到非本地主机
tunelo http --private # 自动生成访问码
tunelo http --code mysecret # 设置特定访问码

默认中继服务器为 tunelo.net:4433(免费公共中继)。自托管时使用 --relay。

典型代理工作流程

用户说把这些文件分享给我

bash
tunelo serve /path/to/files

将输出中的公共URL提供给用户

用户说我想在手机上查看

bash

如果有开发服务器正在运行:


tunelo http 3000

如果只是文件:

tunelo serve .

用户说让我的同事测试API

bash
tunelo http 8080 --private

提供共享URL(包含访问码)

用户说先在本地预览

bash
tunelo serve ./dist --local

在 http://localhost:3000 打开,无公共URL

工作原理

浏览器 → HTTPS → 中继服务器 → QUIC隧道 → 客户端 → 本地主机/文件服务器

  • - 自动分配公共HTTPS URL(随机子域名,如 abc123.tunelo.net)
  • QUIC传输 — 加密、多路复用、低延迟
  • 连接断开时自动重连
  • 会话限制:公共中继上的隧道约2小时后过期

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 tunelo-1776120325 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 tunelo-1776120325 技能

通过命令行安装

skillhub install tunelo-1776120325

下载

⬇ 下载 tunelo v0.2.0(免费)

文件大小: 2.05 KB | 发布时间: 2026-4-14 14:15

v0.2.0 最新 2026-4-14 14:15
Rewritten for AI agents — trigger phrases, typical workflows, when to use/not use

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部