Skip to main content

openpi

A control room for the pi coding agent: a desktop app, a background web server, and a relay so the same sessions are reachable from a phone.

PySide6 + click + msgspec. It drives pi --mode rpc child processes and reads pi's own session files. No database, no account, no extension sandbox.

Status

M0 (protocol spine), M1 (desktop chat control room), and M2 (web server + relay) are built, with desktop client mode, per-device pairing tokens, and relay E2E (TLS + CA pinning) on top: session list, live multi-session streaming, markdown transcript, tool cards, model/thinking pickers, extension dialogs, context/cost footer, project trust, a browser client, and a self-hosted relay. M3 (git, branches, worktrees) is next — see docs/plan.md.

Install

uv tool install openpi-d5           # from PyPI (the `openpi` name was taken; this is the same app)
# or from source:
uv tool install git+https://github.com/D5-Interactive/OpenPi

The installed command is openpi; the PyPI distribution is named openpi-d5 because openpi is reserved on PyPI by Physical Intelligence.

First run creates ~/.openpi/ (override with OPENPI_HOME) for settings.json, pairings.json, the server token, TLS material, and reserved extensions//skills/ dirs.

openpi setup checks pi and installs or updates it (pi update --self), so the desktop and server always drive a current pi.

Quickstart (from a checkout)

uv sync
uv run openpi                    # open the GUI in the current folder
uv run openpi --project ~/repo   # open a specific folder
uv run openpi --connect http://host:7717 --token …   # GUI attached to a server
uv run openpi --connect https://… --tls-ca server.crt # same, over TLS (pinned cert)
uv run openpi setup              # create ~/.openpi, install/update pi
uv run openpi doctor             # pi binary, version, session dir, models
uv run openpi sessions           # list pi sessions from disk
uv run pytest                    # 74 tests, headless
uv run pytest -m live            # plus 3 live pi/network contract tests

Remote access

# on the machine with the repos
uv run openpi serve                       # http://127.0.0.1:7717/?token=…
uv run openpi serve --tls                  # HTTPS (self-signed cert), end-to-end through the relay
uv run openpi serve --host 0.0.0.0        # LAN
uv run openpi serve --relay relay.example.com:7719 --relay-token …   # behind NAT

# on a small public host
uv run openpi relay --token … --public-port 7718 --instance-port 7719

The server prints the URL with its token (stored in ~/.openpi/server-token). Issue per-device tokens with openpi token new; they're revocable and reloaded live. The relay is a byte pipe, so --tls gives end-to-end encryption: the desktop pins the cert with --tls-ca, the browser accepts it once.

Requires pi on PATH (tested against 1.5.2). Override with OPENPI_PI_BINARY=/path/to/pi.

What it does

  • Keep every opened session streaming in the background; switching costs nothing.
  • Render text, thinking, tool calls, bash output, compaction, and retries as they happen.
  • Attach images to a prompt (desktop and browser).
  • Answer extension dialogs (ctx.ui.select/confirm/input/editor) with real Qt dialogs.
  • Show context, token, and cost usage from pi's own numbers.
  • / autocomplete for skills, templates, and commands; tray notification when work settles.
  • Reach the same sessions from a browser or another desktop (--connect), including through a relay with end-to-end TLS.

Planned next (M3 git, M4 orchestration): a working-tree diff pane with agent-written commit messages, branch (fork/clone) and worktree sessions, multi-model runs, scheduled tasks, and a diff walkthrough.

It deliberately does not reimplement permissions, provider config, MCP, skills, notes, or a plugin sandbox: pi already has those.

Not there yet: git/diff pane, branch tree, worktrees, multi-run, scheduled tasks.

Releasing

Tag a version that matches pyproject.toml and push it; .github/workflows/release.yml runs the tests, builds, publishes to PyPI under the D5-Interactive org (secrets.PYPI_TOKEN), and creates the GitHub release:

uv run pytest                    # sanity first
# bump version in pyproject.toml, then:
git tag v0.1.0 && git push --tags

Docs

Metadata

Release files for openpi-d5 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openpi-d5 0.1.0
File Size Uploaded Provenance Actions
openpi_d5-0.1.0.tar.gz 101.8 kB Without provenance Details for openpi_d5-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openpi-d5 0.1.0
File Interpreter ABI Platform Actions
openpi_d5-0.1.0-py3-none-any.whl Python 3 none any Details for openpi_d5-0.1.0-py3-none-any.whl

Total release size: 159.3 kB

Release files / openpi_d5-0.1.0.tar.gz

Download URL openpi_d5-0.1.0.tar.gz
Size 101.8 kB
Tags Source
SHA-256 checksum
How to use checksums
770196fc965b4217a8e2e991db7a4207914208ced0217701071ef0a1d292a884
BLAKE2b-256 checksum
How to use checksums
d689a0d690d7f5a1751bf118a4b9ab820528991f84a1832dbb45428db0b046a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / openpi_d5-0.1.0-py3-none-any.whl

Download URL openpi_d5-0.1.0-py3-none-any.whl
Size 57.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abadf9ac6591e3d6eaf29419381582680d2394496c4ad762e635d0c32c010f23
BLAKE2b-256 checksum
How to use checksums
62d07d3dc87d0f182feb90157ea2a27c9b9ded3a1133cc375c5cfd9437cb18c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for openpi-d5 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page