返回顶部
v

vibetunnelVibe隧道管理

Manage VibeTunnel terminal sessions. Create, list, monitor, and control terminal sessions visible in the VibeTunnel web dashboard.

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

vibetunnel

VibeTunnel

通过 REST API 管理 VibeTunnel 终端会话。可创建、列出、监控和控制 Web 仪表板中可见的会话。

设置

VibeTunnel 必须处于运行状态。默认地址:http://localhost:8080。可通过 VT_URL 环境变量覆盖。

健康检查

bash curl -s ${VT_URL:-http://localhost:8080}/api/health | jq .

列出会话

bash curl -s ${VT_URL:-http://localhost:8080}/api/sessions | jq .

紧凑视图:
bash
curl -s ${VT_URL:-http://localhost:8080}/api/sessions | jq -r .[] | \(.status | if . == running then ● else ○ end) \(.name) [\(.id | .[0:8])]

创建会话

bash curl -s -X POST ${VT_URL:-http://localhost:8080}/api/sessions \ -H Content-Type: application/json \ -d {command: [zsh, -l, -i], name: my-session, workingDir: /path/to/dir} | jq .

参数:

  • - command:数组 — 命令及参数(默认值:[zsh, -l, -i])
  • name:字符串 — 显示名称
  • workingDir:字符串 — 工作目录
  • cols:数字 — 终端宽度(默认值:120)
  • rows:数字 — 终端高度(默认值:30)

获取会话

bash curl -s ${VT_URL:-http://localhost:8080}/api/sessions/ | jq .

删除会话

bash curl -s -X DELETE ${VT_URL:-http://localhost:8080}/api/sessions/ | jq .

发送输入

bash curl -s -X POST ${VT_URL:-http://localhost:8080}/api/sessions//input \ -H Content-Type: application/json \ -d {text: ls -la\n} | jq .

注意:包含 \n 以执行命令。

调整会话大小

bash curl -s -X POST ${VT_URL:-http://localhost:8080}/api/sessions//resize \ -H Content-Type: application/json \ -d {cols: 150, rows: 40} | jq .

示例

启动 Claude Code 会话:
bash
curl -s -X POST ${VT_URL:-http://localhost:8080}/api/sessions \
-H Content-Type: application/json \
-d {command: [claude], name: claude-code, workingDir: ~/repos/my-project} | jq .

启动 tmux 会话:
bash
curl -s -X POST ${VT_URL:-http://localhost:8080}/api/sessions \
-H Content-Type: application/json \
-d {command: [tmux, new, -A, -s, work], name: tmux-work} | jq .

清理已退出的会话:
bash
curl -s ${VT_URL:-http://localhost:8080}/api/sessions | jq -r .[] | select(.status == exited) | .id | \
xargs -I {} curl -s -X DELETE ${VT_URL:-http://localhost:8080}/api/sessions/{}

环境变量

变量默认值描述
VT_URLhttp://localhost:8080VibeTunnel 服务器 URL

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 vibetunnel-1776382596 技能

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

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

通过命令行安装

skillhub install vibetunnel-1776382596

下载

⬇ 下载 vibetunnel v1.0.0(免费)

文件大小: 1.66 KB | 发布时间: 2026-4-17 15:44

v1.0.0 最新 2026-4-17 15:44
Initial release: pure SKILL.md with curl-based REST API patterns for VibeTunnel session management

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

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

p2p_official_large
返回顶部