All resources
Guide/8 min read

Coding agents on AWS Bedrock, Microsoft Foundry and Google Cloud

Published

Summary

Which coding agents run on Amazon Bedrock, Microsoft Foundry or Azure OpenAI, and Google Cloud Vertex AI, how to turn each one on, and what changes from a subscription.

Most coding agents can send their model requests through your own cloud account instead of the agent vendor's. On AWS that means Amazon Bedrock, on Azure it means Microsoft Foundry (which includes Azure OpenAI), and on Google Cloud it means the Agent Platform, which Google used to call Vertex AI. This guide lists which agents support each one, how to turn it on, and what changes when you do.

Vendor docs change often, so every claim about a vendor below links to its own page. We checked them all on November 8, 2026.

Why teams route coding agents through their cloud

Teams usually do this for one of three reasons:

ReasonWhat it gets you
BillingModel usage lands on the cloud bill you already pay, and can count toward committed spend with that provider
Access controlEngineers sign in with the same IAM, Entra ID, or Google Cloud identities as everything else, and admins revoke access in one place
Data termsPrompts and code go to a model hosted under your existing cloud agreement, instead of a new contract with a model vendor

The tradeoff is that you pay per token at your cloud provider's rates. There is no flat monthly price, and no usage limit beyond your own quotas and spend limits.

Which coding agents run on Bedrock, Foundry, and Google Cloud

This table covers each agent's own documented setup. "Not documented" means the vendor's pages don't say it works. Ask the vendor before you rely on it. In alphabetical order:

AgentAmazon BedrockMicrosoft Foundry or Azure OpenAIGoogle Cloud (Vertex AI)
Claude Code (CLI, IDE, desktop)Yes (Anthropic)Yes (Anthropic)Yes (Anthropic)
Claude Code cloud sessionsNo. Cloud sessions need a claude.ai sign-in (Anthropic)NoNo
ClineYes (Cline)Not documentedYes (Cline)
Codex CLI and IDE extensionYes, built-in amazon-bedrock provider (OpenAI)Yes, as a custom Azure provider (OpenAI)Not documented
Codex cloudNo. Codex cloud needs a ChatGPT sign-in (OpenAI)NoNo
CursorYes, in the editor (Cursor). Not documented for Cloud AgentsNot documentedNot documented
FactoryYes, in the Droid CLI and desktop app, not the hosted web platform (Factory)Not documentedNot documented
GitHub CopilotYes, in Copilot Chat, Copilot CLI and IDEs, in public preview (GitHub). Not documented for the cloud agentYes, same surfaces (GitHub)Not documented. Google AI Studio is listed instead
OpenCodeYes (OpenCode)Yes (OpenCode)Yes (OpenCode)
Replicas (cloud workspaces)Yes, for Claude Code (Replicas)Yes, for Claude Code and Codex (Replicas)No

The pattern is clear. Agents that run on your own machine almost all support at least one cloud provider. The vendor-hosted cloud agents mostly don't: Anthropic, OpenAI, Cursor, Factory and GitHub tie their cloud agents to their own subscriptions or plans. If you want an agent that works in the cloud and still bills to your cloud account, check this before you buy.

How to turn it on in each agent

Each agent has its own switch. These are the documented settings:

AgentAmazon BedrockMicrosoft Foundry or Azure OpenAIGoogle Cloud
Claude CodeCLAUDE_CODE_USE_BEDROCK=1, or run /setup-bedrockCLAUDE_CODE_USE_FOUNDRY=1 and ANTHROPIC_FOUNDRY_RESOURCECLAUDE_CODE_USE_VERTEX=1, CLOUD_ML_REGION, and ANTHROPIC_VERTEX_PROJECT_ID
Codexmodel_provider = "amazon-bedrock" in config.tomlA [model_providers.azure] entry with your endpoint and AZURE_OPENAI_API_KEYNot documented
CursorAn IAM role in the Cursor dashboard, then each user turns on Bedrock under Cursor Settings → ModelsNot documentedNot documented
GitHub CopilotAn enterprise owner enables custom models, then an admin adds the keySame as BedrockNot documented
OpenCodeAWS_PROFILE or AWS_BEARER_TOKEN_BEDROCK, plus AWS_REGIONAZURE_RESOURCE_NAME, with an API key or Entra IDGOOGLE_CLOUD_PROJECT and GOOGLE_VERTEX_LOCATION

On every provider you also have to turn on the models in your cloud account first. On Bedrock you submit Anthropic's use case form once per AWS account. On Google Cloud you request access in Model Garden, and Anthropic's docs say approval may take 24 to 48 hours (Anthropic). On Foundry you create a deployment for each model (Anthropic).

What changes compared with a subscription

Moving Claude Code from a Claude subscription to a cloud provider changes a few things. Anthropic documents these:

ChangeBedrockFoundryGoogle Cloud
Sign-inAWS credentials, SSO profile, or a Bedrock API keyAPI key, Entra ID, or a bearer tokenApplication Default Credentials or a service account
Web search toolNot available (Anthropic)AvailableAvailable on Opus 4, Sonnet 4, Haiku 4.5 and later models
Model check at startupYes. Falls back to an older model if the default isn't enabledNo. Requests fail if the default model isn't deployedYes. Same fallback as Bedrock
Where inference runsAWSAzure or Anthropic, depending on the hosting option you pick for the deploymentGoogle Cloud

Two things apply to all three. First, pin model versions before you roll out to a team. Without pins, the opus and sonnet aliases resolve to Claude Code's built-in defaults, which may not be enabled in your account. Second, on Bedrock and Google Cloud, Claude Code uses Opus by default if you don't pin a primary model, and Opus costs more per token than Sonnet (Anthropic).

Questions to ask a coding agent vendor

  1. Does the cloud agent itself run on our Bedrock, Foundry, or Google Cloud account, or only the editor and CLI?
  2. How does it sign in: a static access key, an IAM role it assumes, or workload identity?
  3. Where are the credentials stored, and who can read them?
  4. Can we set the cloud account as the default and keep subscriptions as a fallback, or the other way around?
  5. Does the vendor add any fee on model usage that goes through our account?

Where Replicas fits

Replicas runs Claude Code, Codex, Cursor, OpenCode and Pi in cloud workspaces, on model accounts you already have. Claude Code can run on Amazon Bedrock or Microsoft Foundry, and Codex can run on Azure OpenAI through Microsoft Foundry. Google Cloud isn't supported yet. Bedrock uses an access key ID, secret access key and region, not an assumed IAM role (Replicas).

An admin decides the order in which accounts are tried, called a fallback chain. A company with committed AWS spend can put Bedrock first, and a team can keep Claude subscriptions first and fall back to Bedrock when a subscription hits its usage limit. Replicas charges for workspace time and doesn't add a fee on model usage. Any organization member who can open a workspace can read the credentials inside it, so use a key scoped to model access only.

For subscriptions and plain API keys, see Cloud coding agents that use your own API key or subscription.

FAQ

Frequently asked questions