hippo: This post is part of the Claude Code Official Docs Breakdown series.


1. What Is This Feature?

If your organization enforces strict network security or compliance policies, pointing Claude Code directly at the Anthropic API is often a non-starter. Claude Code supports four deployment paths:

  1. Teams / Enterprise subscriptions: Anthropic’s managed team plans. Ready out of the box—Teams is $150/seat (Premium tier), while Enterprise adds SSO (Single Sign-On), domain capture, role-based access control, and managed policies.
  2. Direct cloud provider integration: Route Claude calls through AWS Bedrock, Google Vertex AI, or Microsoft Foundry to reuse existing cloud billing and IAM (Identity and Access Management).
  3. Corporate proxy: Send all outbound traffic through a company proxy server via HTTPS_PROXY to satisfy security auditing and egress policies.
  4. LLM gateway: Insert an application-layer gateway between Claude Code and the model provider to centralize authentication, rate limiting, and logging.

These four paths are not mutually exclusive—you can combine a cloud provider with a corporate proxy, an LLM gateway, or both. The goal is to match the architecture to your actual compliance and operational requirements.


2. Official Docs Breakdown

2.1 Comparing Deployment Options

Anthropic recommends Claude for Teams or Claude for Enterprise for most organizations. However, if your company is already heavily invested in AWS, GCP, or Azure, running on Bedrock, Vertex AI, or Foundry removes significant procurement and IAM overhead. Here is how all six options compare side by side:

Dimension Claude for Teams Claude for Enterprise Anthropic Console Amazon Bedrock Google Vertex AI Microsoft Foundry
Best for Fast setup for small teams Large-enterprise compliance & auditing Individual developers AWS-native deployments GCP-native deployments Azure-native deployments
Billing $150/seat (Premium) Contact sales Pay-as-you-go AWS pay-as-you-go GCP pay-as-you-go Azure pay-as-you-go
Authentication SSO / Email SSO / Email API Key AWS credentials GCP credentials API Key / Entra ID
Cost tracking Usage dashboard Usage dashboard Usage dashboard AWS Cost Explorer GCP Billing Azure Cost Management
Claude on the web Included Included Not included Not included Not included Not included
Enterprise features Team management, usage monitoring SSO, managed policies, compliance API None IAM, CloudTrail IAM, Cloud Audit RBAC, Azure Monitor

The core rule of thumb: if you already run on a cloud platform, use its managed provider; otherwise, go with Teams or Enterprise. Note that Enterprise-only features like SSO and managed permissions are not available on Bedrock or Vertex AI—if those are hard requirements, Enterprise is the only path.

2.2 Corporate Proxy and LLM Gateway Configuration

Corporate proxies and LLM gateways operate at different layers of the stack:

  • Corporate proxy (HTTPS_PROXY): Operates at the network layer, routing all outbound requests through a proxy server for security monitoring, compliance auditing, and network policy enforcement.
  • LLM gateway (ANTHROPIC_*_BASE_URL): Operates at the application layer for authentication and routing. Claude Code sends requests to the gateway, which forwards them to the upstream model provider. Use this for centralized usage tracking, custom rate limits, and unified credential management.

You can stack both—traffic flows through the corporate proxy first, then reaches the LLM gateway.

Bedrock examples:

1
2
3
4
5
6
7
8
9
# Option 1: Bedrock + corporate proxy
export CLAUDE_CODE_USE_BEDROCK=1
export AWS_REGION=us-east-1
export HTTPS_PROXY='https://proxy.example.com:8080'

# Option 2: Bedrock + LLM gateway
export CLAUDE_CODE_USE_BEDROCK=1
export ANTHROPIC_BEDROCK_BASE_URL='https://your-llm-gateway.com/bedrock'
export CLAUDE_CODE_SKIP_BEDROCK_AUTH=1 # Skip local AWS auth when the gateway handles authentication

Vertex AI example:

1
2
3
4
5
# Vertex AI + corporate proxy
export CLAUDE_CODE_USE_VERTEX=1
export CLOUD_ML_REGION=us-east5
export ANTHROPIC_VERTEX_PROJECT_ID=your-project-id
export HTTPS_PROXY='https://proxy.example.com:8080'

Foundry example:

1
2
3
4
5
# Foundry + corporate proxy
export CLAUDE_CODE_USE_FOUNDRY=1
export ANTHROPIC_FOUNDRY_RESOURCE=your-resource
export ANTHROPIC_FOUNDRY_API_KEY=your-api-key # Or omit to use Entra ID
export HTTPS_PROXY='https://proxy.example.com:8080'

Note that the CLAUDE_CODE_SKIP_*_AUTH variables are strictly for LLM gateway setups—enable them only when the gateway handles cloud provider authentication on your behalf and Claude Code should skip local auth.

Environment variable quick reference:

Variable Description Applies To
CLAUDE_CODE_USE_BEDROCK Set to 1 to enable Bedrock AWS Bedrock
CLAUDE_CODE_USE_VERTEX Set to 1 to enable Vertex AI Google Vertex AI
CLAUDE_CODE_USE_FOUNDRY Set to 1 to enable Foundry Azure Foundry
HTTPS_PROXY Corporate HTTP/HTTPS proxy URL All deployments
ANTHROPIC_BEDROCK_BASE_URL Bedrock LLM gateway URL Bedrock + Gateway
ANTHROPIC_VERTEX_BASE_URL Vertex AI LLM gateway URL Vertex + Gateway
ANTHROPIC_FOUNDRY_BASE_URL Foundry LLM gateway URL Foundry + Gateway
ANTHROPIC_FOUNDRY_RESOURCE Azure Foundry resource name Required for Foundry
ANTHROPIC_FOUNDRY_API_KEY Foundry API key (omit to use Entra ID) Foundry
CLAUDE_CODE_SKIP_*_AUTH Skip local cloud provider authentication Gateway setups
ANTHROPIC_DEFAULT_*_MODEL Pin Opus/Sonnet/Haiku model version IDs Cloud providers
AWS_REGION AWS region Required for Bedrock
CLOUD_ML_REGION GCP region Required for Vertex
ANTHROPIC_VERTEX_PROJECT_ID GCP project ID Required for Vertex

2.3 Model Version Pinning and Security Policies

When deploying on Bedrock, Vertex AI, or Foundry, pin your model versions. Otherwise, Claude Code aliases such as sonnet resolve to the latest release—and the moment Anthropic ships a new model that your cloud account has not enabled yet, requests will fail.

1
2
3
4
# Pin model versions to prevent breakage when new models launch
export ANTHROPIC_DEFAULT_OPUS_MODEL=your-opus-model-id
export ANTHROPIC_DEFAULT_SONNET_MODEL=your-sonnet-model-id
export ANTHROPIC_DEFAULT_HAIKU_MODEL=your-haiku-model-id

Use the cloud provider’s model identifier (an Inference Profile ARN on Bedrock, or a model endpoint ID on Vertex AI), not the raw Anthropic API model name.

Enterprise Managed Permissions are exclusive to the Enterprise plan. Security teams can define allow and deny rules in the admin console—such as blocking specific shell commands or restricting file access—and push them down so local user configs cannot override them. For organizations under strict security audits, this control is critical.

MCP integration best practice: Have a central platform team configure MCP (Model Context Protocol, an open standard for connecting AI assistants to external tools) servers and commit .mcp.json into your repositories. Developers get working integrations the moment they clone the repo, with zero per-machine setup.


3. Hippo’s Field Notes

hippo: Real-world pitfalls from my own deployments:

3.1 Proxy Certificate Errors on Corporate Networks

While running Claude Code with Bedrock inside a corporate network, Node.js threw SSL certificate errors. The culprit was a corporate TLS-inspecting proxy signing traffic with an internal self-signed CA that Node.js does not trust by default.

Point Node.js at your corporate CA bundle:

1
export NODE_EXTRA_CA_CERTS=/path/to/corporate-ca-bundle.pem

Persist this variable in .bashrc or .zshrc so you don’t have to re-export it in every new terminal session.

3.2 Model Unavailable in a Bedrock Region

Outside US regions, certain Claude models may not be enabled on Bedrock. Walk through these checks to diagnose it:

  1. Run /status inside Claude Code to verify the active auth method, proxy, and endpoint URL.
  2. Enable debug logging to inspect full requests: export ANTHROPIC_LOG=debug.
  3. Check whether an inference profile exists for that model in your target region: aws bedrock list-inference-profiles --region your-region.
  4. If not, switch to a supported region (us-east-1 and us-west-2 generally have the broadest availability).

3.3 Architecture Decision Checklist

Choosing a setup boils down to three questions:

  • Do you already have cloud infrastructure? If you run on AWS, GCP, or Azure, use Bedrock, Vertex AI, or Foundry to reuse existing billing and IAM instead of opening a new vendor approval cycle.
  • Do you need a corporate proxy? Set HTTPS_PROXY if company policy requires all outbound traffic to traverse a proxy; otherwise skip the extra hop.
  • Do you need centralized governance? Add an LLM gateway when multiple teams share access and require unified rate limits and usage tracking. Small teams rarely need one.

4. FAQ

Q: How should we pick a deployment option?

A: Match it to your team size and compliance posture:

  • Small teams (under 5 people) → Claude for Teams for instant setup
  • Mid-to-large organizations needing SSO or compliance controls → Claude for Enterprise
  • Existing AWS / GCP / Azure footprint → Native cloud provider to reuse IAM and cost management
  • Centralized usage tracking and rate limiting → Layer an LLM gateway on top of your cloud provider

Q: How do I fix "on-demand throughput isn't supported"?

A: Bedrock on-demand throughput is not available for every model in every region. Two fixes work reliably:

  • Use an Inference Profile ID instead of a direct model ARN.
  • Switch to a region that supports on-demand throughput (such as us-east-1).

Q: Which domains need to be allowlisted for egress?

If your corporate network enforces an outbound allowlist, permit traffic to these domains:

Domain Purpose
api.anthropic.com Claude API endpoint (direct API setups)
statsig.anthropic.com Telemetry and feature flags
sentry.io Error reporting

If you deploy via Bedrock, Vertex AI, or Foundry, also allowlist the corresponding cloud provider’s API domains.


5. Summary

Enterprise deployment for Claude Code comes down to composing three layers: model provider (Teams / Enterprise / Bedrock / Vertex AI / Foundry), network layer (direct / corporate proxy), and application layer (direct / LLM gateway). Once you clarify your authentication, compliance, and cost-tracking requirements, selecting the right stack is straightforward.

Don’t forget to pin your model versions—it’s the easiest pitfall to hit on cloud provider deployments.


Series Navigation


Based on the official Enterprise Deployment Overview - Claude Code Docs.

Last updated: 2026-03-31