singularity-forge/docs/what-is-pi
Nathan Roe 39cd932abb feat: add anthropic-vertex provider for Claude on Vertex AI (#1533)
* feat: add anthropic-vertex provider for Claude models on Google Vertex AI

Add a new anthropic-vertex provider that enables using Claude models
(Opus 4.6, Sonnet 4.6, Haiku 4.5) through Google Vertex AI using the
@anthropic-ai/vertex-sdk package. Follows the same pattern as the
existing google/google-vertex provider split.

Detection uses ANTHROPIC_VERTEX_PROJECT_ID (same env var as Claude Code)
with CLOUD_ML_REGION for region selection, falling back to us-central1.

Extracts shared Anthropic utilities into anthropic-shared.ts (message
conversion, tool conversion, param building, stream processing) to
avoid duplication between anthropic.ts and anthropic-vertex.ts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: add full Claude model set for anthropic-vertex provider

Add 200K context window variants for Opus 4.6 and Sonnet 4.6, plus
older models (Sonnet 4.5, Sonnet 4, Opus 4.5, Opus 4.1, Opus 4, Haiku 4.5).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add @anthropic-ai/vertex-sdk to root dependencies

Required for the published package to resolve the vertex SDK at runtime.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore: remove unnecessary comments to match codebase style

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: remove duplicate stream functions after rebase

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Nathan Roe <nathan.roe@carvana.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-19 23:14:13 -06:00
..
01-what-pi-is.md docs: add extension docs 2026-03-11 00:54:01 -06:00
02-design-philosophy.md docs: add extension docs 2026-03-11 00:54:01 -06:00
03-the-four-modes-of-operation.md docs: add extension docs 2026-03-11 00:54:01 -06:00
04-the-architecture-how-everything-fits-together.md docs: add extension docs 2026-03-11 00:54:01 -06:00
05-the-agent-loop-how-pi-thinks.md docs: add extension docs 2026-03-11 00:54:01 -06:00
06-tools-how-pi-acts-on-the-world.md docs: add extension docs 2026-03-11 00:54:01 -06:00
07-sessions-memory-that-branches.md docs: add extension docs 2026-03-11 00:54:01 -06:00
08-compaction-how-pi-manages-context-limits.md docs: add extension docs 2026-03-11 00:54:01 -06:00
09-the-customization-stack.md docs: add extension docs 2026-03-11 00:54:01 -06:00
10-providers-models-multi-model-by-default.md feat: add anthropic-vertex provider for Claude on Vertex AI (#1533) 2026-03-19 23:14:13 -06:00
11-the-interactive-tui.md docs: add extension docs 2026-03-11 00:54:01 -06:00
12-the-message-queue-talking-while-pi-thinks.md docs: add extension docs 2026-03-11 00:54:01 -06:00
13-context-files-project-instructions.md docs: add extension docs 2026-03-11 00:54:01 -06:00
14-the-sdk-rpc-embedding-pi.md docs: add extension docs 2026-03-11 00:54:01 -06:00
15-pi-packages-the-ecosystem.md docs: add extension docs 2026-03-11 00:54:01 -06:00
16-why-pi-matters-what-makes-it-different.md docs: add extension docs 2026-03-11 00:54:01 -06:00
17-file-reference-all-documentation.md docs: add extension docs 2026-03-11 00:54:01 -06:00
18-quick-reference-commands-shortcuts.md docs: add extension docs 2026-03-11 00:54:01 -06:00
19-building-branded-apps-on-top-of-pi.md docs: add extension docs 2026-03-11 00:54:01 -06:00
README.md docs: add extension docs 2026-03-11 00:54:01 -06:00