pi-remote-web0.1.1
Use your Pi coding sessions from a phone browser over a private network
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-remote-web
Use Pi from your phone. A small web app runs on your computer, listens only on 127.0.0.1, and starts Pi for you. You reach it from your phone over Tailscale.
Prompts from the browser run with all of Pi's tool permissions. This is not a sandbox. Anyone who signs in can do anything your Pi can do.
Features
- Start or resume Pi conversations in your project folders. Pick the model and thinking level before you start; a resumed conversation keeps its own.
- Send prompts, steer or queue follow-ups, stop work, close conversations.
- Answer Pi's dialogs (select, confirm, input, editor).
- Username and password sign-in. Dark, mobile-first UI. No build step, no dependencies.
Quick start
Requires Node 22.19+ and Pi. Tested with Pi 1.8.0 on macOS, from an Android phone. Not tested: iPhone, Linux and Windows.
npm install -g pi-remote-web
pi-remote-web
The first run asks for:
- A project root (default: the current folder). The root and its direct subfolders become projects. Hidden folders and symlinks are skipped.
- A username and a password of at least 12 characters.
Open the printed address, sign in, pick a project and start a conversation. Keep the command running. Ctrl+C stops it and every conversation it started.
| Option | Effect |
|---|---|
--root <dir> |
Use a different project root |
--remote-origin <url> |
Allow an exact HTTPS address, such as https://mac.tailnet.ts.net |
--local-only |
Remove the remote address |
--port <n> |
Listen on another port (default 8787) |
--change-password |
Replace the username and password |
--pi-dir <dir> |
Use this Pi install if it is not found automatically |
Settings are saved in ~/.config/pi-remote-web/config.json (mode 0600). Stop the service before you change settings. Restart to see new project folders.
Use it from your phone
- Install Tailscale on the computer and the phone. Limit access to your own devices.
- On the computer, run
tailscale serve --bg 8787. Use Serve, not Funnel: Funnel makes the app public. - Stop the service if it is running (Ctrl+C), then run
pi-remote-web --remote-origin https://<machine>.<tailnet>.ts.net. The address is saved, so later starts need no options. - Open that address on the phone and sign in. You can add it to the home screen.
Keep the computer awake.
Security and limits
- Full permissions. A prompt from the browser can do anything your Pi can.
- Built for one person on their own computer and their own devices. It protects against people who reach the address without the password and against other web sites. It does not protect against other users or programs on the same computer.
- Local only. The server listens on
127.0.0.1. Never bind it to0.0.0.0, and never use Funnel or a public tunnel. - Project root is not a sandbox. It limits which folders you can pick, not what Pi can do.
- "Sent" means written to Pi, not finished. After a timeout or a network drop, the page says the outcome is unknown. Check the chat before you send again. Nothing retries automatically.
- No saved transcripts. The app keeps the last 100 messages of each conversation in memory. Pi still saves its own history. Tool calls and output are shown and can contain secrets.
- Other local web servers see the local sign-in cookie, because browsers send
127.0.0.1cookies to every port. Use the Tailscale address, or sign out of the local one. - Sign-in allows 10 attempts a minute for all devices together. A device on your tailnet that guesses passwords can block your sign-in for a minute.
- Don't resume a conversation that is still open in a terminal. The app asks you to confirm.
- Pi's custom extension UI (
ctx.ui.custom()) does not work in conversations started from the browser.
Not supported: sharing a session open in a terminal, renaming, push notifications, background use on Android, images, Markdown, changing the model during a conversation.
Development
git clone https://github.com/tboon0/pi-remote-web.git && cd pi-remote-web
node bin/pi-remote-web.mjs
npm test # loopback server and a fake Pi, no model calls
npm run check # syntax check
See DESIGN.md for the threat model, protocol and review boundary. To report a security problem, see SECURITY.md.
License
MIT