pi-pocket README

The project's README from github.com/TannerMidd/pi-pocket. As one markdown file: README.md.

Pi Pocket

Your Pi coding agent, in your pocket.

Start a coding session on your computer, check its diff on your phone, and invite a teammate to the same conversation. Pi runs on your machine, in your project, with your models. No cloud VM required.

Release Node.js 22.19+ MIT license

Quick start · Highlights · Feature tour · Website · Docs

Desktop: review a test diff while another session waits for approval to push. Phone: check in on other sessions with PiP.

Highlights

In the 0.31 beta: optional classification. Relay triage can screen messages from unmarked senders and replies to them. Run outcomes can label a subagent’s or linked session’s report without replacing its answer. Both send text to the classifier provider you choose; with no classifier selected, neither makes a call. Jev Hub shows classifier activity. These features aren’t in the stable install below.

Quick start

With Node.js 22.19 or newer:

npm install -g pi-pocket
pi-pocket

Or try npx pi-pocket. Choose how your devices should connect, then open the launcher’s sign-in link or scan its QR code. Keep that link private: it signs you in as the owner. In the app, open Providers to connect a model provider, or use an existing Pi sign-in. Start a session in the folder you want Pi to work in.

Prefer a desktop app? Download the latest stable release. Both installers include Node.js and install for your account without admin rights. They are unsigned; the platform guides cover verification and first launch.

Updates: Menu → Update Pi Pocket handles supported installs. For local npm installs, npx, or rollback precautions, see updates and backups.

Remote access

Choose local for this machine, lan for a trusted local network (plain HTTP), tailscale or tailscale-serve for your tailnet, or cloudflare for a public HTTPS tunnel that still requires sign-in. The launcher guide lists prerequisites and flags. In the desktop app, use Menu → Sign in another device.

[!WARNING] Anyone who can steer Pi can run commands as your user. A session invite limits what someone sees in the app, not which files Pi can reach. Give steering access only to people you would trust at your keyboard. Security model.

Behind a reverse proxy on a Unix socket

On a shared host, use --socket in a protected directory rather than proxying to a TCP port another user could claim during a restart. See socket permissions, Caddy, and nginx examples.

Development

git clone https://github.com/TannerMidd/pi-pocket.git
cd pi-pocket
npm install
npm start

There’s no build step. Run npm run check for types and API references, npm run lint for style, and npm test for the test suite. Use node test/serve.ts to try changes on an isolated copy. See Contributing, the code map, and safe self-editing.

Limitations

One server process owns the database. Git worktrees separate files; they are not sandboxes. The built-in browser needs a Chromium-based browser on the host. Pi Pocket has its own extension API; Pi CLI extensions do not run unchanged. Full limitations.

Credits and license

Inspired by Mario Zechner’s Pi app demo. Pi Pocket is an independent project, not affiliated with Earendil. MIT; the bundled fonts and dependencies retain their own licenses, including libheif-js (LGPL-3.0). Report a security problem privately.

pi-pocket (TannerMidd/pi-pocket)

Searching Database…

What is this?Pi Pocket is a durable, multiplayer, mobile-first web app for running Pi coding-agent sessions from your own machine or your phone, with no cloud VM required.
Do I host this myself or is it a cloud service?It's self-hosted: you run the Node launcher on your machine or phone and expose it via local, LAN, Cloudflare quick tunnel, or Tailscale, instead of connecting to any cloud VM.
How do I get it running?Install Node.js 22.19+, sign in to a provider with Pi first (pi, then /login), then run the launcher; it asks how devices should connect and prints an address, sign-in link, and QR code.
Do I need the Pi coding agent already set up?Yes, Pi Pocket is a front end for Pi: it reuses Pi's own model runtime, sign-ins, skills, and prompt templates, so you pick a model and provider per session rather than configuring a new backend.
What's the biggest catch before relying on this?Only one server process can touch the database at a time, Pi Durable is still experimental and its API can change between releases, and Windows support hasn't been tested yet even though the launcher runs there.
Does it actually work on my phone?Yes, it's built as a home-screen PWA: on Android you open the link in Chrome, choose Add to Home screen, and run termux-wake-lock so Termux keeps running in the background.
How much can someone do once I invite them to a session?Anyone given steering rights can make the agent run commands on your machine as you, reaching your files and Pi Pocket's own settings and tokens; only view-only invites are restricted from making Pi act.
What is PiP?PiP ('Pi in Pocket'), opened with Alt+A, is an assistant overlay that lists, reads, starts, and messages your other sessions, follows their runs, and can watch a GitHub repo or PR and act on webhooks.
What does Codemode do?Enabled by default, Codemode has Pi write short scripts that call its tools instead of calling them one at a time, while every call still passes the same approval checks.
What is Lancet Guard?An optional extension (off by default) that makes risky bash, write, and edit calls wait for someone in the session to approve; it needs ONNX Runtime, which may fail to load on Android.
Why does it ship Omarchy themes?The UI mirrors every Omarchy desktop theme (or live-follows your OS theme) with tiled Hyprland-style windows and a Walker-style launcher, so it visually matches the Omarchy Linux setup it was built alongside.
Creator
TannerMidd
Size
19.9 MB
Stars
861
Age
1mo
Commits · 90 Days