Pi Agent Desktop
A cross-platform desktop shell for the Pi coding agent — install it and start coding, no environment setup or terminal commands.
- Source repo
- abcwyc/pi-agent-desktop
- Stars
- ★ 945
- Last updated
- 2d ago
- FARS reviewed
- Nov 25, 2026
- License
- MIT
- Primary language
- TypeScript
- FA score
- 55/100 · Major gaps
At a glance
- How it runs
- Works with
- Portable with changes
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- Developers who already use Pi in a terminal and have sessions under ~/.pi/agent they want to browse and resume graphically.
- Not a fit if
- Users on Linux ARM or 32-bit systems outside the supported matrix
- People who expect a global pi CLI to come with the app install
- Website
- pi.348580.xyz ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-23
- Source review
- 55/100 · Major gaps
What does this agent do, and when should you use it?
pi-agent-desktop is a local AI coding agent packaged as a Tauri desktop application for macOS, Windows and Linux. It combines the agent capabilities of earendil-works/pi with the web interface of agegr/pi-web and ships the Next.js standalone server, a Node.js runtime and the current Pi SDK inside the app, so the local server starts with the window instead of from a terminal. By default it reads Pi's local data directory at ~/.pi/agent/, which means existing sessions, model configuration and authentication carry over after install; PI_CODING_AGENT_DIR points it elsewhere. The chat view surfaces thinking, tool calls, context usage, cost and compaction state in real time, and any earlier message can be resumed as a branch or forked into an independent session. Releases are produced by GitHub Actions that sync pi and pi-web daily and build signed installers for macOS 11+ (Apple Silicon and Intel), Windows 10/11 x64 and Linux x64 with WebKitGTK 4.1.
The Tauri shell launches the bundled Next.js server and opens it in a WebView authenticated with a per-process token; the UI talks to the Next.js APIs under app/api for agent, sessions, models, files and update checks. Sessions are read from ~/.pi/agent/sessions/<encoded-cwd>/<timestamp>_<uuid>.jsonl, grouped by project, resumable, and branchable or forkable from any past message. The app also manages models, OAuth/API keys, custom model configuration, skills and plugins, switches Git worktrees from the sidebar, and browses project files. Scheduled tasks replay a saved prompt in a new session hourly, daily, weekly, on a custom cron expression or once, run while the app is open even with its window hidden, default to read-only tools, catch up once after sleep and notify on success or failure. A preview pane renders source code, diffs, Markdown, images, audio, PDF and DOCX. Update checks hit the latest stable GitHub release at most every seven days and only enable the upgrade button when the installed build is older, then download one complete signed build.
- Developers who already use Pi in a terminal and have sessions under ~/.pi/agent they want to browse and resume graphically.
- Mac or Windows users who want a working coding agent locally without installing Node.js or learning CLI flags.
- Engineers who need to split long conversations into branches or fork a session to explore alternatives from an earlier message.
- Teams that want a saved prompt to run on a cron schedule in read-only mode — such as a daily repository check — with success and failure notifications.
- Full-stack or frontend developers who move between several Git worktrees and want files and diffs in the same window.
- Users on restricted networks who need model API calls and update checks to go through an HTTP(S) proxy.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
brew install --cask pi-agent
- Environment variables
PI_CODING_AGENT_DIRPI_WEB_PASSWORD- Runtime
- Node.js 22 · Rust 1.85+
- Install notes cover
- Windows · macOS · Linux
How do you install or deploy this agent?
Download the official build from GitHub Releases for your platform.
On macOS, open the dmg for your architecture and drag the app into Applications:
# Apple Silicon
aarch64.dmg
# Intel Mac (available from 0.8.5)
x64.dmgHomebrew users can install from this repository's tap:
brew tap abcwyc/pi-agent-desktop https://github.com/abcwyc/pi-agent-desktop
brew install --cask pi-agentThe first launch is blocked by Gatekeeper because the macOS build is not signed or notarized; allow it or clear the quarantine flag:
xattr -dr com.apple.quarantine "/Applications/Pi Agent.app"On Windows x64, run the installer whose name ends in x64-setup.exe; it pulls in Microsoft WebView2 when missing. On Linux x64, install the .deb package with your distribution's package manager; WebKitGTK 4.1 and GTK 3 are required. A community-maintained Flatpak exists but is not an official release.
Building from source needs Node.js 22, npm and Rust 1.85+, plus GTK/WebKitGTK development packages on Linux:
npm install
npm run desktop:buildHow do you use this agent?
Open the app after installing; the local server starts with it and no terminal is involved. If Pi has been used on this machine before, existing data is picked up automatically:
~/.pi/agent/To use a different Pi agent directory, set the environment variable:
PI_CODING_AGENT_DIR=/path/to/pi-agent-dirConfigure models and OAuth/API keys in Settings, then chat in the session window; clicking an earlier message lets you branch from it or fork the session. The sidebar switches Git worktrees and browses project files. For a proxy, enable Settings › General › Network proxy, enter an address such as http://127.0.0.1:7890, and use Test connection.
For development:
npm run dev # web dev server on 127.0.0.1:30141
npm run desktop:dev # same dev server inside a native Tauri window
npm test # Node tests
node_modules/.bin/tsc --noEmit
npm run lintLAN access requires a password; without one the launcher refuses to bind beyond loopback:
PI_WEB_PASSWORD='choose-a-long-passphrase' npm run dev:lanSafety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- Bundles the Next.js standalone server, Node.js runtime and Pi SDK, so users never install Node.js or start a web server by hand.
- Reuses existing Pi sessions, model configuration and authentication from ~/.pi/agent, making the move from CLI to desktop nearly free.
- The session view shows thinking, tool calls, context usage, cost and compaction state side by side, with branching and forking from any past message.
- Scheduled tasks default to read-only tools, catch up once after sleep and notify on success or failure, which limits unattended risk.
- Upgrades download one complete signed build after syncing pi, pi-web and pi-agent-desktop in order, avoiding runtime incompatibilities from swapping dependencies individually.
- The file-browsing API is scoped to the current session, the selected project and explicitly authorized working directories.
- The macOS build is neither signed with an Apple Developer ID nor notarized, so the first launch is blocked until the user allows it or runs the xattr command.
- Official installers cover only macOS 11+, Windows 10/11 x64 and Linux x64 with WebKitGTK 4.1; other targets such as Linux ARM have no official build.
- Installing the app does not provide a global pi command; terminal users still need to install the Pi CLI separately.
- It is a desktop shell over Pi, so core capability depends on the earendil-works/pi and agegr/pi-web upstreams, and users must supply their own model credentials and pay for calls.
- Updates replace the whole app; when upstream has shipped but the signed desktop release is not out yet, there is nothing to install.
- Source builds are demanding — Rust 1.85+, Node.js 22 and platform toolchains — and locally built apps cannot accept official updates.
How does this agent compare with similar options?
The README positions the app as a packaged combination of earendil-works/pi (agent core) and agegr/pi-web (web interface), and contrasts it repeatedly with the Pi CLI: installing the desktop app does not bring a global pi command, so terminal users still install the Pi CLI separately.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Pi Agent Desktop This agent | 55 · Major gaps | Desktop appFree + model costs | ★ 945 | 2d ago | TypeScript | — |
| PandaCode | 67 · Some gaps | — | ★ 1.4k | today | TypeScript | Codex · Claude Code · Claude.ai |
| Pi Web | 57 · Major gaps | CLIFree + model costs | ★ 8.4k | 4d ago | TypeScript | — |
| zerostack | 69 · Some gaps | CLIFree + model costs | ★ 1.8k | 1d ago | Rust | OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
File access uses an explicit allow-list (session cwd, project roots, ~/pi-cwd-*, explicit allowFileRoot) and refuses credential stores like ~/.ssh, ~/.aws, ~/.pi/agent/auth.json; LAN mode refuses to bind beyond loopback without a password; the desktop WebView authenticates with a per-process token; dirty worktree removal returns 409 requiring confirmation; updates accept only signed complete builds and never fall back to unsigned files. Deductions: npm audit is advisory-only with continue-on-error, so dependency security is not gated; the MCP test route can start processes and run !command values, widening external effects despite validation; no independent third-party audit evidence.
CI covers lint, tsc, unit tests, e2e, Rust clippy on Linux and Windows, and a payload canary; error handling uses clear status codes (403/415/409/429). Deductions: many ^ ranges and a beta dependency (node-pty 1.2.0-beta.15); pi packages must be pinned exactly and AGENTS.md itself records past version mismatches; no lockfile evidence in the packet, so dependency availability is only partly confirmed.
README states the macOS/Windows/Linux support matrix, Node 22, Rust 1.85+, WebKitGTK 4.1 requirements, and distinguishes desktop/Web/LAN scenarios; capability boundaries (not an IDE, extension-compatibility principle, out-of-scope list) are documented. Deductions: scheduled-task trigger precision depends on the app staying open and only catches up once after sleep, with cron semantics not detailed in the sample; no AGENTS.md manifest, so invocation boundaries are less explicit for agent users.
README is well structured with per-platform install steps, Homebrew tap, Gatekeeper unsigned warning, and known limitations (not notarized, Intel from 0.8.5, unofficial Flatpak); MIT LICENSE present. Deductions: package.json name/version/repository point to agegr/pi-web rather than this repo, so naming and attribution are inconsistent; no CHANGELOG; maintenance responsibility rests on an unverified publisher plus upstream sync automation, leaving ownership unclear; few FAQ entries and examples.
The product packages pi capabilities into a desktop app with session browsing, branching, model/key management, worktrees, scheduled tasks, and file previews, giving high output usability and clear marginal value for users who avoid terminals. Deductions: it is essentially a desktop wrapper over pi + pi-web, so marginal value depends on upstream; cost is higher due to full signed builds and a bundled Node runtime, and the sample gives no performance or resource data.
README claims can be cross-checked against code and CI (loopback binding, token auth, credential-path refusal, payload canary), and some claims have supporting files. Deductions: most security and update claims are documentation self-assertions without test output or third-party verification in the sample; publisher identity is unverified, limiting provenance traceability; facts and inferences are not strictly separated in the docs.
- Publisher identity is unverified by FollowAgents and package.json still points to agegr/pi-web; attribution and maintenance responsibility need independent confirmation.
- macOS builds are unsigned and not notarized, requiring Gatekeeper bypass on first launch, which carries supply-chain trust risk.
- npm audit is advisory-only and does not block merges, so dependency security is not gated; the tree includes a beta dependency and many ^ ranges.
- MCP testing and scheduled tasks can start processes, run commands, or execute on a schedule; verify external effects and permission boundaries.
- LAN/remote-access modes expose shell and file access; always set a strong password and place behind HTTPS or a VPN.
FAQ
Do I need to bring my own model credentials?
Will installing it overwrite my existing Pi data?
Why does macOS say the app is damaged or from an unverified developer?
Do scheduled tasks keep running after the app is closed?
Can other machines on my LAN open this UI?
Is Pi Agent Desktop free?
Is Pi Agent Desktop open source?
Is Pi Agent Desktop safe to use?
Is Pi Agent Desktop still maintained?
Who makes Pi Agent Desktop?
What is Pi Agent Desktop's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.