Documentation Index
Fetch the complete documentation index at: https://mintlify.com/badlogic/pi-mono/llms.txt
Use this file to discover all available pages before exploring further.
Choose Your Installation
Pi is distributed as multiple npm packages. Install only what you need:Coding Agent CLI
Install globally for interactive development
Library Packages
Install locally for programmatic usage
Prerequisites
Pi requires Node.js 20.0.0 or higher. Check your version with
node --version.Coding Agent (Global CLI)
For the full interactive coding agent experience:Platform-Specific Notes
Platform-Specific Notes
Windows: Works best with Windows Terminal. See Windows setup guide.Termux (Android): Fully supported. See Termux setup guide.Terminal Configuration: For best experience, see terminal setup guide.
Library Packages
LLM API Only
For unified LLM access without the agent runtime:- Multi-provider LLM streaming and completion
- Tool calling with TypeBox validation
- Automatic model discovery
- OAuth support
Agent Runtime
For building stateful agents with tool execution:- Agent state management
- Event-driven architecture
- Tool execution loop
- Message queue and steering
Terminal UI
For building terminal-based interfaces:- Differential rendering
- Built-in components (Editor, Markdown, SelectList, etc.)
- Overlay system
- Autocomplete providers
Web UI
For building browser-based chat interfaces:- Chat panel components
- Artifact viewer
- File attachments (PDF, DOCX, XLSX, images)
- IndexedDB storage
- CORS proxy handling
Slack Bot
For running the coding agent in Slack:- Slack socket mode integration
- Thread management
- Agent delegation
vLLM Pod Management
For managing GPU pods and vLLM deployments:Full Development Setup
To work on Pi itself or use all packages:Development Note:
npm run check requires npm run build to be run first, as the web-ui package uses TypeScript which needs compiled .d.ts files from dependencies.API Keys & Authentication
After installation, configure authentication for your LLM provider:- API Keys
- OAuth (Subscriptions)
- Google Vertex AI
- Azure OpenAI
Verify Installation
Package Versions
All Pi packages use lockstep versioning. Every release updates all packages together, even if only one package changed. This ensures compatibility across the monorepo.
Common Installation Issues
Node version too old
Node version too old
Error:
error @mariozechner/pi-coding-agent@0.55.3: The engine "node" is incompatible with this module.Solution: Update Node.js to v20 or higher. Use nvm for easy version management:Permission errors on global install
Permission errors on global install
Error:
EACCES: permission deniedSolution: Use npx instead, or configure npm prefix:Module not found errors
Module not found errors
Error:
Cannot find module '@mariozechner/pi-ai'Solution: Ensure dependencies are installed:TypeScript errors in development
TypeScript errors in development
Error: Type errors when building web-uiSolution: Build dependencies first:The web-ui package uses TypeScript and needs compiled
.d.ts files from dependencies.Next Steps
Quick Start Guide
Run your first Pi agent in under 5 minutes
LLM Providers
Configure your preferred LLM provider
Coding Agent Guide
Learn the interactive coding agent
API Reference
Explore the programmatic API