agegr/pi-web
Web UI for the pi coding agent
What it solves
Pi Web gives the pi coding agent a web-based interface. Instead of working only in a terminal, you can browse and resume past conversations, run agent turns, inspect project files, and configure models and resources—all from a regular browser. It uses the same local configuration and session files as pi, so nothing is duplicated or out of sync.
How it works
Pi Web runs as a local server on your machine (default port 30141) and opens a browser window after starting. You launch it with npx @agegr/pi-web@latest or install it globally with npm install -g @agegr/pi-web and run pi-web. The server reads pi's session data from ~/.pi/agent by default, and the Models panel shares pi's model, settings, and credential storage. It supports branching sessions, browsing files, viewing Git diffs, switching worktrees, and editing configuration without leaving the UI. You can also run it in Docker or behind a password if you need remote access.
Who it’s for
Pi Web is for developers who use the pi coding agent and want a graphical, browser-based way to interact with their sessions and projects. It’s especially useful if you prefer clicking through files and settings instead of typing commands, or if you need to switch between multiple Git worktrees while keeping sessions organized.
Highlights
- Browse, resume, rename, export, and delete conversations grouped by project, with details like running state, context usage, cost, and compaction.
- Two branching modes: New session creates an independent session file; Edit from here branches inside the current session.
- Built-in file tools: browse and upload files, inspect Git diffs, and preview source, Markdown, images, audio, PDFs, and DOCX with automatic refresh.
- Git worktree switcher keeps sessions from the same repository grouped together.
- Manage model logins, API keys, models, model tests, plugin packages, and skills from the web UI.
- Interface available in English, Simplified Chinese, and Traditional Chinese, following the browser language by default.
- A static demo is available online with sample data—no installation or model calls needed.
Related
- Project
- Project
- Project
- Project
- Project