Skip to content

Quickstart

PiSharp’s CLI is a .NET tool. It needs the .NET 10 SDK.

Terminal window
dotnet tool install -g PiSharp.Cli

Then run it in your project folder:

Terminal window
cd my-project
pisharp

pisharp opens the terminal UI, as pi does. Type /login to sign in to a provider, or set an API key such as ANTHROPIC_API_KEY or OPENAI_API_KEY first. Type /model to pick a model.

For a one-shot answer, use print mode:

Terminal window
pisharp -p "Summarize this repository"

If you already use Pi, PiSharp finds your sign-ins, settings, sessions and resources in ~/.pi/agent. See Coming from Pi.

Terminal window
dotnet tool update -g PiSharp.Cli
dotnet tool uninstall -g PiSharp.Cli

The libraries are separate NuGet packages. See the SDK.

You need .NET SDK 10.0.401 exactly: global.json pins it with roll-forward disabled.

Terminal window
git clone https://github.com/jkelly/PiSharp.git
cd PiSharp
dotnet build src/PiSharp.Cli/PiSharp.Cli.csproj -c Release -p:RestoreSources=https://api.nuget.org/v3/index.json -p:RestoreLockedMode=false
dotnet src/PiSharp.Cli/bin/Release/net10.0/PiSharp.Cli.dll --help

Build from source covers the prerequisites, the restore settings, the samples and how to reference the projects from your own app. Tests lists the test suites and how to run them.