Providers & Models
Pi supports multiple LLM providers through both API keys and OAuth subscriptions. Each provider offers different models with varying capabilities for vision, reasoning, and context windows.Supported Providers
Pi maintains a registry of tool-capable models, updated with every release.Subscription-Based (OAuth)
Anthropic Claude
Pro/Max subscription
OpenAI Codex
ChatGPT Plus/Pro subscription (GPT-5.x models)
GitHub Copilot
Copilot subscription
Google Gemini CLI
Gemini 2.0/2.5 via Cloud Code Assist
Google Antigravity
Free Gemini 3, Claude, GPT-OSS via Google Cloud
API Key-Based
- Major Providers
- High-Performance
- Aggregators & Enterprise
- Specialized
| Provider | Environment Variable | Models |
|---|---|---|
| Anthropic | ANTHROPIC_API_KEY | Claude 3.5 Sonnet, Opus, Haiku |
| OpenAI | OPENAI_API_KEY | GPT-4o, GPT-4o mini, o1 |
| Google Gemini | GEMINI_API_KEY | Gemini 1.5/2.0 Pro, Flash |
| Google Vertex | GOOGLE_CLOUD_PROJECT + ADC | Gemini via Vertex AI |
Authentication
Quick Start with OAuth
Authenticate
Follow the OAuth flow in your browser. Pi will automatically save your credentials to
~/.pi/agent/auth.json.Using API Keys
- Environment Variables
- Command Line
- .env File
Set environment variables before starting Pi:
Special Authentication Cases
Google Vertex AI (ADC)
Google Vertex AI (ADC)
Azure OpenAI
Azure OpenAI
Azure requires resource name or base URL:
Amazon Bedrock
Amazon Bedrock
Bedrock uses AWS credentials:
Model Selection
Interactive Selection
Press Ctrl+L or use/model to open the model selector:
Command Line Selection
Cycling Models
Configure models to cycle with Ctrl+P:- Ctrl+P: Next model
- Shift+Ctrl+P: Previous model
Listing Available Models
Model Capabilities
Vision Support
Models withinput: ["text", "image"] can process images:
Reasoning/Thinking
Models withreasoning: true support extended thinking:
- OpenAI (o1, o3, gpt-5)
- Anthropic (Claude Sonnet 4)
- Google (Gemini 2.5)
minimal: Fast responseslow,medium: Balancedhigh,xhigh: Deep reasoning
Default Models
Set default model in~/.pi/agent/settings.json:
/settings command in Pi.
Switching Providers Mid-Session
Pi supports switching models and providers during a conversation:<thinking> tags when sent to other providers.
Cost & Token Tracking
Pi tracks token usage and costs automatically:Environment Variables Reference
All Provider Variables
All Provider Variables
Troubleshooting
Authentication Failed
Authentication Failed
Model Not Available
Model Not Available
GitHub Copilot Model Not Supported
GitHub Copilot Model Not Supported
Enable the model in VS Code first:
- Open VS Code
- Open Copilot Chat
- Click model selector
- Select the model (shows warning icon)
- Click “Enable”
- Try again in Pi
Rate Limits
Rate Limits