PI-Desktop
AI coding agent workspace with any model, all data local
Replaces Cursor, Windsurf

Who it's for
PI-Desktop manages multiple projects and sessions in one workspace, with the ability to queue prompts, branch sessions, pin conversations, and search across the application. Streaming responses are checkpointed, so interrupted work can survive application restarts on long tasks.
Skip if you mainly need inline code completion or real-time tab suggestions while editing. Those use cases are better served by an editor-native AI tool like Cursor or Windsurf that integrates directly into the editing surface.
PI-Desktop connects directly to Ollama, LM Studio, or any OpenAI-compatible local gateway without routing traffic through a third-party service. All conversation data stays in local JSONL files with no mandatory relay, making it viable for teams with strict data-residency or privacy requirements.
Skip if your team relies on cloud model providers only and has no privacy constraint that rules out sending code to an external API. A cloud-native AI coding tool may offer a more polished integrated experience in that case.
The extension layer supports MCP servers, Skills, Subagents, and installable plugins that contribute tools, panels, and services to the workspace. PI-Desktop also exposes a local MCP control API so external agents can drive projects and sessions through a loopback endpoint.
Skip if you need a stable plugin API today. PI-Desktop is in early preview and the extension interface may still change before reaching a stable release.
The problem
Most AI coding agents run inside an editor, a terminal plugin, or a hosted service. This ties your coding workflow to that one environment: switching model providers, running sessions across multiple repositories, or keeping conversation history off external servers all require workarounds that vary by tool. The friction compounds during longer tasks. Session history for most hosted tools lives on the vendor's servers by default. Model choice is limited to whatever the vendor's pricing tier allows. Teams with privacy or compliance requirements around their codebase often find that popular AI coding products require sending code to external APIs that offer no self-hosted path.
How it works
Three distinct approaches to AI-assisted coding. Agent starts working against your codebase immediately. Plan pauses after research to let you approve a frozen implementation plan before any changes are made. Goal accepts an outcome and acceptance criteria, then lets the agent decide how to reach them. All three modes run privileged actions through the same permission layer.
PI-Desktop does not lock the agent to a fixed model list. Connect OpenAI, Anthropic, local gateways (Ollama, LM Studio), hosted model gateways, or any OpenAI-compatible API endpoint. You can configure multiple providers and switch between models directly from the Composer without recreating your session. Context windows, output limits, reasoning controls, and temperature are all configurable per provider.
Agents can read files, edit code, and run shell commands, but privileged actions pass through PI-Desktop's permission layer before execution. The Review panel shows diffs, command output, and file previews so you can inspect what the agent did without leaving the workspace. Streaming responses are checkpointed so interrupted sessions can recover from application restarts.
Large tasks are split by delegating independent work to background Subagents. A parent agent spawns Subagents for codebase exploration, multi-file implementation, research, test analysis, or adversarial review. Each Subagent runs in its own context and reports results back. This keeps large jobs within manageable context windows instead of stacking everything into one session.
Plugins can contribute agent tools, shell commands, workspace panels, Skills, MCP servers, Subagents, themes, and resident services to PI-Desktop without rebuilding the application. Plugins install locally or through a marketplace using the .piplug package format. PI-Desktop also supports MCP control from an external agent via a loopback endpoint enabled with PI_DESKTOP_MCP_CONTROL=1.
All conversations are stored on your machine as JSONL files with a SQLite index. Settings live locally. API credentials are stored in the operating system keychain. PI-Desktop sends no telemetry and requires no PI-Desktop account. Model requests go directly to the provider or endpoint you configure, not through a PI-Desktop relay.
Features
- Agent, Plan, and Goal execution modes
- Any model provider or local gateway
- Permission layer and diff review panel
- Background Subagent delegation
- Plugin and MCP extension system
- Local-first session and credential storage
How to install
Install PI-Desktop from a prebuilt binary on GitHub Releases, or build from source using Node.js 22+, pnpm 10+, and a stable Rust toolchain.
git clone https://github.com/vastsa/PI-Desktop.git
cd PI-Desktop
pnpm install
cargo build -p host-core
pnpm build:js
pnpm devRecommended for this setup
Strengths
- Editor-agnostic and model-agnostic: PI-Desktop operates outside any code editor. Open any local repository or project directory from the sidebar without installing an extension or switching editors. Connect any OpenAI-compatible model endpoint, including self-hosted local models through Ollama or LM Studio, instead of being limited to a vendor's supported list.
- LGPL-3.0: run commercially with no per-seat fees: LGPL-3.0 lets you run PI-Desktop for personal, team, and commercial work at no cost. The license requires distributing source changes only if you redistribute a modified copy of the LGPL-licensed code itself, which does not apply to ordinary use as a desktop tool.
- Zero telemetry, no required account: PI-Desktop sends no telemetry back to the project. There is no mandatory PI-Desktop account and no relay server between your machine and your model provider. Model requests go directly to the provider or local endpoint you configure, subject only to that provider's own privacy policy.
- Session import from other coding agents: PI-Desktop can import existing local sessions from Claude Code, Codex, OpenCode, and Pi through Settings, then Import. Teams already using one of those agents can bring prior conversation history into the desktop workspace without starting from scratch.
Trade-offs
- Early preview: APIs and extension interfaces may change: PI-Desktop is at version 0.14.x and explicitly marked as an early preview. Plugin APIs, extension interfaces, and some desktop behaviors are under active development and may still evolve. Teams building production integrations on the extension layer should expect some API churn before the interface stabilizes.
- macOS releases are unsigned by default: Tagged-release macOS builds are published without code signing by default. Opening an unsigned build requires moving PI-Desktop.app to Applications and running the included PI-Desktop-macOS-open.command helper if macOS reports the app as damaged. Signed and notarized builds are available when the release workflow is manually dispatched with sign_macos set to true.
- Linux requires glibc 2.35 or newer: The bundled native host requires glibc 2.35, which ships with Ubuntu 22.04 or later, Debian 12 or later, and Fedora 36 or later. Ubuntu 20.04, Debian 11, Fedora 35, and older distributions cannot load the bundled binary. Check your glibc version before downloading the Linux package.
Tech stack
FAQ
Yes. PI-Desktop is released under the LGPL-3.0 license and available at no cost. You download it from GitHub Releases and connect your own model provider, paying whatever that provider charges for model usage. There are no PI-Desktop subscription fees or usage limits imposed by the project itself.
No. PI-Desktop requires no account and sends no telemetry. All conversations are stored locally as JSONL files with a SQLite index, and API credentials are stored in your operating system keychain. Model requests go directly to the model provider you configure. If you use a remote provider, the code you send is subject to that provider's own privacy policy.
PI-Desktop supports any OpenAI, Anthropic, or OpenAI-compatible API endpoint. You can also connect local gateways such as Ollama and LM Studio, hosted model gateways, and provider OAuth accounts where supported. Multiple providers and models can be configured and switched between per session from the Composer.
Agent starts working immediately: it reads files, edits code, runs commands, and iterates. Plan pauses after research and produces an immutable implementation plan for your review before execution begins. Goal accepts an outcome and acceptance criteria upfront and lets the agent choose how to reach them. All three modes still pass privileged tool calls through the permission layer.
Yes. PI-Desktop is a standalone desktop application, not an editor extension, so it runs alongside VS Code, JetBrains, Neovim, or any other editor without conflict. You open project directories from PI-Desktop's sidebar rather than from inside an editor.