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.