Open source desktop app for pi

A desktop client
for the pi coding agent.

Run the pi coding agent with local or hosted models. Manage sessions, Git worktrees, code review, and web previews in one desktop application.

Apple Silicon · Windows x64 & ARM64 · MIT licensed

pi-kit with a conversation, model controls, and the native Artifacts browser showing a running local demo project
Real pi-kit desktop UI · seeded demo conversation and a separate local demo web project
BUILT ON AN OPEN AGENT STACKpiAG-UICopilotKitAngularElectronllama.cppllama-swap
Why pi-kit

A Windows desktop interface
for pi and local models.

We love pi for its composability and model freedom. We needed a Windows desktop client for working with local models, and wanted an experience that felt more at home on Windows than a terminal interface. That practical need became pi-kit.

pi-kit adds model setup, credential storage, session navigation, and review tools while using pi's existing session and extension formats.

We also maintain the Angular port of CopilotKit. pi-kit uses it with AG-UI to render tool interfaces, input requests, and MCP Apps in the conversation.

Read the project story
Features

Models, sessions,
and development tools.

Configure models, navigate conversation history, isolate changes in worktrees, and inspect results before merging.

01Model freedom

Hugging Face model downloads

Search Hugging Face and download supported GGUF models directly inside pi-kit. Review the file, verify its checksum, and add it to your llama-swap configuration—or connect a server you already run.

Read the guide
02Session history

Session branching

Navigate pi’s real session tree, branch from an earlier turn, and keep the original approach available while you explore another.

Read the guide
03Isolated work

Git worktrees

Give a thread its own Git branch and folder. Inspect the diff, sync with the base, and merge back when the change is ready.

Read the guide
04Interactive tools

A2UI and MCP Apps

Use A2UI and sandboxed MCP Apps for rich tool interfaces, with explicit prompts when the agent needs your decision.

Read the guide
05Credential storage

OS credential storage

Use your operating system credential store and resolver commands. Inspect the reported storage state instead of assuming every environment has a keychain.

Read the guide
06Reusable knowledge

Skill drafting and verification

Draft a skill from a finished thread, replay it in a scratch worktree, and review the result before approving what gets installed.

Read the guide
07Live preview

Artifacts browser

Open your running project in Artifacts. You and the agent navigate, inspect, and test the same native page.

Read the guide
08Visual feedback

Screenshots and inspection

Attach a page or element screenshot, DOM details, or selected console logs to your unsent draft.

Read the guide
Artifacts

An integrated browser
for web development.

Open a running web project beside the conversation. The agent can navigate, interact with, and inspect the same browser page displayed in Artifacts.

Explore the Artifacts browser
Browser tools

Screenshots, inspection,
and console logs.

Attach a viewport, full-page, or selected-element screenshot to a message. Include DOM details or selected console entries when needed. Attachments are added to the unsent draft.

Screenshots, inspection, and logs
01 / SEE

Capture the actual state

Use the page you have open, at the width where the problem happens. No need to describe a layout from memory.

02 / EXPLAIN

Add precise context

Attach element details or selected console messages when the issue needs more than pixels. Review private information before sending.

03 / VERIFY

Repeat the interaction

Ask the agent to revisit the same flow, check the console, and capture the result. A passing build is not visual verification.

Local models

Download GGUF models
from Hugging Face.

Search supported public Hugging Face GGUF models right inside pi-kit. Review the source, license, file size, and memory estimate, then explicitly download the file with checksum verification. Verified downloads are added to your selected llama-swap config.

Existing local servers can be connected without downloading another model. Hosted connections include Radius, supported subscriptions, provider API keys, and LiteLLM.

  • In-app Hugging Face catalog search
  • Pinned revisions and SHA-256 verification
  • Hardware-aware estimates and existing llama-swap integration
Download and run a local model
Current Local models settings with the Download models tab and in-app Hugging Face search
Settings → Local models → Download models · actual UI, before a search or download
Sessions and Git

Session branches
and code review.

Navigate earlier turns and alternate conversation branches. Use worktrees to isolate file changes, then review unified or split diffs. Session history and Git history are separate.

Worktrees and code review
Self-learning

Reusable skills
from completed tasks.

Self-learning in pi-kit creates instructions for future tasks, not new model weights. The bundled @pi-kit/learn package analyzes a thread and drafts a standard pi SKILL.md file. You review the instructions before installing them.

Skill drafting and verification
  1. 01

    Record the result

    A completed thread has the conversation, tool calls, and checks used to make a change. A recorded commit, merge, or pull-request outcome provides the base and result for verification.

  2. 02

    Draft the procedure

    Run /learn, or let the enabled attendant draft from a qualifying outcome. The analysis uses a redacted transcript and outcome diff to extract steps, encountered errors, and verification commands into a proposed skill.

  3. 03

    Replay and compare

    Optionally run the draft in a scratch worktree at the outcome's base commit, using the first prompt. The report compares changed files and hunks and reruns recognized project checks. Reproduction can pass, be partial, or fail.

  4. 04

    Edit and approve

    Read the proposed SKILL.md, edit the procedure, and select project or user scope. Approve installs it; Discard leaves it uninstalled. An automatically generated draft is not automatically approved.

  5. 05

    Use it in another thread

    Select the approved skill from the composer or / menu and pin it when needed. Later messages receive those instructions as context. Settings → Skills → Library keeps its origin, usage, and verification record.

Self-learning example project

A dependency-free Node.js project with a starter function and three tests. Complete a normalization task, draft and verify a skill, then select it for a second task. The walkthrough includes the prompts, Git steps, and results to inspect.

Drafting and replay use configured models and may incur provider costs. A replay does not merge or push changes; its tools are not sandboxed to the scratch checkout. A passing comparison applies to that replay, not every future use.

Security

Credential storage
and configuration.

API keys and connector tokens go to macOS Keychain, Windows Credential Manager, or Linux Secret Service. pi's auth.json and mcp.json only hold a command that resolves the secret when needed.

OS credential store Encrypted database
~/.pi/agent/auth.json
{
  "openrouter": {
    "type": "api_key",
    "key": "!pi-kit-secret get openrouter"
  }
}
No API key is stored in this file
The current pi-kit package browser opened from Extensions and its Packages tab
Settings → Extensions → Packages · actual browser with demo catalog data
Extensions

Packages, extensions,
and skills.

Browse and install pi packages from npm, Git, or a local folder inside Settings. See the extensions, skills, prompts, and themes each package brings before you add it.

  • Enable, update, or remove in place
  • User and project scopes
  • Open sessions reload automatically
Explore skills and packages

Download pi-kit

Available for macOS on Apple Silicon and Windows on x64 and ARM64.