Coming from Pi
PiSharp follows Pi v1.5.0 closely. Run pisharp where you would run pi. It reads the same files, takes the same flags and writes the same sessions.
What carries over
Section titled “What carries over”| From Pi | In PiSharp |
|---|---|
| Command line | The same flags and modes: -p, --mode json|rpc, --model, --continue, --resume, --tools and the rest. See Command line. |
~/.pi/agent |
Shared. settings.json, auth.json, models.json, mcp.json, mcp-auth.json, keybindings.json and trust.json are read and written in place. |
Project .pi folder |
Read after you trust the project, as in Pi. |
AGENTS.md, CLAUDE.md, SYSTEM.md, APPEND_SYSTEM.md |
Loaded from the same places. |
| Skills, prompt templates, themes | Discovered in the same folders. |
| Sessions | Stored in ~/.pi/agent/sessions, in the same JSONL v3 format. Pi and PiSharp resume each other’s sessions. |
| Sign-ins | /login writes auth.json. Signing in with one signs in the other. |
| MCP servers | The same mcp.json and .pi/mcp.json, OAuth sign-ins, exposure modes, tool_search and codemode. |
| TypeScript extensions and packages | Run through the Node bridge, with Pi’s own npm packages. pisharp install installs Pi packages. |
| RPC clients | The same protocol over stdin and stdout. |
See Files and locations for the full list of paths.
Older session files
Section titled “Older session files”PiSharp opens Pi’s current (v3) session files directly. For v1 and v2 files, or to work on a copy:
pisharp session migrate --source <file> --destination <file>converts an older session file to v3. The original is not changed.pisharp session copy --source <file> --destination <file> --format current-jsonlwrites a Pi-compatible copy.
What’s different
Section titled “What’s different”- It’s a .NET tool. Install and update it with
dotnet tool install|update -g PiSharp.Cli.pisharp updateupdates packages and model catalogs. It updates PiSharp itself only through a custom update command, which runs when NuGet, not pi.dev, has a newerPiSharp.Cli. - Node is optional. The agent runs on .NET alone. Node is needed only to run TypeScript extensions.
- C# extensions. Besides Pi’s TypeScript extensions, PiSharp loads native C# extensions from the same extension folders. See Build an extension.
- Tool policy. A PiSharp option,
--tool-policy explicit, limits the built-in tools to paths and commands you grant. The default,pi, behaves as Pi does. See Tool policy. - No telemetry. PiSharp doesn’t report installs to Pi’s servers.
PI_TELEMETRYis ignored. /bugopens a GitHub issue. Reports never go to Pi’s developers. PiSharp writes the report zip and opens a prefilled issue on PiSharp’s GitHub for you to attach it to. See /bug.- No attribution to Pi. Requests carry the user agent of the Pi version PiSharp tracks,
pi/1.5.0 (<platform>; dotnet/<version>; <arch>), but never attribute themselves to Pi. Pi sends OpenRouter, NVIDIA NIM and OpenCode attribution headers naming pi andhttps://pi.devwhile install telemetry is on. PiSharp sends none, whateverenableInstallTelemetrysays. OpenCode requests with a session name PiSharp inx-opencode-client: pisharp. - Versions match Pi’s. See How versions work.
The Parity page lists the smaller differences that remain.