Deploy SAM

Google Cloud

Compute Engine with keyless sign-in

Sign in with Google and SAM sets up Workload Identity Federation in your project for you, or connect a service-account key. SAM then provisions Compute Engine VMs.

What you get

Keyless by default

Connect with Google and SAM enables the APIs it needs, creates the WIF pool, provider and service account, and grants the bindings in your project.

Service-account key option

Where the installation has no Google infrastructure OAuth client, connect a service-account JSON key instead.

Live machine catalog

SAM builds its list of machine types and prices from Google's own catalog and billing data.

Eight zones

Iowa, South Carolina, Oregon, Belgium, Frankfurt, London, Singapore and Tokyo.

The SAM Nodes page showing machines on Vultr, Scaleway and Hetzner with their location, hardware, monthly price, resource use and the workspaces running on each.The SAM Nodes page showing machines on Vultr, Scaleway and Hetzner with their location, hardware, monthly price, resource use and the workspaces running on each.
Machines from every connected provider appear on one Nodes page, with hardware, price and the workspaces each one runs. Full size

Set it up in 3 steps

  1. Connect with Google

    In Settings → Infrastructure → Cloud accounts, sign in with a Google account that can administer your VM project.

  2. Pick the project and zone

    SAM sets up Workload Identity Federation in that project and verifies the token exchange.

  3. Run work

    SAM creates Compute Engine VMs with short-lived credentials. The VMs get no service account.

Good for

Use existing Google commitments

Run agent machines on a GCP project that already has credits or a billing agreement.

No stored long-lived key

With WIF, SAM exchanges short-lived tokens instead of keeping a service-account key.

Questions

Does GCP support persistent deployment volumes?

Not yet. A deployment environment on Google Cloud cannot use persistent volumes, so put environments that need them on another provider.

What does the installation administrator need to set up?

A Google OAuth client for infrastructure sign-in, with the Cloud Resource Manager and IAM APIs enabled. The Google Cloud guide lists every step.

Do I need my own Google Cloud account?

Only if nobody else provides one. SAM uses a project's cloud account first, then yours, then one the installation administrator connected. With none of those, a profile can still run Instant sessions on Cloudflare Containers.


Get your coding agents off your laptop

SAM is open source. Deploy it to your Cloudflare account and connect your agent. Add a cloud provider when you want full environments on your own servers.