Quickstart
Install
Section titled “Install”PiSharp’s CLI is a .NET tool. It needs the .NET 10 SDK.
dotnet tool install -g PiSharp.CliThen run it in your project folder:
cd my-projectpisharppisharp 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:
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.
Update or uninstall
Section titled “Update or uninstall”dotnet tool update -g PiSharp.Clidotnet tool uninstall -g PiSharp.CliThe libraries are separate NuGet packages. See the SDK.
Build from source
Section titled “Build from source”You need .NET SDK 10.0.401 exactly: global.json pins it with roll-forward disabled.
git clone https://github.com/jkelly/PiSharp.gitcd PiSharpdotnet build src/PiSharp.Cli/PiSharp.Cli.csproj -c Release -p:RestoreSources=https://api.nuget.org/v3/index.json -p:RestoreLockedMode=falsedotnet src/PiSharp.Cli/bin/Release/net10.0/PiSharp.Cli.dll --helpBuild 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.
Next steps
Section titled “Next steps”- Coming from Pi
- Command line and Settings
- Providers and models
- Interactive mode
- Use the SDK to embed PiSharp in your own app