PI WEBUI

Web UI for Pi Coding Agent v1.28.3

Agent sessions
that outlive
your browser.

PI WEBUI runs Pi Coding Agent inside your real repositories and git worktrees — on the laptop in front of you or the server that never sleeps. Close the tab. The work keeps going.

  • Persistent session daemon
  • Git worktrees
  • Remote machine fleets
  • MIT licensed
http://127.0.0.1:8809 live
PI WEBUI showing projects, git worktrees, live sessions and an agent transcript
  • projects
  • worktrees
  • files
  • git
  • terminals
  • sessions
  • machines
  • plugins
  • model tiers
  • mobile

The shift

Your laptop is a window.
The workstation is somewhere else.

Local-first tools assume the work lives with you, inside your tab, on your device. Agentic development breaks that assumption: agents keep working after the window closes, and the tools, credentials, caches, and repositories they depend on should stay put.

Chat tab

Ephemeral by default

  • Closing the tab ends the run.
  • Context is rebuilt by re-uploading files.
  • The browser owns the runtime.
  • One device, one window, one conversation.
PI WEBUI

Persistent by design

  • Sessions live in a detached daemon, not a tab.
  • Agents read, edit, build and test in place.
  • The runtime owns the workspace and its tools.
  • Every browser is a control surface for the same work.

Persistence should not be bolted on after the fact.

Work should not disappear when a session ends.

You do not carry the work. You guide it.

What you get

A control plane for agent work.

Not a prettier chat box. A runtime you can point at real code, supervise from anywhere, and extend with plugins, model tiers, and remote machines.

Persistent sessions, by architecture

A separate session daemon owns every running Pi session. Browser disconnects, UI reloads, and API restarts do not stop active work — you reattach to the same live transcript.

Real workspaces

Point PI WEBUI at a project folder or a git worktree. Agents work where the code, dependencies, build caches, and credentials already are.

Parallel supervision

Run many sessions at once, step through long transcripts with the chat minimap, and watch live generation metrics while agents work.

Machine fleets

Register other PI WEBUI runtimes and proxy projects, files, git state, sessions, terminals, activity, and Pi package management from one browser.

Model tiers

A six-rung economy → frontier ladder routes session work, while separate utility models handle titles, branch summaries, and compaction.

Files, git, terminal

Inspect diffs, browse the tree, preview images, and open a terminal without leaving the conversation or the machine hosting it.

Plugins and per-workspace packages

Trusted browser plugins add actions, workspace panels, and metadata. Pi packages install per workspace from the UI, and skills, prompt templates, and themes stay scoped to the project that needs them.

The core model

Four nouns. No mystery.

Everything in PI WEBUI maps onto this ladder — from a laptop to a fleet of servers.

  1. 01

    Machine

    A local or remote PI WEBUI runtime endpoint. Remote machines are proxied through the browser-facing instance.

  2. 02

    Project

    A folder on that machine. Add it once, then work inside it from any device.

  3. 03

    Workspace

    A git worktree, or the project folder itself for non-git projects. Agents run here, in place.

  4. 04

    Session

    A Pi Coding Agent conversation with its own model policy, tools, transcript, and cost accounting.

A first run, end to end

  1. 1 PI WEBUI creates and opens ~/workspace.
  2. 2 Pick a workspace or worktree, or add another project.
  3. 3 Send a prompt — the first session is created automatically.
  4. 4 Let the agent work. Come back later from any browser.

Screens

Built for the desk.
Readable from the sofa.

The same live sessions, framed for whatever glass is in front of you.

Install

Running in about a minute.

Node.js 22.19+, npm, git, and a Pi Coding Agent login. Everything else is your normal toolchain.

  1. 1

    Install the package

    npm install -g @hyperdreamer/pi-webui
  2. 2

    Start it

    pi-webui
  3. 3

    Open the browser

    Visit http://localhost:8809. Then set up Settings → Model tiers and Settings → Utility models before serious work.

Prefer source? Clone the repository
git clone https://github.com/hyperdreamer/pi-webui.git
cd pi-webui
npm install
./start.sh

FAQ

The short answers.

What happens to a session when I close the browser?

Nothing. Sessions are owned by the session daemon, not by a tab. Reopen the UI and you reattach to the same live transcript, tool calls, and metrics.

Can I use it from my phone or tablet?

Yes. The UI adapts to desktop, tablet, and phone layouts, and every device sees the same sessions on the same runtime.

Is it safe to expose to the internet?

Not directly. PI WEBUI assumes trusted users and trusted repositories and is not a sandbox or multi-tenant service. Use a private network, VPN, SSH tunnel, or an authenticated reverse proxy, and keep your own access controls in front of it.

Where does configuration live?

Global user/machine config is at $PI_WEBUI_CONFIG or ~/.config/pi-webui/config.json. Project-local config lives in <project>/.pi-webui/config.json. PI WEBUI-managed state such as projects and machines lives in ~/.pi-webui.

How do remote machines work?

Register another PI WEBUI runtime as a machine. The browser-facing instance proxies projects, files, git state, sessions, terminals, activity, Pi package management, and selected-machine settings from it.

What if tools are missing inside PI WEBUI?

Services run login shells, so fix PATH in your login shell startup files. If you installed PI WEBUI as user services, restart them afterwards; on a split setup, the session daemon is the process that needs the restart.

Ready when you are

Give your agents somewhere to keep working.

Star on GitHub