Skip to main content
The Pi SDK provides programmatic access to Pi’s agent capabilities. Use it to embed Pi in other applications, build custom interfaces, or integrate with automated workflows.

Installation

Quick Start

Core Concepts

Model Selection

Tools Configuration

Session Management

Extensions and Resources

Settings Management

Complete Example

Here’s a complete working example:

Run Modes

Build custom interfaces on top of the SDK:
Full TUI with editor and commands:

API Reference

AgentSession

Next Steps