3.1 Deployment Surfaces & Runtime Selection

Key Takeaways

  • Cloud marketplace billing, network endpoint, inference location, data processor, retention, and runtime ownership are separate architecture choices.

  • A single-region residency requirement rules out inference profiles that can process prompts outside that region; confirm a supported in-region model and all downstream data paths.

  • Direct Messages API access gives the application control of the sequence, while the Agent SDK provides an agent harness in an application-operated process.

  • Headless Claude Code fits isolated engineering automation; structured CLI results do not substitute for security or quality gates.

  • Claude Managed Agents hosts the agent loop and session infrastructure; availability and data handling vary across surfaces, and hosted sessions are not ZDR or HIPAA eligible.

Last updated: December 2026

Deployment Surfaces & Runtime Selection

A production architect must answer two related questions: where inference and its supporting data processing happen, and who owns the execution loop. A suitable cloud account does not automatically satisfy a residency rule, and a solution with the newest model is not automatically the best design. Determine which constraints are binding before deciding.

Comparing enterprise deployment surfaces

SurfaceIdentity and procurementArchitecture consideration
Claude APIDirect Anthropic account; API credentials and workspace access controlsDirect access to Claude features; confirm the exact model and data-handling arrangement
Amazon BedrockAWS credentials and IAM; AWS billingBedrock endpoints and supported models, IAM, network paths, inference routing and audit controls
Google Cloud Vertex AI / Agent PlatformGoogle Cloud identity and billingGoogle-managed prediction endpoints offer region-dependent model support; check networking and data processing
Microsoft FoundryAzure subscription, Entra ID or supported keys; marketplace billingModel hosting and deployment type determine feature availability and processing location

Verify the exact product rather than treating all Claude offerings billed by a cloud provider as equivalent. For example, the Anthropic-operated Claude Platform on AWS is different from Amazon Bedrock. Bedrock exposes distinct runtime and mantle endpoints with different APIs and supported features. Google Cloud likewise has Google-managed and Anthropic-managed offerings; the latter uses Claude API endpoints rather than Vertex-style prediction calls, and the location parameter is global. Foundry has both hosting on Azure infrastructure and hosting on Anthropic infrastructure; available deployments differ. As of December 3, 2026 the Foundry documentation lists Global Standard and US Data Zone Standard for Azure-hosted offerings, and Global Standard for Anthropic-hosted offerings. Do not infer single-country inference from an Azure resource location.

Data processing and network constraints

  • Private connectivity: AWS interface VPC endpoints can provide a private path to Bedrock. Verify the actual endpoint, DNS, network egress and authorization policy. This controls the traffic route, not necessarily the Region where model computation occurs.
  • Processing residency: Bedrock cross-Region inference profiles can use multiple destination Regions. A call to a Frankfurt endpoint can be processed elsewhere if such a profile is used. If only Frankfurt is approved, choose a model and invocation mode actually supported in-region there, exclude unapproved routing, and confirm all other data paths (retrieval, logs, backups).
  • Encryption and audits: Key management for stored data or invocation logs is not equivalent to choosing the encryption key for the model's transient computation. CloudTrail records API activity; Bedrock model invocation logging (where supported) separately captures model inputs/outputs and is disabled by default. Enable required evidence with access, encryption and retention appropriate to its sensitivity.
  • Retention and feature eligibility: For Anthropic-operated surfaces, the applicable contract and API feature determine retention. Zero data retention (ZDR) is not a guarantee about data-processing geography; not all models and features are eligible. For example, standard Messages requests can be Legacy ZDR-eligible on eligible models and features. Anthropic-designated Covered Models (including current Fable and Mythos variants) normally require 30-day retention and are not Legacy ZDR-eligible unless expressly authorized. Eligible organizations may use them under Enterprise Frontier Safeguards ZDR (EFS ZDR, beta). Message Batches is not ZDR-eligible. Cloud-operated surfaces have their own data processing and retention terms.
  • Feature release: First-party API access often makes new capabilities available promptly; do not assume same-day parity across all surfaces or that every feature is covered under the desired data arrangement. Check the official feature matrix and region/model availability for the chosen deployment.

Runtime ownership: four approaches

Direct Messages API access

The application builds the model request and drives any client-tool loop. This is a good baseline for document extraction, retrieval-augmented Q&A, or fixed-stage workflows. State transitions, retries, access checks, validation and budgets remain application responsibilities. Model responses and network timing remain variable even if the application state machine is deterministic. If workflow stages and authorization requirements are known, extra autonomous control may provide little value.

Claude Agent SDK

The Agent SDK provides the agent loop and tool/context management that powers Claude Code, in a Python or TypeScript application whose process you operate. It supports sessions, permissions, subagents, MCP and lifecycle hooks. Client code can perform pre-call checks or inspect results using hooks, but the architecture still needs verified user identity, scoped credentials, and isolated execution and storage. Hooks control specific lifecycle points; do not treat natural-language guidance, a hook alone or a worker's context isolation as a complete security boundary. A runtime that runs in your application requires you to own operational concerns such as scaling, timeouts, per-tenant storage, and monitoring.

Headless Claude Code

For repository-centric automation, such as generating a draft code review or summarizing test results, non-interactive mode uses -p (print mode). The --output-format json option provides a machine-readable result and metadata; --json-schema requests structured output for downstream parsing. Check exit status, parse the result, validate the substantive findings, and keep required deterministic tests and human review. Configure a trusted, isolated CI runner with minimum permissions; non-interactive execution is not inherently safe. A CLI subprocess can be a legitimate integration where appropriate, but a shared CLI workspace for unrelated customers does not provide tenant isolation. Each customer's session, filesystem, credentials and tools must be isolated regardless of implementation.

Claude Managed Agents

Claude Managed Agents provides an API-accessible agent runtime with sessions, tool handling, and a managed harness, including prompt caching and compaction. It is useful for tasks that take longer than a single synchronous model request and do not justify building the complete runtime in-house. It shifts some infrastructure operation to the managed service rather than transferring business accountability. The official December 2026 documentation lists managed offerings on the Claude API, Bedrock, Claude Platform on AWS, and Anthropic-managed Google Cloud; capability and session behavior differ by surface. Hosted Managed Agents sessions are stateful and the published eligibility table does not allow HIPAA or ZDR for hosted sessions; the documented exception for self-hosted Managed Agents under Legacy ZDR does not apply to hosted sessions. This distinct self-hosted option uses customer infrastructure for its sandbox; verify data custody and supported features. Always check these requirements before using sensitive data.

Decision under binding constraints

Suppose a company must generate nightly internal supplier summaries and has no sensitive customer information in that input. It wants to reduce the burden of operating a multi-step harness. A hosted Managed Agents pilot is a plausible candidate if the required feature set, cost, execution boundaries and retention match. For an interactive invoice extraction workload with tightly prescribed stages and a strict data contract, a direct Messages API workflow using an eligible model is a more controllable starting point. For isolated repository review in CI, headless Claude Code offers programmatically consumable results. A platform needing embedded dynamic assistance but required to own execution infrastructure can evaluate the Agent SDK instead. Benchmark each against the same explicit success criteria; no choice alone guarantees the SLA.

Official references

Test Your Knowledge

A European bank on AWS must use a private network path to inference, retain required API audit evidence, and process prompts only in Frankfurt. It has verified that a suitable Claude model is available for in-region Bedrock inference there. What is the best configuration to validate?

A

Anthropic first-party API with standard workspace API keys and global load balancing

B

Use the verified in-region Bedrock invocation mode in Frankfurt, a private interface endpoint, required API audit controls, and no routing or data paths outside approved locations.

C

Amazon Bedrock with a multi-region US/EU cross-region inference profile to maximize RPM headroom

D

Google Cloud Vertex AI global endpoint routed from AWS over public HTTPS

Test Your Knowledge

A team uses automated pull-request review in GitLab CI and parses structured findings before running deterministic tests. Product engineers want to share the same CLI workspace and session among 500 concurrent customers. What should the architect recommend?

A

Use the Direct Messages API loop for GitLab CI and Claude Code headless for the customer SaaS API

B

Deploy Claude Code headless with -p for both workloads behind an NGINX load balancer

C

Use the Claude Agent SDK only for CI and disable JSON schemas so findings remain flexible

D

Use headless Claude Code in an isolated CI runner; build the customer backend with per-tenant identity, storage, execution and tool isolation using the appropriate API or SDK runtime.

Test Your Knowledge

A startup has no cloud-perimeter mandate. It wants direct access to a newly released Claude model for a fixed document extraction workflow and requires no retained prompts under a ZDR agreement. It verifies that the model and required Messages API features are eligible. Which solution is the best fit?

A

Use the Claude API with the agreed ZDR terms and verified eligible Messages API configuration.

B

Microsoft Foundry with Azure Private Link and Entra ID federation

C

Amazon Bedrock with AWS PrivateLink and CloudTrail

D

Google Cloud Vertex AI with VPC Service Controls

Test Your Knowledge

An engineering team is building a deterministic three-stage invoice parser that extracts vendor fields, validates tax IDs against a lookup service, and returns JSON within a strict 1.2-second p95 SLA. Which runtime model offers the most direct control of call sequence and tool access before latency benchmarking?

A

Claude Code interactive CLI running in a long-lived container

B

An autonomous Claude Agent SDK loop with 12 unrestricted MCP tools

C

A direct Messages API loop embedded inside an explicit application state machine

D

A multi-agent hierarchy where a planner delegates freely to three subagents

Test Your Knowledge

A team wants a provider-operated agent loop for asynchronous, low-sensitivity internal research and can accept stateful hosted sessions. It has no residency or HIPAA requirements and verifies feature availability. Which runtime best addresses the operational ownership preference?

A

Claude Managed Agents on a supported surface

B

A custom Messages API loop with application-owned state and every tool dispatch

C

A locally operated Agent SDK process whose scaling the team builds itself

D

A single CLI session shared across all users

Sections you finish are checked off in the contents.