Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md
PI-Desktop

PI-Desktop

Your local-first desktop workspace for AI coding agents.

Bring your own model. Open any local project. Let agents work — while you stay in control.

No PI-Desktop account. No mandatory relay. No editor lock-in.


Release Downloads Stars CI License Platforms

Download PI-Desktop · Documentation · Screenshots · 简体中文


PI-Desktop AI coding workspace

A standalone desktop workspace for coding agents, projects, models, tools, and long-running sessions.


[!IMPORTANT] PI-Desktop is currently in Early Preview.

The project is actively developed and already usable for real coding workflows, but APIs, extension interfaces, and some desktop behaviors may continue to evolve.

Why PI-Desktop?

Most coding agents live inside a terminal, an editor extension, or a hosted service.

PI-Desktop gives them a workspace of their own.

🖥️ Desktop-first

Work across repositories and sessions without tying your agent workflow to one editor or terminal.

Projects, conversations, reviews, files, previews, notifications, and extensions live in one workspace.

✨ Bring your own model

Use OpenAI, Anthropic, local models, hosted gateways, or any OpenAI-compatible API.

Configure multiple providers and models, then switch between them per session.

🔍 Inspectable by default

Agents can read files, edit code, and run commands — but privileged actions pass through PI-Desktop's permission layer.

Review diffs, inspect command output, and decide how much autonomy each session gets.

🧩 Built to extend

Add Skills, MCP servers, Subagents, and installable Plugins.

Plugins can contribute tools, commands, panels, themes, services, skills, and new workspace experiences.


From prompt to patch

Getting started only takes a few steps:

  1. Connect a model Open Settings → Model configuration, choose a provider or compatible API, and add your credentials.

  2. Open a project Add any local repository or project directory from the sidebar.

  3. Pick Agent, Plan, or Goal Agent starts working. Plan waits until you approve a frozen implementation plan. Goal waits until you approve the outcome, then the agent chooses the path.

  4. Review the result Inspect edits in the Review panel, check command output, preview the application, and continue the conversation without leaving PI-Desktop.


More than a chat window

Agent, Plan, and Goal

Same agent. Three gates. Privileged tools still go through the permission layer in every mode.

AgentPlanGoal
You approveNothing extraThe implementation planThe outcome and acceptance criteria
The agent doesReads, edits, runs commands, tests, iteratesStudies the repo, writes a frozen plan, then waitsPicks the path and works until the goal is met
Use whenYou want it to just do the workThe change is large or risky and you want the approach firstYou care about the result, not the route

Agent is the default loop: inspect the tree, patch files, run commands, and keep going.

Plan is the approval boundary. The agent researches first and produces an immutable implementation plan. Execution does not start until you sign off.

Goal is outcome-first. You lock the objective and acceptance criteria; the agent decides how to get there.


Delegate work to Subagents

Large tasks rarely belong in one context window.

PI-Desktop can delegate independent work to background Subagents for things like:

  • codebase exploration
  • multi-file implementation
  • research and investigation
  • test analysis
  • adversarial review

Each Subagent runs in its own context and reports its result back to the parent agent.


A workspace built for long sessions

PI-Desktop is designed for more than one prompt at a time.

You can manage multiple projects and sessions, pin or archive conversations, branch sessions, queue prompts while an agent is running, reference files with @, use slash commands, and search across the application.

Streaming responses are checkpointed so interrupted work can survive application restarts or runtime failures whenever possible.


Your models, your choice

PI-Desktop does not lock the agent runtime to a hardcoded model list.

Use:

  • OpenAI and Anthropic
  • OpenAI-compatible APIs
  • hosted model gateways
  • local gateways such as Ollama and LM Studio
  • multiple models under the same provider
  • provider OAuth accounts where supported

Model configuration can include context windows, output limits, reasoning controls, temperature, and other model-specific behavior.

Switch models directly from the Composer without recreating your session.


Review the work, not just the answer

The agent workspace includes dedicated surfaces for the things that matter while coding:

PI-Desktop conversation

Long-running conversations with transcript navigation

PI-Desktop model selection

Switch providers, models, and reasoning levels per session

PI-Desktop plugin marketplace

Extend the workspace through the plugin marketplace

PI-Desktop model configuration

Add a provider and connect a model

Explore all screenshots →


Extensions without rebuilding the app

PI-Desktop has several extension layers depending on how deeply you want to customize the agent.

Skills

Give agents reusable instructions and workflows.

Skills can be installed globally or activated for individual projects.

MCP

Connect external tools and services through Model Context Protocol servers without baking them into the desktop application.

Subagents

Create specialized agents with their own instructions, tools, and model choices, then delegate work to them from another agent.

Plugins

Plugins can extend PI-Desktop itself with:

  • agent tools
  • commands
  • workspace panels
  • work-panel views
  • Skills
  • MCP servers
  • Subagents
  • themes
  • resident services
  • inter-plugin messaging

Plugins can be installed locally or through the marketplace using the .piplug package workflow.

[!NOTE] Plugin processes are permission-gated and isolated from the renderer, but plugins are still user-trusted code rather than a complete operating-system sandbox. Only install plugins you trust.

Build your first plugin →


Local-first, precisely

PI-Desktop is local-first, not “nothing ever touches the network.”

DataBehavior
ConversationsStored locally as JSONL with a SQLite index
SettingsStored on your machine
API credentialsStored in the operating system keychain
LogsLocal
PI-Desktop telemetryNone
Model requestsSent directly to the provider or endpoint you configure

There is no required PI-Desktop account and no mandatory PI-hosted relay between your machine and your model provider.

If you use a remote model provider, the context required for that model request is naturally sent to that provider according to its own privacy policy.


Download

Download the latest build from GitHub Releases.

PlatformArchitecturePackage
macOSApple Silicon.dmg / .zip
macOSIntel.dmg / .zip
Windowsx64NSIS installer
Linuxx64.AppImage / .deb

Packaged builds can check GitHub Releases for updates and surface new versions inside the application.

macOS

macOS builds are not yet code-signed or notarized.

If macOS blocks the application, right-click PI-Desktop.app and choose Open.

If necessary, you can also clear the quarantine attribute:

xattr -cr /Applications/PI-Desktop.app

Signing and notarization are on the roadmap.


Import your existing sessions

Already using another coding agent?

PI-Desktop can import local sessions from supported tools including:

  • Claude Code
  • Codex
  • OpenCode
  • Pi

Open Settings → Import to bring existing work into the desktop workspace.


Architecture

PI-Desktop deliberately separates the user interface from privileged host capabilities and the agent loop.

flowchart TB
    UI["React Renderer<br/>Chat · Projects · Reviews · Settings"]
    Electron["Electron Main<br/>Desktop orchestration"]
    Rust["Rust Host Core<br/>Permissions · Filesystem · SQLite · Secrets"]
    Agent["pi Agent Sidecar<br/>Agent loop · Models · Streaming"]
    Provider["Model Provider<br/>Cloud or Local"]

    UI --> Electron
    Electron --> Rust
    Electron --> Agent
    Agent <--> Rust
    Agent --> Provider

The renderer has no Node integration.

The Rust Host Core owns privileged workspace operations, permissions, persistence, and secrets. The pi Agent Sidecar owns model interaction and the agent loop. Electron coordinates the desktop lifecycle while keeping those responsibilities separated.

Read the architecture specification →


Project status

PI-Desktop is an early preview under active development.

The current 0.13.x line includes the desktop shell, streaming agent runtime, Agent / Plan / Goal workflows, permission-aware workspace tools, projects and sessions, session imports, MCP / Skills / Subagents, background delegation, multi-provider model configuration, plugins and marketplace support, context checkpoints, notifications, release notes, and cross-platform packaging.

Current priorities include:

  • macOS code signing and notarization
  • installer upgrade and rollback qualification
  • continued runtime and session-recovery hardening
  • stronger plugin sandboxing and publisher verification
  • broader UI-driven end-to-end coverage

Follow development through the project board and milestones.


Development

Requirements

  • Node.js >=22.19
  • pnpm >=10
  • stable Rust toolchain

The repository currently pins pnpm 11, while CI and release builds use Node 24.

Run locally

git clone https://github.com/vastsa/PI-Desktop.git
cd PI-Desktop

pnpm install

cargo build -p host-core
pnpm build:js

pnpm dev

Validate changes

pnpm typecheck
pnpm lint
pnpm test

Additional protocol, Plan, supervision, Subagent, and Electron E2E suites are documented in the repository specification.

Documentation

pnpm docs:dev
pnpm docs:check

Useful references:


Contributing

Issues, bug reports, feature proposals, documentation improvements, and pull requests are welcome.

For larger changes, opening an issue first makes it easier to align the implementation with the existing architecture and product contracts.

When working in the repository, start with AGENTS.md and the specification index.

Report an issue · View open issues


Built on open source

PI-Desktop builds on the excellent work of the open-source ecosystem.

The agent runtime uses pi-ai and pi-agent-core from pi-mono.

The desktop application is built with technologies including Electron, React, TypeScript, Rust, SQLite, Vite, Tailwind CSS, Shiki, Mermaid, KaTeX, TypeBox, and i18next.

Thank you to every project and contributor that makes PI-Desktop possible.


Model acknowledgements

This project was created by the models below — not by a lone genius, but by a token-powered construction crew.

ProviderModelTokens
OpenAIgpt-5.6-luna5,304,019,817
OpenAIgpt-5.6-sol4,825,458,273
OpenAIgpt-5.44,213,269,324
Anthropicclaude-opus-53,909,952,653
OpenAIgpt-5.53,800,382,171
xAIgrok-4.51,947,736,115
xAIgrok-4.6797,233,571
DeepSeekdeepseek-v4-flash329,790,234
OpenAIgpt-5.2-codex320,983,170
Xiaomimimo-v2.5-pro304,822,052
Anthropicclaude-fable-5-1302,580,552
OpenAIgpt-5.6-terra274,107,085
OpenAIgpt-5.3-codex255,366,945
OpenAIgpt-5.1-codex-max220,947,212
OpenAIgpt-5.1142,533,699
Unknown model69,801,632
Anthropicclaude-opus-4.655,223,768
Zhipustealth/ox-alpha22,954,876
Anthropicclaude-fable-516,116,907
OpenAIgpt-5.1-codex-mini12,895,478
Xiaohongshudots-3-note-prev10,166,895
OpenAIgpt-5.1-codex3,916,509
Xiaomimimo-v2.53,785,071

Total for listed models: 27,144,044,009 tokens.


Community Links

  • Linux.Do — A community for sharing and discussing technology.

License

PI-Desktop is licensed under the GNU Lesser General Public License v3.0.

See LICENSE for details.


Build with the model you want. Keep the workflow yours.

Download PI-Desktop

macOS · Windows · Linux

关于 About

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript

语言 Languages

TypeScript53.3%
Rust19.8%
JavaScript18.7%
CSS7.0%
HTML1.0%
Python0.1%
Shell0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
1652
Total Commits
峰值: 438次/周
Less
More

核心贡献者 Contributors