omp packages

@watercol/pi-web-ui0.5.5

Web-based TUI for the pi coding agent

watercol Published 1 month ago MIT ~237 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

Pi Web UI

GitHub

A web-based terminal UI for the pi coding agent. Connect to a running pi session through your browser.

Light mode

Pi Web UI light mode

Dark mode

Pi Web UI dark mode

The UI supports both light and dark themes. Toggle between them using the button on the right side of the status bar; your choice is persisted and defaults to your system preference.

Prerequisites

  • Node.js >= 20

  • pi — the pi coding agent must be installed separately:

    npm install -g @earendil-works/pi-coding-agent
    

Install

Via pi (recommended)

pi install npm:@watercol/pi-web-ui

安装后 pi-web-ui 命令会自动链接到 pi 的 bin 目录,在 pi 的 bash 工具中可直接使用。 如果终端中提示命令不存在,请重新打开终端或将 ~/.pi/agent/bin 加入 PATH。

Via npm

npm install -g @watercol/pi-web-ui

Usage

pi-web-ui

Then open http://127.0.0.1:3210 in your browser.

Options

pi-web-ui [options]

Options:
  --host <host>       Host to bind, default 127.0.0.1
  --port <port>       Port to bind, default 3210
  --cwd <dir>         Working directory for pi --mode rpc, default .
  --pi-bin <path>     Pi executable, default PATH lookup for pi
  --provider <name>   Provider passed to pi
  --model <id>        Model passed to pi

Examples

# Run on a different port, accessible from LAN
pi-web-ui --host 0.0.0.0 --port 8080

# Point to a custom pi binary
pi-web-ui --pi-bin /usr/local/bin/pi-dev

# Specify model and working directory
pi-web-ui --provider openai --model gpt-4o --cwd ~/my-project

Development

cd pi-web-ui
npm install

# Build and run
npm run build
node dist/server/index.js

# Dev mode (auto-rebuild web on change requires separate Vite setup)
npm run dev

# Type-check without emitting
npm run typecheck

# Run tests
npm test

📋 View full changelog

License

MIT