@gang-of-beads/pi-web

中文文档
2.202611.1发布于 2026/11/15MITTypeScriptES Module构建来源已验证近 30 天下载 4490

Web UI for persistent Pi Coding Agent sessions in real workspaces.

原始使用文档
文档目录8 节
  1. Why PI WEB?
  2. Quick start
  3. Recommended setup
  4. Core model
  5. Security
  6. Documentation
  7. Contributing
  8. License

PI WEB

English | 简体中文

Release npm version Node.js License: MIT

PI WEB is a web UI for Pi Coding Agent that keeps agent sessions running in real workspaces on your machine or server.

Run agents where your code, tools, credentials and build caches live. Supervise them from any browser.

PI WEB

https://github.com/user-attachments/assets/21ae3e58-6706-4108-afca-5fa4e265104a

PI WEB on a desktop: sessions, a conversation and the project's files

The session board on a phone The Go to menu on a phone A conversation on a phone in Material Light

On a phone: the session board, the Go to menu, and a conversation in the light theme.

Why PI WEB?

Agentic development works better when the work environment is persistent. PI WEB lets you:

  • keep Pi Coding Agent sessions alive after browser disconnects;
  • run agents inside real repositories and git worktrees;
  • supervise several sessions in parallel;
  • switch between laptop, phone, tablet and desktop;
  • use a server, workstation or remote dev box as your agent runtime;
  • manage projects, workspaces, files, terminals, sessions and other machines from one web UI;
  • bring your Pi setup as it is: Pi packages, extensions, skills and prompt templates load in every session, and extensions' dialogs, notices and widgets show up in the browser (Pi extensions under PI WEB);
  • extend the page with PI WEB plugins: pages, actions, labels, themes and transcript renderers, with an optional server half; Files, Git, Terminal and Goals are bundled plugins, and more install like any Pi package;
  • work across machines in different places: put your home server, workstation, laptop and cloud dev boxes on one Tailscale tailnet, add them to one PI WEB page (Machines), and open each from any of your devices over HTTPS with Tailscale Serve, without opening a port to the internet. Your phone, tablet and laptop reach the same sessions remotely wherever you are: start a task at your desk, then follow and answer it from your phone.

Your browser is the control surface. The work stays where it can keep running. See Remote-first development.

Quick start

Requirements:

  • Node.js 22.19.0 or newer, and npm, on your login-shell PATH and able to npm install -g without sudo; see Requirements for nvm and distribution packages
  • Pi Coding Agent 1.5.2 or newer, configured for your user
  • git and the development tools your agents need; on Linux also python3, make and a C++ compiler (for example build-essential), which npm uses to build the terminal
  • Linux or macOS with a per-user service manager (systemd or launchd), Windows 10 or 11 (per-user scheduled tasks), or Termux on Android (termux-services)

Run PI WEB with the Gang of Beads preset on the machine where your code lives, publish it to your tailnet with Tailscale Serve, and use it from your phone.

  1. Install PI WEB as per-user services, with the agent tools and Web plugins of the Gang of Beads preset:

    curl -fsSL https://raw.githubusercontent.com/Gang-of-Beads/pi-web/main/install.sh | sh -s -- --preset gang-of-beads
    

    On a Linux server, also run sudo loginctl enable-linger "$USER" so the services keep running after you log out.

    On Windows, run this in PowerShell instead:

    $env:PI_WEB_PRESET = "gang-of-beads"; irm https://raw.githubusercontent.com/Gang-of-Beads/pi-web/main/install.ps1 | iex
    
  2. Publish it to your tailnet with Tailscale Serve (MagicDNS and HTTPS certificates enabled). PI WEB stays on loopback, and your devices get the HTTPS that dictation and the clipboard need:

    tailscale serve --bg --https=8504 http://127.0.0.1:8504
    
  3. On your phone, signed in to the same tailnet, open https://<machine>.<tailnet>.ts.net:8504 and add it to the Home Screen (Safari: Share → Add to Home Screen). It opens as an app: see Install on iPhone or iPad.

PI WEB alone, without the preset:

curl -fsSL https://raw.githubusercontent.com/Gang-of-Beads/pi-web/main/install.sh | sh

On Windows, in PowerShell (Windows has the details):

irm https://raw.githubusercontent.com/Gang-of-Beads/pi-web/main/install.ps1 | iex

Then open http://127.0.0.1:8504, or publish it as in step 2.

npm, Nix, Home Manager, Docker, installing through Pi, WSL and manual runs: see the installation guide.

Everyday commands:

pi-web status
pi-web logs
pi-web restart
pi-web doctor
pi-web version
pi-web uninstall

Core model

Machine     a PI WEB runtime: the one you opened, or another one you added
Project     a folder on that machine
Workspace   a working folder of the project: the project folder, or with Git, each worktree
Session     a Pi Coding Agent chat running inside a workspace

A typical flow: add a project, choose a workspace or git worktree, start a session, let the agent work, and come back later from any browser.

Security

PI WEB has no user accounts and assumes trusted users, repositories and server paths; it is not a sandbox or a multi-user platform. Keep it on localhost, a private network, an SSH tunnel or an authenticated reverse proxy, never directly on the public internet; an optional access token adds a second layer. See SECURITY.md for the threat model and how to report a vulnerability.

Documentation

Plugins and packages maintained alongside PI WEB: docs/plugins.md.

Contributing

See CONTRIBUTING.md for the development setup, checks and pull request expectations.

License

MIT © 2026 Gang of Beads contributors. See LICENSE and NOTICE.

版本与发布记录

@gang-of-beads/pi-web 共发布 70 个版本,首次发布于 2026/09/02;过去 12 个月发布了 70 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.202611.1latest2026/11/15今天
2.202611.02026/11/097 天前
2.202610.272026/11/0511 天前
2.202610.262026/11/0411 天前
2.202610.252026/11/0312 天前
2.202610.242026/10/3016 天前

关于 @gang-of-beads/pi-web 的常见问题

@gang-of-beads/pi-web 是什么?

Web UI for persistent Pi Coding Agent sessions in real workspaces.

如何安装 @gang-of-beads/pi-web?

在项目目录运行 npm install @gang-of-beads/pi-web,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@earendil-works/pi-ai(^1.5.2)、@earendil-works/pi-tui(^1.5.2)、@earendil-works/pi-agent-core(^1.5.2)、@earendil-works/pi-coding-agent(^1.5.2)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 pi-web、pi-web-server、pi-web-sessiond,可以用 npx pi-web 直接运行。

@gang-of-beads/pi-web 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@gang-of-beads/pi-web 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@gang-of-beads/pi-web 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.19.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@gang-of-beads/pi-web 可以商用吗?

@gang-of-beads/pi-web 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@gang-of-beads/pi-web 的下载量有多少?

根据 npm 官方下载统计,@gang-of-beads/pi-web 在 2026/10/16 – 2026/11/14 这 30 天内被下载 4,490 次,日均约 150 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@gang-of-beads/pi-web 还在维护吗?

最新版本 2.202611.1 发布于 2026/11/15(今天);至今共发布 70 个版本,其中过去 12 个月发布了 70 个;首次发布于 2026/09/02。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。