Self-hosted · open source · v0.32.0

Agents where the code is.
You, anywhere.

PiFi runs Pi on your laptop, workstation or home server and puts every session in your pocket. Answer its question from the train; take over in a terminal when you sit down. The work never stops because you walked away.

npm install -g @spencerboucher/pifi
Get started How it works
The Sessions page: sessions grouped by Needs input, Ready to review and Working, and a finished session's summary and changesThe Sessions page: sessions grouped by Needs input, Ready to review and Working, and a finished session's summary and changes
A question from the agent shown as a card on a phone, with three optionsA question from the agent shown as a card on a phone, with three options

A day with PiFi

Start it at your desk. Steer it from anywhere.

  1. laptop

    Pick an issue off the board

    Starting an issue assigned to you makes its branch, a worktree for it and a Pi session on your home server.

  2. phone

    Answer a question on the train

    Pi asks how often to retry a declined card. Your phone buzzes, because no computer has seen you for five minutes. One tap and it keeps going.

  3. terminal

    Take over in the real TUI

    pifi tui, or the herdr tab it already opened, attaches to the same Pi. Nothing restarts, nothing is lost.

  4. GitHub

    Merged, and cleaned up

    The branch follows its pull request to In review and Merged; the worktree is removed and its sessions archived.

What it does

What nothing else does

For people who already work with Pi and want their agents to keep going when they leave the keyboard.

Your machines, every screen

Hosts run Pi as you, with your repositories, worktrees and logins, and dial out to the coordinator. Phone, browser and terminal show the same live session; closing one never stops the work.

laptopserverphonebrowserterminalcoordinator

A board in your pocket

Installs as an app on your phone, with the Board, Sessions and Attention one thumb away.

The Board on a phone, with issues grouped by columnThe Board on a phone, with issues grouped by column

Questions become cards

When Pi or a plugin asks, the question shows in every client and as a notification on the device you are using. Answer once, anywhere; the terminal dialog closes by itself.

A question card in the web app, with the agent's work above itA question card in the web app, with the agent's work above it

The terminal is first-class

Sessions run Pi's own TUI: open one from any terminal with pifi tui. In herdr or tmux, Pi you start shows up in PiFi, and a bound session mirrors a tab per active branch.

Pi's own terminal interface for a session, asking the same questionPi's own terminal interface for a session, asking the same question

Work before there is a session

Branches, GitHub scopes and a board: issues assigned to you wait in Not started, starting one makes its worktree and session, and the branch follows its pull request to In review and Merged.

  • A git worktree per branch
  • Pull request, checks and review threads on every branch
  • Merged worktrees removed for you
The Board with Not started, Working, In review and Merged columnsThe Board with Not started, Working, In review and Merged columns

Notifications that know where you are

Phones buzz only once no computer has seen your input for a while. Watching a session counts as reading it.

Locked down by default

Off localhost the coordinator refuses to start without single sign-on. Add passkeys; revoke any device.

No inbound ports

Hosts dial out to the coordinator, so a laptop behind NAT or a server at home just works.

Review before you merge

Changes, files, commits and the pull request sit next to the conversation, and a guarded squash merge is one confirmation away.

Why it exists

The one you run yourself

Every big name will now let you poke an agent from your phone, through their cloud, their account and their agent. PiFi is for when the agent, the control plane and the data should all be yours.

Self-hosted, headless

Your server is the product

The coordinator runs in Docker on a box you own. Hosts are always-on services that dial out, many under one roof. No vendor account, relay or transcript store in the path.

Pi, all the way down

Plugins shape the UI

One agent, on purpose. Any Pi extension's dialogs become cards on your phone, and an adapter turns a plugin's state into panels and tool cards. Install a plugin; the app grows its interface.

A real model

Work, place and view, kept apart

Scopes say what work, hosts say where it runs, clients say where you look. An issue is work before any session exists, and a session is one attempt at a branch, not the work itself.

How PiFi compares with other kinds of agent tools
PiFiCloud agentsCodex, Cursor, Copilot, Claude on the webVendor remote controlClaude Remote Control, Codex on your computerOpen-source meta-harnessesOrca, t3code, Paseo, Omnigent, Happy, herdr
A server you host, for all your machinesYesNoNoRarely
Agent loop on your machinesYesNoYesYes
Headless servers as hostsYesSomeSomeSome
Same live session in terminal and phoneYesNoSomeMost
Issues wait on a board before a sessionYesSomeNoRarely
The agent's own extensions become UIYesNot documentedNot documentedNot documented
Open sourceYesNoNoYes

Product by product, Omnigent to Orca, with sources

How it works

Three questions, kept apart

So a session is the same thing wherever you look at it.

What work

Scopes

A named part of your work: some projects, or the GitHub issues assigned to you, and your pins.

  • project › branch › session
  • issues from GitHub

Where it runs

Hosts

A session runs on a host, in a worktree: as a terminal session PiFi holds, or in a pane you started it in. The coordinator never runs code.

  • your laptop, your server
  • a worktree per branch

Where you look

Clients

The web app and your phone, or a herdr or tmux session that mirrors nothing, everything or one scope.

  • browser · phone
  • herdr · tmux

Read the model

Self-host it

Your server, your way in

Ready-to-run Docker Compose setups for every common front door. Copy one, fill in .env, run docker compose up -d.

git clone --depth 1 https://github.com/justmytwospence/pifi && cd pifi/deploy/compose/tailscale
cp .env.example .env   # your tailnet and single sign-on
docker compose up -d

All the recipes

Build on it

Script it, extend it

A typed client SDK drives sessions and tasks from your own tools, and modules add sources, clients and triggers without touching the core.

// start a session and wait for it to finish
const session = await client.sessions.create({
  projectId,
  workspace: { existingId },
  prompt: "Inspect the tests",
});
await client.sessions.send(session.id, { text: "Fix it" });
await client.sessions.waitForFinish(session.id);

Questions

Does my code leave my machines?

Pi runs on your hosts, with your checkouts and your model credentials. The coordinator keeps state and relays events between hosts and clients; it never runs code.

Do I need a server?

No. pifi up runs the coordinator and a host in one process on one machine. Move the coordinator to a server, with one of the Compose recipes, when you want your phone to reach it from anywhere.

Is there a phone app?

The web app installs to your home screen and sends push notifications; there is nothing to download from a store.

Can I keep working in my own terminal?

Yes. Pi you start yourself in herdr or tmux shows up in PiFi, and a terminal session opens in Pi's own TUI from any terminal. Pick whether PiFi or your terminal tools own starting and cleaning up work.

Try it on one machine

Node 24 or newer, git and Pi on your PATH. up runs the coordinator and a host in one process and opens a sign-in link.

npm install -g @spencerboucher/pifi
pifi up   # http://localhost:7400

Getting started Star on GitHub