Skip to content

Repository files navigation

pi-web-codex

A polished local web host for Pi coding-agent workflows

Run Pi sessions, projects, extensions, and developer tools in a fast browser UI that stays local, inspectable, and scriptable.

npm version npm downloads GitHub stars License Node.js


中文文档 · NPM · GitHub

See it in action

Pi session with streaming output and environment inspector Extension marketplace and integrations

Searchable archived tasks Appearance and theme settings

Why pi-web-codex

Capability What it means in practice
Real-time Pi sessions Prompt streaming, tool events, abort, retry, compaction, model and thinking controls.
🧭 Projects and session history Browse JSONL projects, search full text, fork or clone sessions, navigate branches, and export/import JSONL or HTML.
🧩 Native WebUI Extensions Render dialogs, editors, widgets and overlays in the browser while preserving Pi's original TUI fallback.
🔌 MCP and runtime controls Configure stdio or Streamable HTTP servers, inspect connection status, and reload idle runtimes safely.
🛠️ Developer visibility Read-only files, Git branch/commit/worktree state, environment details and runtime diagnostics in one place.
📦 Local-first delivery A standalone CLI, installable PWA, atomic settings, optional notifications and no hosted account required.

Install and run

Requires Node.js 22.19+ or Node.js 24+. Node.js 23 is not supported.

npm install --global pi-web-codex
pi-web-codex

The host opens http://127.0.0.1:1816 when the server is ready. Use pi-web-codex --help to see all CLI options.

Development

npx pnpm@11.12.0 install
npx pnpm@11.12.0 dev

Open http://127.0.0.1:1816, then run the focused checks below before publishing:

npx pnpm@11.12.0 test
npx pnpm@11.12.0 typecheck
npx pnpm@11.12.0 lint
npx pnpm@11.12.0 build

For the complete packed-release check:

npx pnpm@11.12.0 release:verify

This builds the portable standalone tree, verifies the NPM tarball contains both compiled workers and no TypeScript business source, installs it into a temporary global prefix, and starts the installed CLI through its health check.

Extending the host

WebUI Extensions are optional adapters for existing Pi Extensions. They can progressively replace known commands and renderers with browser-native Shadow DOM views. If an adapter is absent, disabled, incompatible, conflicting or fails at runtime, the original Pi behavior and Virtual TUI remain available.

Project status

The current milestone covers the production host lifecycle, health and settings APIs, real Pi JSONL projects and standalone tasks, isolated Pi SDK workers, session lifecycle operations, extension settings, MCP management, project Git/file inspection, PWA caching and runtime diagnostics. No UI is presented without a backing operation.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages