cli-tunnel
它能做什么
这项技能展示如何打开和关闭隧道,让本地的 OmniRoute 服务器能从互联网访问。适合需要外部访问的人,例如远程智能体或共享测试环境。
适用场景
- ✓当用户想让本地的 OmniRoute 服务器能从互联网访问的时候。
- ✓当用户想停止正在运行的隧道或更换其地址的时候。
- ✓当用户想检查隧道能否从外部访问的时候。
技能链接
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-tunnel/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的本地 OmniRoute 开一个隧道,让我的远程智能体可以访问它。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能列出创建、列出、检查、停止和轮换隧道的命令,还可查看隧道日志和信息,并测试外部是否可以访问。隧道可以是 ngrok、Cloudflare 或自定义设置。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Overview
Start and stop tunnel connections (ngrok, Cloudflare, custom) from the CLI. Inspect active tunnel URLs, configure authentication, and test external reachability.
Quick install
npm install -g omniroute # or: npx omniroute
omniroute --version
Subcommands
tunnel
Example:
omniroute tunnel
tunnel list
Flags:
--json
Example:
omniroute tunnel list
tunnel create [type]
Example:
omniroute tunnel create [type]
tunnel stop <type>
Flags:
--yes
Example:
omniroute tunnel stop <type>
tunnel status <type>
Flags:
--json
Example:
omniroute tunnel status <type>
tunnel logs <type>
Flags:
--tail <n>
Example:
omniroute tunnel logs <type>
tunnel info <type>
Flags:
--json
Example:
omniroute tunnel info <type>
tunnel rotate <type>
Flags:
--yes
Example:
omniroute tunnel rotate <type>
常见问题
支持哪些隧道类型?
这项技能提到了 ngrok、Cloudflare 和自定义隧道。
我能看到公开地址吗?
可以。info 和 status 命令会显示正在运行的隧道详情,包括它的网址。
我能安全地停止隧道吗?
可以。stop 命令会先要求确认,除非加上确认参数。
详情
作者的原始描述
Start and stop tunnel connections (ngrok, Cloudflare, custom) from the CLI. Inspect active tunnel URLs, configure authentication, and test external reachability.
热度
- GitHub 星标
- 84k
- 排名
- #1416
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …