Vibeshare Live

io.github.pooriaarab由 GitHub 账号 pooriaarab 发布v0.2.5更新于 Oct 24, 2026

Share a live agent coding session by URL. Spectate or invite in.

发布方自己的服务:AI Benchmark Index

已验证STDIO仅桌面开发者工具沟通与协作

概览

AI 生成的概览

一个本地 MCP 服务器,让助手可以提议通过 URL 分享其实时终端编码会话,观众只读观看,协作者需主机批准。

可以做什么
为当前会话创建分享,返回一个 URL,观众可在浏览器中实时只读观看终端,邀请链接下可申请加入。列出当前观众和待处理的加入申请,并停止正在进行的分享。分享由本地同意记录把关,数据流直接从用户自己的机器提供。
适用场景
适合需要让同事或观众实时观看智能体编码会话,或邀请他们申请协作者权限,同时不录制、不上传到托管服务的场景。
运行要求
以本地 npm 包形式通过 stdio 运行,用 npx 启动,需要 Node.js。首次运行会请求同意,记录在本地,可用参数跳过。公网点对点分享可能需要通过 ICE 服务器参数、环境变量或配置文件设置 TURN 中继。附加到已在运行的会话需要 tmux。
安装前请注意
分享会向持有链接的任何人暴露实时终端,其中可能包含源代码、密钥或其他敏感输出。公网模式使用点对点传输和信令服务,主机配置的 TURN 凭据会传给观众。批准加入申请只能由人通过 CLI 完成,而助手可以创建和停止分享,因此每次分享前都应确认。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Vibeshare Live,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

vibeshare

Share your live agent coding session by URL — traces.com-style, open source, CLI-first. Spectators watch read-only; invite links let viewers request to join as collaborators (host approves, live).

Part of the Vibe Suite — companion tools for agentic coding CLIs (Claude Code, Codex, Gemini, Grok/pi, Kimi). Ships as CLI + npm package + MCP server, built on @pooriaarab/vibe-core (consent ledger, hooks bus, badges).

Local-first: the share runs on your machine. The consent ledger gates every share (share:session scope), the stream is served straight from your host, and nothing is stored on a server.

Works with any harness

vibeshare shares a LIVE TERMINAL SESSION. It wraps a PTY, so the program inside is irrelevant — any agent CLI, shell, or TUI renders faithfully (colors, cursor, full-screen) via xterm.js in the browser.

Two ways to share a session:

  • Wrap at launch (no tmux): vibeshare --public -- <harness> — vibeshare is the parent, PTY-captures. Examples: vibeshare --public -- claude, -- codex, -- gemini, -- aider, -- opencode, -- kimi, -- amp, or any shell/command.
  • Attach to an already-running session (needs tmux): run the harness inside tmux, then vibeshare attach <pane> taps it live. Harness-agnostic — it captures the terminal, not the app.

Verified harnesses (all render the real TUI live): Claude Code (claude), OpenAI Codex (codex), Gemini CLI (gemini), aider (requires pip install aider-chat), opencode, Moonshot Kimi (kimi), pi (grok/glm), Sourcegraph amp (requires its own PATH setup). Others (Continue, Goose, Crush, Qwen, Cursor Agent, Warp, Zed, …) wrap identically — they're just terminal programs.

NeedCommand
Share a new claude sessionvibeshare --public -- claude
Share a running sessionRun it in tmux + vibeshare attach <pane>
Local-only sharingvibeshare -- <cmd>

Modes: --public (WebRTC P2P + e2e via getvibe.dev), --tunnel <provider> (12 providers, e2e), or local loopback/LAN. Presence + attributed chat included.

Demo

▶ Watch the launch video — claude is multiplayer now.

https://github.com/pooriaarab/vibeshare/raw/main/branding/launch-video.mp4

Install & build

sh
npm installnpm run build      # tsup → dist/ (cli.js, index.js, mcp.js + types)npm run typecheck  # tsc --noEmitnpm test           # vitest

CLI

sh
vibeshare                        # share your shell, spectate read-onlyvibeshare --invite --expire 1h   # viewers may request to join; auto-expiresvibeshare --pass hunter2         # passphrase second factorvibeshare -- npm test            # share a specific commandvibeshare --host 0.0.0.0         # share on your LAN (default: loopback only)
vibeshare viewers                # who's watching, pending join requestsvibeshare viewers --approve <id> # promote a viewer to collaboratorvibeshare viewers --kick <id>    # remove a viewer, livevibeshare stop                   # end the share (works from another terminal)

Running vibeshare prints the link:

● local · no data out  sharing:  npm test  url:      http://127.0.0.1:50613/s/KKxzdjLpr_km  access:   spectate (read-only)  expires:  until you stop  manage:   vibeshare viewers · vibeshare stop

Opening the URL shows a self-contained spectator page (no install for viewers) streaming the session live over SSE, with a "Request to join" button on invite links. First run asks for consent (--yes to skip); the grant is recorded locally in ~/.vibeshare/consent.json and can be revoked any time.

Read-only is real: there is no route that lets a viewer write — the host is the server of record, and promotion to collaborator goes only through a host-approved request (ViewerRegistry.canWrite() is the single gate).

Reliable connectivity (TURN)

--public shares are peer-to-peer with STUN only by default (free, no infra) — that works across most NATs. If viewers sit behind symmetric NATs or isolated networks and get stuck on "waiting for host", add a TURN relay: ICE config is set on the host and automatically propagated to viewers over signaling, so both ends use it.

Precedence, highest first:

  1. --ice-servers '<json>' CLI flag — a JSON array of RTCIceServer objects
  2. VIBESHARE_ICE_SERVERS env var (same JSON)
  3. ~/.vibeshare/config.json → "iceServers" key
  4. default: [{ "urls": "stun:stun.l.google.com:19302" }] (STUN only)
jsonc
// ~/.vibeshare/config.json — self-hosted coturn, or a provider// (metered.ca, Twilio, Cloudflare Calls TURN, …){  "iceServers": [    { "urls": "stun:stun.l.google.com:19302" },    {      "urls": "turn:turn.example.com:3478",      "username": "vibeshare",      "credential": "long-lived-or-temporary-secret"    }  ]}

The credentials are the host's own (short-lived tokens by convention); they travel over the signaling channel to viewers so the browser can reach the relay. Malformed flag/env JSON is reported and skipped — resolution falls through to the next source, never breaking the share.

npm library

ts
import { createShare, grantConsent } from 'vibeshare';
grantConsent('share from my tool');              // once; local ledgerconst { url, feed, viewers, revoke } = await createShare({  session: 'npm test',  access: 'spectate',                            // or 'invite'  expiry: '1h',                                  // or 'stop'});
feed.publish('tests starting…');viewers.on('request', (v) => viewers.approve(v.id));await revoke();

createShare throws ConsentRequiredError without a share:session grant. Bring your own plumbing with ShareManager, LocalHttpTransport, and FileConsentStore.

MCP server

json
{  "mcpServers": {    "vibeshare": { "command": "vibeshare-mcp" }  }}

Tools: vibeshare_create, vibeshare_viewers, vibeshare_stop — so an agent can offer "share this session?". Your MCP client's tool-approval prompt is the consent act (recorded with that note). Approving join requests stays human-only, via the CLI.

Architecture & the vibelive seam

vibeshare owns the link + gate; session content is an ordered feed served to spectators. The one deliberate seam is transport (src/transport.ts):

  • LocalHttpTransport (implemented, default): spectator page + SSE stream + loopback host-control API, served from your machine. Nothing stored on a server.
  • RelayTransport (lands with vibelive): a dumb e2e relay / p2p mesh handing out public vibeshare.io URLs — same ShareTransport interface, swap-in only. Collaborator input routing is part of that seam and must pass ViewerRegistry.canWrite().

Everything else — consent, access policy, passphrase gate, expiry teardown, viewer registry, revocation — is fully implemented and tested.

Prototype

The original UX prototype (no build, no network): open docs/prototype.html. Spec: docs/spec.md.

来源:README.md,提交 529f0a7

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.5最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Aibenchmarkindex 集成