# Pi ## Docs - [Agent Core Overview](https://mintlify.wiki/badlogic/pi-mono/agent/overview.md): Stateful agent runtime with tool execution and event streaming - [State Management](https://mintlify.wiki/badlogic/pi-mono/agent/state-management.md): Managing agent state, messages, and queues - [Transport](https://mintlify.wiki/badlogic/pi-mono/agent/transport.md): Custom backends and proxy usage for agent runtime - [OAuth Authentication](https://mintlify.wiki/badlogic/pi-mono/ai/oauth.md): Set up OAuth for subscription-based providers (OpenAI Codex, GitHub Copilot, Google Gemini CLI, Antigravity) - [LLM API Overview](https://mintlify.wiki/badlogic/pi-mono/ai/overview.md): Unified interface for interacting with 15+ LLM providers with automatic model discovery, tool calling, and streaming support - [LLM Providers](https://mintlify.wiki/badlogic/pi-mono/ai/providers.md): Complete guide to all 15+ supported LLM providers with authentication and configuration - [Streaming API](https://mintlify.wiki/badlogic/pi-mono/ai/streaming.md): Real-time streaming of text, thinking, and tool calls with granular event types - [Thinking & Reasoning](https://mintlify.wiki/badlogic/pi-mono/ai/thinking.md): Enable reasoning capabilities across providers with unified interface - [Tool Calling](https://mintlify.wiki/badlogic/pi-mono/ai/tools.md): Define and use tools (function calling) with TypeBox schemas and automatic validation - [Agent Core](https://mintlify.wiki/badlogic/pi-mono/api/agent/core.md): Core agent runtime for building agentic applications - [Transport](https://mintlify.wiki/badlogic/pi-mono/api/agent/transport.md): Transport interface for custom agent backends - [Agent Types](https://mintlify.wiki/badlogic/pi-mono/api/agent/types.md): Type definitions for the agent core package - [Complete Functions](https://mintlify.wiki/badlogic/pi-mono/api/ai/complete.md): Synchronous completion helpers for LLM responses - [Context & Messages](https://mintlify.wiki/badlogic/pi-mono/api/ai/context.md): Message types and context structure for LLM conversations - [Model Functions](https://mintlify.wiki/badlogic/pi-mono/api/ai/models.md): Model registry functions for discovering and accessing LLM models - [Stream Functions](https://mintlify.wiki/badlogic/pi-mono/api/ai/stream.md): Stream LLM responses with events and completion helpers - [Type Definitions](https://mintlify.wiki/badlogic/pi-mono/api/ai/types.md): Core type definitions for the AI package - [AgentSession](https://mintlify.wiki/badlogic/pi-mono/api/coding-agent/agent-session.md): Core class for managing agent lifecycle, events, and session state - [ExtensionAPI](https://mintlify.wiki/badlogic/pi-mono/api/coding-agent/extension-api.md): API interface provided to extensions for interacting with the agent - [SessionManager](https://mintlify.wiki/badlogic/pi-mono/api/coding-agent/session-manager.md): Manage session persistence, history, and branching - [Built-in Tools](https://mintlify.wiki/badlogic/pi-mono/api/coding-agent/tools.md): File system and shell tools provided by Pi - [TUI Components](https://mintlify.wiki/badlogic/pi-mono/api/tui/components.md): Terminal UI components for building interactive interfaces - [Rendering API](https://mintlify.wiki/badlogic/pi-mono/api/tui/rendering.md): TUI rendering system and utilities - [TUI Types](https://mintlify.wiki/badlogic/pi-mono/api/tui/types.md): Type definitions for the TUI package - [Web UI Components](https://mintlify.wiki/badlogic/pi-mono/api/web-ui/components.md): React components for building web-based AI chat interfaces - [Web UI Types](https://mintlify.wiki/badlogic/pi-mono/api/web-ui/types.md): Type definitions for the Web UI package - [Customization](https://mintlify.wiki/badlogic/pi-mono/coding-agent/customization.md): Settings, configuration, and customization options for Pi coding agent - [Extensions](https://mintlify.wiki/badlogic/pi-mono/coding-agent/extensions.md): Building TypeScript extensions to customize Pi's behavior with custom tools, commands, UI, and event handlers - [Interactive Mode](https://mintlify.wiki/badlogic/pi-mono/coding-agent/interactive-mode.md): Editor features, commands, keyboard shortcuts, and message queue in Pi's interactive terminal UI - [Overview](https://mintlify.wiki/badlogic/pi-mono/coding-agent/overview.md): Introduction to the Pi coding agent CLI - a minimal terminal coding harness - [Pi Packages](https://mintlify.wiki/badlogic/pi-mono/coding-agent/pi-packages.md): Installing and creating Pi packages to share extensions, skills, prompts, and themes via npm or git - [Prompt Templates](https://mintlify.wiki/badlogic/pi-mono/coding-agent/prompt-templates.md): Creating reusable prompt templates with variable substitution for Pi coding agent - [Sessions](https://mintlify.wiki/badlogic/pi-mono/coding-agent/sessions.md): Session management, branching, tree navigation, and automatic compaction in Pi - [Skills](https://mintlify.wiki/badlogic/pi-mono/coding-agent/skills.md): Agent Skills standard support - on-demand capability packages with workflows and documentation - [Themes](https://mintlify.wiki/badlogic/pi-mono/coding-agent/themes.md): Customizing Pi's terminal UI colors and appearance with JSON themes - [Architecture Overview](https://mintlify.wiki/badlogic/pi-mono/concepts/architecture.md): Understanding the layered architecture of the Pi AI agent toolkit - [Extensibility System](https://mintlify.wiki/badlogic/pi-mono/concepts/extensibility.md): Extensions, skills, prompt templates, and customization in Pi - [Package Reference](https://mintlify.wiki/badlogic/pi-mono/concepts/packages.md): Detailed reference for all seven packages in the Pi toolkit - [Building TypeScript Extensions](https://mintlify.wiki/badlogic/pi-mono/guides/building-extensions.md): Learn how to extend Pi with custom tools, event handlers, and UI components using TypeScript - [Creating Agent Skills](https://mintlify.wiki/badlogic/pi-mono/guides/creating-skills.md): Build self-contained capability packages with specialized workflows and reference documentation - [Cross-Provider Model Handoffs](https://mintlify.wiki/badlogic/pi-mono/guides/cross-provider-handoffs.md): Switch between different LLM providers mid-conversation while preserving context and tool calls - [Adding Custom LLM Providers](https://mintlify.wiki/badlogic/pi-mono/guides/custom-providers.md): Register custom model providers with Pi using extensions for proxies, custom endpoints, and OAuth flows - [Using Pi SDK Programmatically](https://mintlify.wiki/badlogic/pi-mono/guides/programmatic-usage.md): Embed Pi's agent capabilities in your applications with the TypeScript SDK - [Installation](https://mintlify.wiki/badlogic/pi-mono/installation.md): Install Pi packages for your use case - [Pi AI Agent Toolkit](https://mintlify.wiki/badlogic/pi-mono/introduction.md): Build powerful AI agents with a unified LLM API, agent runtime, and interactive terminal UI - [Mom - Slack Bot](https://mintlify.wiki/badlogic/pi-mono/mom/slack-bot.md): Self-managing Slack bot powered by the Pi coding agent - [vLLM Pod Management](https://mintlify.wiki/badlogic/pi-mono/pods/vllm-management.md): Deploy and manage LLMs on GPU pods with automatic vLLM configuration - [Quick Start](https://mintlify.wiki/badlogic/pi-mono/quick-start.md): Get up and running with Pi in under 5 minutes - [TUI Components](https://mintlify.wiki/badlogic/pi-mono/tui/components.md): Built-in components for terminal UI applications - [Terminal UI Overview](https://mintlify.wiki/badlogic/pi-mono/tui/overview.md): Differential rendering framework for flicker-free terminal applications - [Web UI Components](https://mintlify.wiki/badlogic/pi-mono/web-ui/components.md): Web components for building AI chat interfaces - [Web UI Overview](https://mintlify.wiki/badlogic/pi-mono/web-ui/overview.md): Reusable web components for AI chat interfaces ## OpenAPI Specs - [openapi](https://mintlify.wiki/badlogic/pi-mono/api-reference/openapi.json)