Skip to main content

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

Authentication

Quick Start with OAuth

1

Start Pi

2

Login

Select your provider from the interactive list.
3

Authenticate

Follow the OAuth flow in your browser. Pi will automatically save your credentials to ~/.pi/agent/auth.json.
4

Select Model

Choose from available models for your provider.

Using API Keys

Set environment variables before starting Pi:

Special Authentication Cases

Vertex AI uses Application Default Credentials:
See Google ADC documentation.
Azure requires resource name or base URL:
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:
In Pi, press:
  • Ctrl+P: Next model
  • Shift+Ctrl+P: Previous model

Listing Available Models

Model Capabilities

Vision Support

Models with input: ["text", "image"] can process images:

Reasoning/Thinking

Models with reasoning: true support extended thinking:
Thinking levels:
  • minimal: Fast responses
  • low, medium: Balanced
  • high, xhigh: Deep reasoning

Default Models

Set default model in ~/.pi/agent/settings.json:
Or use /settings command in Pi.

Switching Providers Mid-Session

Pi supports switching models and providers during a conversation:
Thinking blocks from one provider are converted to text with <thinking> tags when sent to other providers.

Cost & Token Tracking

Pi tracks token usage and costs automatically:
View detailed stats:

Environment Variables Reference

Troubleshooting

Enable the model in VS Code first:
  1. Open VS Code
  2. Open Copilot Chat
  3. Click model selector
  4. Select the model (shows warning icon)
  5. Click “Enable”
  6. Try again in Pi