vibetunnel
Manage VibeTunnel terminal sessions. Create, list, monitor, and control terminal sessions visible in the VibeTunnel web dashboard.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
VibeTunnel
Manage VibeTunnel terminal sessions via REST API. Create, list, monitor, and control sessions visible in the web dashboard.
Setup
VibeTunnel must be running. Default: http://localhost:8080. Override with VT_URL env var.
Health Check
curl -s ${VT_URL:-http://localhost:8080}/api/health | jq .
List Sessions
curl -s ${VT_URL:-http://localhost:8080}/api/sessions | jq .
Compact view:
curl -s ${VT_URL:-http://localhost:8080}/api/sessions | jq -r '.[] | "\(.status | if . == "running" then "●" else "○" end) \(.name) [\(.id | .[0:8])]"'
Create Session
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 .
Parameters:
-
command: array — command + args (default:["zsh", "-l", "-i"]) -
name: string — display name -
workingDir: string — working directory -
cols: number — terminal width (default: 120) -
rows: number — terminal height (default: 30)
Get Session
curl -s ${VT_URL:-http://localhost:8080}/api/sessions/<id> | jq .
Delete Session
curl -s -X DELETE ${VT_URL:-http://localhost:8080}/api/sessions/<id> | jq .
Send Input
curl -s -X POST ${VT_URL:-http://localhost:8080}/api/sessions/<id>/input \
-H "Content-Type: application/json" \
-d '{"text": "ls -la\n"}' | jq .
Note: include \n to execute the command.
Resize Session
curl -s -X POST ${VT_URL:-http://localhost:8080}/api/sessions/<id>/resize \
-H "Content-Type: application/json" \
-d '{"cols": 150, "rows": 40}' | jq .
Examples
Launch Claude Code session:
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 .
Launch tmux session:
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 .
Clean up exited sessions:
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/{}
Environment Variables
| Variable | Default | Description |
|---|---|---|
VT_URL |
http://localhost:8080 |
VibeTunnel server URL |
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-03-11
- 索引更新时间
- 2026-03-11
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!