pi-rust

The pi coding agent, ported 1:1 to Rust.

A drop-in replacement for pi. It reads your ~/.pi/agent setup and runs your extensions, skills, and packages as they are, from one binary with no Node.js.

macOS

curl -fsSL https://pi-rust.com/install.sh | sh

Or with Homebrew:

Linux

curl -fsSL https://pi-rust.com/install.sh | sh

Or with Homebrew:

Windows

irm https://pi-rust.com/install.ps1 | iex
The pi-rust mark: three blocks that form the letter pi

A drop-in replacement for pi

Install pi-rust, run pi, and keep working the way you do now.

Memory with 20 sessions at once

20 pi-rust sessions running at once on a 16 GB Mac peaked at 680 MiB in total. Node Pi 0.73.1 used 3,431 MiB and Codex CLI 0.162.1 used 3,275 MiB.

How it was measured

Peak memory of 20 concurrent sessions, summed
Pi Rust 0.1.9
680 MiB
Node Pi 0.73.1
3,431 MiB
Codex CLI 0.162.1
3,275 MiB

Each pi-rust process peaked at 33.52–35.66 MiB. Batch time: Pi Rust 0.1.9 13.12 s, Node Pi 0.73.1 17.94 s, Codex CLI 0.162.1 15.1 s.

Start in the folder you work in

Run pi in a project and talk to it. Use print mode for one answer, JSON or RPC mode when another program drives pi, and -c to pick up the last session.

More in the quick start

pi                                  # talk to pi in this folder
pi -p "Summarize src/main.rs"       # one answer, then exit
pi --mode json -p "List the TODOs"  # one JSON event per line
pi --mode rpc                       # JSON-RPC over stdio
pi -c                               # continue the last session here
pi --model openai/gpt-5.5 --thinking high
cat error.log | pi -p "Explain this error"

What pi-rust adds to pi

Everything in pi, plus:

Every difference from upstream pi

Providers, MCP, and editors

Every provider pi supports, plus Cursor and Google Antigravity subscriptions. Log in with /login or an API key. MCP servers connect over stdio and HTTP, and pi runs inside Zed through ACP.

Providers and loginsMCP serversACP mode

Who makes pi-rust

, a software engineer in New York, builds and maintains pi-rust. It's a 1:1 Rust port of pi, checked against upstream every day.

Try