Claude Code on Google Cloud's Agent Platform changedgoogle-vertex-ai
Upstream edited this page at 28 Nov 2026 18:35 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 28 Nov 2026 18:37 UTC.
Upstream edited
Recorded here
Lines+11added
Lines−5removed
From line
156
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits31to this page, all time
The whole hunk
from line 156, old and new numbered
/
from line 156
156156
157157Set these environment variables to specific Google Cloud's Agent Platform model IDs.
158158
159Without `ANTHROPIC_DEFAULT_OPUS_MODEL`, the `opus` alias on Google Cloud's Agent Platform resolves to Opus 5.5, and without `ANTHROPIC_DEFAULT_SONNET_MODEL`, the `sonnet` alias resolves to Sonnet 4.5. This example pins each alias to a specific version:
159Without `ANTHROPIC_DEFAULT_OPUS_MODEL`, the `opus` alias on Google Cloud's Agent Platform resolves to Opus 5.5, and without `ANTHROPIC_DEFAULT_SONNET_MODEL`, the `sonnet` alias resolves to Sonnet 5.5.
160160
161This example pins each alias to a specific version:
162
161163```bash theme={null}
162164export ANTHROPIC_DEFAULT_OPUS_MODEL='claude-opus-4-8'
163165export ANTHROPIC_DEFAULT_SONNET_MODEL='claude-sonnet-5'
from line 173
171173| Model type | Default value |
172174| :- | :- |
173175| Primary model | `claude-opus-5-5` |
174| Small/fast model | `claude-sonnet-4-5@20250929` |
176| Small/fast model | `claude-sonnet-5-5` |
175177
176178Before v2.1.280, the primary model on Google Cloud's Agent Platform defaulted to Opus 5 and the `opus` alias resolved to Opus 5 from v2.1.219.
177179
180Before v2.1.332, the `sonnet` alias and the small/fast model on Google Cloud's Agent Platform were Sonnet 4.5.
181
178182Background tasks such as session title generation use the small/fast model, normally a Haiku-class model. On Google Cloud's Agent Platform, Claude Code uses the default Sonnet model for background tasks because Haiku may not be enabled in every project or region. Two selections change which model carries them:
179183
180184* When you select a primary model with `--model`, `ANTHROPIC_MODEL`, or the `model` setting, background tasks use that model. When Claude Code starts the session on the model you set with [`ANTHROPIC_DEFAULT_MODEL`](https://code.claude.com/docs/en/model-config#set-a-default-model-for-new-sessions), background tasks use that model too. Setting `ANTHROPIC_DEFAULT_OPUS_MODEL` without `ANTHROPIC_DEFAULT_SONNET_MODEL` also counts as a selection, because the built-in Sonnet model may not be enabled in a project that steers its own Opus.
from line 186
182186
183187> [!WARNING]
184188>
185> Opus models have a higher per-token price than Sonnet models, so if you don't pin a primary model, you're billed at the Opus rate. To use Sonnet 4.5 as the primary model, set `ANTHROPIC_MODEL` to its full model ID. A deployment that steers the default with `ANTHROPIC_DEFAULT_SONNET_MODEL` and doesn't set `ANTHROPIC_DEFAULT_OPUS_MODEL` keeps its steered Sonnet model as the default.
189> Opus models have a higher per-token price than Sonnet models, so if you don't pin a primary model, you're billed at the Opus rate. To use Sonnet 5 as the primary model, set `ANTHROPIC_MODEL` to its full model ID. A deployment that steers the default with `ANTHROPIC_DEFAULT_SONNET_MODEL` and doesn't set `ANTHROPIC_DEFAULT_OPUS_MODEL` keeps its steered Sonnet model as the default, unless [`enforceAvailableModels`](https://code.claude.com/docs/en/model-config#enforce-the-allowlist-for-the-default-model) is on.
186190
187191To customize models further:
188192
from line 226
222226
223227If you set [`enforceAvailableModels`](https://code.claude.com/docs/en/model-config#enforce-the-allowlist-for-the-default-model) in managed settings, the startup model checks use only models your `availableModels` list permits. This requires Claude Code v2.1.287 or later. A list without `enforceAvailableModels` doesn't restrict these checks.
224228
225The checks compare each entry with the model ID they would send to Agent Platform, so write the list in those IDs. This example permits Opus 4.8 and Sonnet 4.5:
229The checks compare each entry with the model ID they would send to Agent Platform, so write the list in those IDs.
226230
231This example permits Opus 4.8 and Sonnet 4.6:
232
227233```json theme={null}
228234{
229 "availableModels": ["claude-opus-4-8", "claude-sonnet-4-5@20250929"],
235 "availableModels": ["claude-opus-4-8", "claude-sonnet-4-6"],
230236 "enforceAvailableModels": true
231237}
232238```
No line in this hunk matches that.