pi-vertex-anthropic
A pi provider extension for Anthropic Claude models hosted on Google Cloud Vertex AI, using Google Application Default Credentials (ADC) for authentication.
Use this extension if you want to use Claude in pi with billing through GCP, no API keys, and no gcloud subprocess calls — auth is handled by google-auth-library, the same way other Google Cloud client libraries do.
Features
- Claude Opus, Sonnet, and Haiku on Google Cloud Vertex AI.
- Application Default Credentials support:
gcloud user credentials, service account JSON, GCE/GKE metadata server, Workload Identity, and other ADC sources.
- No Anthropic API keys in pi.
- No
gcloud subprocess calls at request time.
- Streaming, tool calls, prompt caching, image input, and thinking support through pi-ai's built-in Anthropic pipeline.
- Interactive
/login region picker, with environment-variable overrides for non-interactive setups.
When to use this
Use this extension if:
- You want to use Anthropic Claude models from pi through Google Cloud Vertex AI.
- You want billing, IAM, audit logs, org policy, and quota to stay in GCP.
- You already use Application Default Credentials locally, on GCE/GKE, or with Workload Identity.
- You do not want to manage Anthropic API keys in pi.
Do not use this extension if:
- You want to call Anthropic's direct API with an Anthropic API key — use pi's built-in Anthropic provider instead.
- Your GCP project does not have Vertex AI enabled or Anthropic Claude model access granted in Model Garden.
- You need this extension to provision GCP resources or request Model Garden access for you; it only connects pi to an already-configured Vertex AI project.
Relationship to pi-ai's built-in google-vertex