selan.ai

Guide · Claude Code for a team

How do you run Claude Code on Vertex AI for a team?

Set CLAUDE_CODE_USE_VERTEX=1, CLOUD_ML_REGION and ANTHROPIC_VERTEX_PROJECT_ID, and sign in with Google Cloud credentials that hold roles/aiplatform.user. Claude Code then sends every request to your own Google Cloud project. The project needs billing, the API switched on, each Claude model enabled in Model Garden, and quota. For a team, pin the model versions and give every developer a Google sign-in, or connect the project once to a gateway.

How do you set up Claude Code with Vertex AI?

Vertex AI is now called Google Cloud's Agent Platform, and Claude Code's settings keep the VERTEX spelling. The quickest way in is Claude Code's own wizard. Run claude, choose 3rd-party platform, then Google Vertex AI.

  • It asks how you sign in to Google Cloud: Application Default Credentials from gcloud, a service account key file, or credentials already in your environment.
  • It asks for the project and region, checks which Claude models the project can call, and lets you pin them.
  • It saves the result to the env block of ~/.claude/settings.json. /setup-vertex opens it again.

For a script, CI or a rollout, set the variables yourself:

gcloud services enable aiplatform.googleapis.com --project YOUR-PROJECT-ID

export CLAUDE_CODE_USE_VERTEX=1
export CLOUD_ML_REGION=global
export ANTHROPIC_VERTEX_PROJECT_ID=YOUR-PROJECT-ID

CLOUD_ML_REGION takes global, a multi-region such as eu or us, or a region such as us-east5. Unset, it falls back to us-east5. A model that is not served on Global gets its own VERTEX_REGION_CLAUDE_* variable. Run /status to check: the API provider line should read Google Vertex AI.

Google Cloud sells Claude a second way, Claude Models on Google Cloud (Anthropic managed), which Anthropic runs. That one takes CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD and the roles/claude.user role. This guide is about the Agent Platform.

What does the Google Cloud project need?

  • Billing. Vertex refuses a project with no billing account, and the error does not say so.
  • The API. aiplatform.googleapis.com, switched on with the command above.
  • Each Claude model enabled in Model Garden. Enabling one accepts Anthropic's terms for that project. Anthropic says approval may take 24 to 48 hours.
  • Quota, per model. A new project starts at zero. You request an increase in the console's Quotas page, and Google reviews it. To raise rate limits later, Anthropic says to contact Google Cloud support.
  • One role per person. roles/aiplatform.user carries aiplatform.endpoints.predict, the one permission Claude Code needs.

Anthropic recommends a project of its own for Claude Code, so the cost and the access stay separate from everything else you run.

A model that worked a second ago can answer 404 or 403 on Global. Global routes to regional backends that each keep their own copy of which models a project may use, and Google answers 404 or 403 until they agree. Google Vertex has a script that syncs every backend. Some Claude 5 models also answer 403 until you accept data sharing with Anthropic, which is your decision.

How do you roll Claude Code on Vertex AI out to a team?

Anthropic's advice for a team is the manual setup with pinned model versions. Without a pin, the opus alias resolves to Opus 5.5 and sonnet to Sonnet 5.5, which may not be enabled in your project yet.

export ANTHROPIC_DEFAULT_OPUS_MODEL='claude-opus-5-5'
export ANTHROPIC_DEFAULT_SONNET_MODEL='claude-sonnet-5-5'
export ANTHROPIC_DEFAULT_HAIKU_MODEL='claude-haiku-5-5'
  • The default is Opus, billed at Opus's rate. Set ANTHROPIC_MODEL to a Sonnet id if that is what the team should start on.
  • Put the pins in managed settings. A pin in managed settings' env block gets no startup check and no prompt to move to a newer model.
  • Limit the models. availableModels with enforceAvailableModels in managed settings keeps the startup check and its fallback inside your list, from Claude Code v2.1.287.
  • Every developer signs in to Google Cloud. Each one needs the role on the project and runs gcloud auth application-default login, or holds a service account key file. gcpAuthRefresh reruns the sign-in when the credentials expire.
  • /logout is unavailable, because Google Cloud credentials do the signing in.

What does Claude Code lose on Vertex AI?

Every feature that needs a claude.ai sign-in. That includes cloud sessions, Claude Code on mobile, cloud scheduled tasks (/schedule), Remote Control, the Chrome extension and Code Review. Desktop's Code tab works only through managed settings or Claude Desktop on 3P.

  • Also missing: the Advisor, Channels, the analytics dashboard, server-managed settings, and the /design-sync and /import commands.
  • Partly there: fast mode on Fable 5.2 in global, us and eu only, and auto mode on Sonnet 5 or later, Opus 4.7 or later, Haiku 5.5 and the Fable models only.
  • Off by default: error reports and telemetry to Anthropic.

Cost lands in Google Cloud's billing console, and its budget controls are the cap. Claude Code sends no metrics from your cloud back to Anthropic, so Anthropic's analytics do not cover this usage. Cost per developer takes OpenTelemetry from every laptop or a gateway, as in Claude Code cost per developer, and a spend limit per developer takes a gateway.

How does Selan run Claude Code on your Vertex project?

Selan is a hosted gateway that runs Claude Code and Codex on the accounts your company already pays for. Your Vertex project is one of them, connected once by an owner, as in Google Vertex.

  • One grant, no key. You grant your workspace's own Google service account roles/aiplatform.user on your project. Selan mints a short-lived token for each request and stores no key.
  • Checked before it is saved. Adding the project runs one real token of inference against it, and nothing is stored unless that succeeds.
  • No Google sign-in on a laptop. Developers sign in to Selan and run selan claude. Nobody needs the role, gcloud or a key file.
  • Beside your seats. Selan tries subscription seats first; Vertex serves the same Claude models on your own Google invoice when they are capped. Codex reaches Claude on the project too, because Selan translates.
  • One usage record and a limit per person. Usage is counted to each developer, and an owner sets spend limits per key and per person, for a day, a week or a month.
  • Revoked on your side. One gcloud command removes the grant, and the next request fails to authenticate.

Models and providers lists every account Selan can serve Claude from.

One grant on your project replaces a Google sign-in on every laptop.

Start for free

Free for up to three seats, and the Free plan needs no card.

When is Claude Code's own Vertex setup the better answer?

  • Requests must stay in the EU. Claude Code's own setup can pin CLOUD_ML_REGION=eu. Selan connects every project on Global, which has the best availability and carries every current Claude model, but is not pinned to Europe. See EU data residency.
  • No third party may sit in the path. Claude Code's own setup goes straight to Google. Anthropic's Claude apps gateway runs in your own cloud account and can forward to Google Cloud too.
  • One developer, already on gcloud. The wizard takes a few minutes, and there is nobody to meter.

For a team, the gateway kinds side by side are in the best Claude Code gateway for a team, and Claude Code without API keys covers the rest of keeping credentials off laptops.

The short version

How Claude Code runs on Google Cloud's Agent Platform, and what it lacks there, is as Anthropic's pages on the Agent Platform, Claude Models on Google Cloud (Anthropic managed), feature availability and costs (code.claude.com/docs/en/google-vertex-ai, /claude-models-on-google-cloud-anthropic-managed, /feature-availability and /costs) and its Academy tutorial on Claude on Google Cloud (Google managed) stated it on 3 December 2026. These change: check the date before relying on them. What Selan does is as its Google Vertex, providers and getting-started docs stated it then.