Pi-web is an absolutely KILLER web interface to PI coding agent

256 views Pinned
Nick Antonaccio
Nick AntonaccioAdmin
Sep 28, 2026 at 11:50 (edited, 10 revisions)
#1

Pi-web is a browser interface to Pi coding agent, which can run on any server where you have Pi installed:

https://github.com/agegr/pi-web

Install pi-web, and it gives you a full-fledged UI, to control interactions with your Pi coding agent, all entirely in your web browser.

Installation is dead simple

Install and run pi-web at the command line of your application server:

PI_WEB_PASSWORD='your-password-123xyz!' \
PI_WEB_ALLOWED_HOSTS='pi.yourdomain.com' \
npx @agegr/pi-web@latest \
  --hostname 0.0.0.0 \
  --port 9247 \
  --no-open

To implement secure HTTPS, set up Caddy on your server:

pi.yourdomain.com {
  reverse_proxy localhost:9247
}

That's all it takes to make pi-web available at https://pi.yourdomain.com (or without encryption, at http://localhost.com:9247 (then you don't even need the Caddy piece - but you should always set up HTTPS)). 1 minute and done.

Why use pi-web

One thing pi-web lets you do is use your own locally installed Pi agent like a ChatGPT/Claude/etc. interface, on any device that has a browser. Pi-web lets you select from any of the models you have configured in your local Pi installation (from Openrouter, Deepseek, OpenAI, Anthropic, Cline-pass, or any other LLM provider that Pi can be configured to use) - and that includes any locally hosted models running on any inference engine (LM Studio, Llama.cpp, Ollama, vLLM, etc.), which you've set up to run in Pi.

Pi-web uses all the same local configuration and session files as your existing Pi installation, so you can browse, resume, and export conversations, branch agent sessions, configure models and resources, inspect project files, etc., directly in your browser. And anything you do in your browser with pi-web, gets saved to your local Pi configuration, just as if you'd performed those operations in a command line session.

But that's just the beginning. You're not limited to running pi-web on a local computer, or using it just for chat. Install it on a VPS, so you can access Pi anywhere, and use all of Pi's deep agentic capabilities.

The main thing pi-web does is eliminate the need to use the command line of a local server, or SSH to access a remote server command line. Pi-web enables all the interactions you normally have with Pi at the command line, directly in your web browser. It provides a beautiful UI experience, suitable for users of any level. Your grandmother can run the pi-web user interface.

And of course, you're not limited to using Pi-web as a chat interface. Because pi-web is simply a web UI to Pi, you get all the same capabilities you'd get when running Pi at the command line of your PC, at the SSH command line of your VPS, etc. You can build software and run it immediately on your server, work with files on your hard drive, control the computer in any way you want...

This setup provides an extraordinarily flexible, complete environment, with a simple interface to any imaginable AI workflow, which can, for example, totally replace software development services such as Replit, Lovable, Bolt.net, etc., without any of the limitations or server expenses associated with those sorts of commercial providers. Install any infrastructure, software packages, libraries, and tools you want, run self-hosted local models to process private data, and maintain compliance requirements in any way you need. You have complete control, because you run everything on your own machine(s). Pi-web simply gives users access to the full command line capabilities of a local Pi agent, without ever needing to touch a command line.

Adding Pi-web's easy web interface to your server forms the foundation of an end-to-end self-hosted AI production environment, which can be run fully from any device that has a modern browser.

Rent a VPS for $5/month, subscribe to Cline-pass for $7/month, or use any other LLM provider, including your own self-hosted models, and you've got an entire production environment where you can build and deploy software of any complexity, perform research, manage any hardware - do anything you can do with any computing system - all controlled entirely from any client device that runs a browser (any form factor works, any OS, old hardware works, etc.).

Get a VPS account from Contabo (or OVH Cloud, or any other competitor) for ~$5 per month. Them get an account from Cline-pass for ~$80 per year (less than $7 per month). If you use the newest Flash models like Deepseek v4.1, GLM 5.3, and Mimo 2.6, you'll get virtually endless monthly use of near-frontier capable models, without the constant rate limiting or pay-per-token fees of other LLM providers - and lots of access to even the biggest open-source models (Kimi K3, Qwen 3.8 Max, GLM 5.3, Mimo 2.6 Pro, etc.). Add a domain name from any Registrar, and this entire setup costs less that $150 per year.

If you want to run a fully self-hosted AI system, from the ground up, get an old laptop with a mobile RTX 3080ti, or any other GPU which is able to run a model such as Qwen 3.6 35a3, and you've got a significantly capable, fully off-grid, private setup, without any rate limits whatsoever, for a one time cost of around $1000 total. Of course you can spend tens of thousands of dollars on GPU equipment to run the best open source LLMs, but a little Qwen model can accomplish a lot of useful daily work. The point is, pi-web can make the whole setup much simpler to use.

I first set up pi-web after purchasing a couple old Amazon Fire devices at a garage sale for $5, and wanted a way to access my own AI models on them. Pi-web worked absolutely beautifully on those cheap little machines (which have huge operational OS limitations), and also worked immediately on my phone, old Chromebooks, desktop PCs, tablets, old netbooks and Linux boxes, etc., all without installing any software on any of those machines. You just need to open any browser to your pi-web URL, enter your password, and the entire environment is available and fully capable of doing anything you'd normally have to be at a computer console to control. You can move between locations and access a single production development environment which contains all your files, using any device you have available at any site.

This is a cheap, simple, light weight solution to serious AI capabilities which imposes virtually no limitations, and is flexible enough to incorporate any LLM provider you want to set up.

I've got a few clients now who build their own software prototypes using Pi on VPS accounts. They currently log into their VPS server over SSH, and run Pi at the server command line. I've given them all a few hours of training to do that, and some basic prompt examples to use in Pi, to create software with Flask & SQLite, to set up separate Python environments running in separate tmux sessions, with each application configured to run on separate ports, to perform regular backups, etc., and I've provided a basic agents.md file which keep those users from unintentionally shutting down processes on the server, deleting files, etc., to prevent likely issues from casual prompting missteps which non-technical don't know to avoid.

Pi-web now opens up that sort of environment and workflow to users who are so non-technical that they don't even want to dive into using a command line, SSH, or any other core tools. They can now simply open their browser, start a conversation just like they do with ChatGPT, request applications to be built & run, and those apps are instantly available on their VPS where pi-web is running. To those users, that is absolute magic. The browser interface removes virtually every bit of resistance to getting started. Non-technical users can immediately begin performing development and debug iterations like a pro. Pi-web makes it all so familiar and easy - just like using ChatGPT. Showing users how to use Pi and other agents at a command line then also turns into a much simpler task in the future, because all the pieces are already familiar.

It takes me about 10-15 minutes to set up an entire pi-web instance, once a VPS account and an LLM provider account (OpenRouter, Cline-pass, etc.) have been set up. I can typically walk clients through the pre-requisite hosting account setup steps in about 1/2 hour. So, in less than an hour, a full private AI infrastructure can be configured, from the ground up.

What an absolutely awesome solution pi-web is, to so many sorts of workflows. It has the ability to make computing so much easier, in general, for the masses: a simple web based UI to a simple natural language AI agent that can be run on virtually any client device, which requires virtually zero training, to enable the completion of virtually any computing task, of nearly any complexity. That's a big deal.

Nick Antonaccio
Nick AntonaccioAdmin
Sep 28, 2026 at 18:23 (edited, 1 revision)
#2

I described pi-web to a colleague like this:

This is getting to be my favorite interface for all my LLM work:

https://github.com/agegr/pi-web

It's such a simple tool, but is quickly earning a position as the central hub of every bit of work I do. Pi-web connects to Pi wherever you choose to install it, and provides a web interface to all of Pi's features. At first it looks like another locally hosted ChatGPT/Claude chat clone, but it enables the full agentic power of Pi, to build and deploy software directly on your server, control your hardware/OS/files/software/etc., in any way you need, using any LLMs you choose (locally hosted or from any API provider - anything you can connect Pi to, all hot swappable), directly from any browser, on any client device, from any location.

Anything you do in the pi-web browser app is shared 1-1 with anything you do directly in Pi at the command line of your server computer (you control all your saved sessions and every other piece of your own installed Pi configuration, with all the same detail available in a console). The UI is laid out nicely, anyone can use it, and it takes just a few minutes to install (5 pasted lines at an SSH console, plus a Caddy entry).

Set up Pi and pi-web on a VPS, attach Cline-Pass, OpenRouter, or any other LLM API, and/or any self-hosted LLMs, and you can orchestrate every bit of work you do, from a phone or any other machine that has even a very old browser. I have it running perfectly smoothly on 2 ancient Amazon Fire devices I bought at a garage sale for $5 :) I can control my entire kingdom with it, and non-technical clients can use it immediately to accomplish just about anything... It feels just like using ChatGPT, no training required, to integrate LLM usage on just about any mix of of local computer hardware, OSs, remote server setups, and client devices which anyone might choose to use. Damn cool.

Nick Antonaccio
Nick AntonaccioAdmin
Sep 30, 2026 at 02:24
#3

Here are some various responses I had during a conversation about pi-web, with that colleague:

Getting 2 pi-web sessions going simultaneously just means opening 2 browser tabs (just like running 2 simultaneous sessions at the console means opening separate consoles)

In pi-web, sessions work just like conversations in ChatGPT, and there's a search, just like in ChatGPT. The big difference is that you can choose to run Pi in different folders, so you can choose to group sessions related to a project, by running all the sessions related to a project, from the same folder. The search functionality works across folders.

The one main reason to use the CLI for Pi anymore is Security. Pi-web represents a massive potential vector for the most unimaginable vulnerabilities, but if you're using it to complete dev work, on a dev machine, on non-classified projects without compliance requirements, just keep backups (or be able to rebuild with a click), and don't store private data or account credentials - and let the bots infiltrate as they will!

In all the HIPAA environments, I need to use SSH over a private VPN to even touch account controls, so it's a total no-go there - but that's part of what makes this sort of setup feel so good, when I get a chance to run free :) But the dev environments for those projects are almost always free to do whatever, and that's where most of the work happens.

At some point in the near future I'll use Astra and Opus 5.5 to patch vulnerabilities. Love open source :)

The only benefit to using pi-web on a local machine is if you prefer the ergonomics of a browser based workflow. For me, the real benefit is having a single interface to many workflows, from any location, without having to pass around files and contexts between diverse local machines and servers.

Also, my personal interest goes a bit deeper. I've had a life-long obsession with putting together systems that can run on any OS/hardware/platform. Pi-web is the last piece of a tooling system which can basically accomplish anything that can be achieved in computing, and the entire system can be controlled using nothing but voice, for example, and all the other pieces can run basically anywhere, on any hardware, on any OS, and the models can run anywhere, etc.

Just the feel of pi-web certainly adds some appeal to using over the console interface, and for example, you can upload images directly in the UI, and you get nice visual controls to change models, reasoning levels, and other settings, and it's easier on the eyes, and you can can hide/show reasoning etc., etc.

There are a lot niceties, for example, when you build an HTML UI, you can open it directly in a preview window directly in the pi-web interface.

And little things like the audible ding when a turn is complete. That actually makes a difference because I can run off and do other other and not have to constantly check whether Pi needs me to work on the next step.

A lot of my joy about this whole setup comes from how much better the open source models have gotten, and that they're all still basically free to use endlessly on Cline-pass, which I pay for yearly, so it costs less than $7 per month. And I can immediately switch to using any of the locally hosted models (on any server). And I love the fact that VPSs cost a few dollars per month, for dirt cheap machines that enable solutions to so many use cases. And this UI just ties all those pieces together, in a really useful way, which can be used on any device. For me, that whole collection of unified tools forms a complete solution to most problems, so this is exciting to me because it feels like the Star Trek systems I imagined as a child, only much better. All that work I did to get Pi working in Termux on my phone with voice input, for example, is surpassed by a pi-web setup in many ways. I can open the browser on my phone, and use native voice dictation, while I'm driving ;)

When I first met [this person], I was still astounded at how well Anvil had improved development workflows, and how much software development surface area it covered, and how portable it made the development environment. Now we get nearly 100% of any development workflow, any research workflow, any IT workflow, etc. covered by speaking into a phone.

And users with virtually no experience with computers can begin using it immediately. That's a huge win which is even more important than my usability improvement. That not nearly as bad a recipe for disaster as relying on non-technical users to use systems which require technical capability.

I'm writing a new tutorial about writing business apps with AI agents. After 3+ decades of writing many 1000s of pages of tutorials about that topic, this one will just be a few pages, and the resulting capability will be orders of magnitude better than what was possible with even the best engineered tools in the past.

Topics which took newbies years to grok fully in the past can be solved by knowing to say, for example, 'use SQLite'. I can teach those sorts of lessons, and users can simply speak that into a web interface, and real, reliable, capable, working software appears.

Nick Antonaccio
Nick AntonaccioAdmin
Oct 05, 2026 at 16:47 (edited, 20 revisions)
#4

One of my hobbies is getting very old platforms to accomplish useful computing tasks. Pi-web dramatically improves the capabilities of old machines which have a decent browser (because it enables those machines to become new workstations for software development and agentic workflows). I've gotten pi-web running on old netbooks from over 20 years ago, and on old tablets which were otherwise basically useless.

So just for fun, I used Deepseek v4.1 Flash, running in qt-web on one of those old machines, to create this suite of old school apps which are able to run in the ancient QtWeb browser, version 3.8.5:

And these are a collection of Flask apps that you'll need to download and install on your own machine to run:

If you've never seen it, QtWeb is a tiny web browser from when Internet Explorer was still in mainstream use (QtWeb was last updated in 2013). It consists of a single tiny file that weighs about 7.5Mb, which requires zero installation, has no external dependencies, and runs comfortably on 32-bit machines with less than 1Gb RAM. You can download it at:

Apps which run in it should function in virtually any relatively recent browser that has any sort of JavaScript support. Most modern websites don't work any more in QtWeb - it was a blast seeing QtWeb become a viable tool again!

Here are some skill files you can use to build apps for QtWeb and other ancient browsers:

Nothing above required any effort of my own to write code.

Those examples are not representative of the sort of work I do professionally, but perhaps they do demonstrate just a bit of the power of the LLM tools I use. Everything above was created, tested, installed, deployed and documented this morning, as a fun pastime.

The WASM version of the Rebol R3 programming language, which I published a few months ago, which included its graphical View dialect, full UI examples, 3D graphics and game examples, file saving examples, etc., and all the other pieces of the full R3 implementation running in a web browser, was another similar quick hobby project which made another old tech tool function in web browsers: https://rebolforum.com/topic/834

What an awesome thing it is to be able to build software and complete tasks with our current open source LLMs and agentic systems. They're dramatically capable, if you know how to use them. The past 4 years I've spent learning to use AI systems to build software and agentic systems, has been one of the most professionally valuable, productive, and personally enjoyable learning experience of my life.

Edit - here are a few additional apps made after the first batch above, which run in QtWeb 3.8.5:

Please login to post a reply.

© 2026 AI By Nick.