Learning resourcesReviewed · Anthropic

Claude apps gateway deployment and operations

This guide teaches platform and IT teams to run a Claude apps gateway for developers, but it assumes they can manage private networking, single sign-on and PostgreSQL. It explains container deployment, fleet sign-in, monitoring, upgrades and security, including failure modes that can interrupt access or weaken spending controls.

Researched 24 Nov 2026

In short.

This operational guide helps platform and IT teams centralize Claude Code access through a Claude apps gateway, but they must build, secure and maintain the service themselves. It gives concrete guidance on identity integration, private addressing, container hosting, fleet settings and troubleshooting. Its most useful details concern interactions between infrastructure and application behavior: database readiness can interrupt otherwise usable sessions, spending controls can fail open, and streaming requests can be cut off during upgrades. The page describes implementation behavior rather than measured performance; nothing was executed, and operating cost, deployment reliability and security effectiveness were not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is limited to the complete captured page at [https://code.claude.com/docs/en/claude-apps-gateway-deploy.md]. It includes identity setup, deployment, fleet rollout, operations, security, privacy notices and troubleshooting. Linked prerequisites, configuration references, installation instructions, cloud walkthroughs and contractual materials are excluded. Examples remain illustrative; no software, configuration or infrastructure was executed, and operational outcomes were not verified.

The overview

identity

Claude apps gateway deployment and operations is an Anthropic documentation page about administering the gateway, rather than a separate gateway product or downloadable implementation. Its address is [https://code.claude.com/docs/en/claude-apps-gateway-deploy.md].

The gateway is included in the native Claude Code binary. The page presents it as a stateless Linux service backed by PostgreSQL, connecting developers to configured model upstreams while providing organizational sign-in and managed settings.

assessment

The guide is useful for a team that already operates internal services and wants practical deployment and incident-response guidance. It explains consequential edge cases, including shared-IP sign-in limits, database outages, excessive concurrent requests and certificate mismatches.

It is less suitable as a beginner's self-contained installation tutorial. Complete configuration definitions, prerequisite details and cloud walkthroughs are on linked pages. Successful deployment, security and capacity are not established by the documentation alone.

users

The primary readers are platform engineers, infrastructure operators, identity administrators and security reviewers responsible for developers using Claude Code. IT teams distributing managed settings also have a direct role because gateway sign-in depends on settings delivered to developer machines.

Beginners can learn how the identity provider, gateway, database and model provider fit together. Implementing the guidance requires familiarity with DNS, TLS, OAuth, containers and database permissions. Individual developers seeking only a local assistant setup would face substantial infrastructure work.

capabilities

The page covers confidential OAuth application registration, container construction, Kubernetes and Cloud Run hosting, developer sign-in rollout, audit logs, health probes, secret rotation, database sizing and upgrades. Its troubleshooting material connects specific symptoms with likely causes and corrective settings.

It also explains how to investigate slow request starts, first-response and streaming timeouts, group-related access failures and large authentication headers. These are documented operational capabilities and remedies, not independently demonstrated outcomes.

Using it

requirements

Deployment requires a native Linux Claude Code binary, an image with matching glibc or musl dependencies, writable state storage, configuration and secrets, PostgreSQL, and a compatible OpenID Connect identity provider. The database role needs permission to create and alter the gateway's tables. Databases that merely implement the PostgreSQL protocol are explicitly unsupported.

Developers need network access to the gateway. Its hostname normally must resolve entirely to accepted private addresses. An alternative allows organization-owned public IPv4 space used internally, but one declared block must contain both the gateway and developer machines. Production access should use HTTPS.

Identity integration has provider-specific requirements. Okta can require userinfo fallback, Entra commonly supplies group identifiers rather than names, and Google group lookup requires Admin SDK integration with domain-wide delegation. The minimum PostgreSQL version and baseline Claude Code release supporting the gateway are not specified on this page.

mechanism

Developers sign in through a browser-assisted device authorization flow. The gateway exchanges authorization codes with the identity provider, using PKCE by default, and issues short-lived signed session tokens. Developers use those tokens instead of receiving raw upstream credentials.

Replicas validate bearer tokens locally using the configured JWT signing secrets. PostgreSQL coordinates device grants, sign-in rate limits and optional spending records. Refresh tokens allow silent renewal; without them, developers must repeat browser sign-in when sessions expire.

Model requests travel from the client through the gateway to its configured upstream. The page distinguishes this path from telemetry relayed to an operator's collector and from direct client traffic such as update checks and plugin marketplace downloads.

setup

The documented sequence starts with choosing an internal address and registering an OAuth application with a callback at the gateway origin followed by /oauth/callback. It then calls for downloading a pinned native binary, verifying it against the release's GPG-signed manifest and building a container with writable state storage.

The container command is claude gateway --config /etc/claude/gateway.yaml. Configuration is mounted read-only and secrets are supplied separately. Kubernetes deployments use /readyz for readiness and /healthz for liveness. Cloud Run needs at least one warm instance; its ordinary public hostname is insufficient for developer sign-in unless private resolution is arranged.

A front-end proxy needs correct trusted-proxy ranges so client IP limits and audit records work properly. Redirects on device authorization and token endpoints break authentication. Developer rollout then distributes forceLoginMethod, forceLoginGatewayUrl and parentSettingsBehavior set to merge through managed settings.

example

The page gives a concrete database connection-budget example. Six autoscaled replicas, two additional replicas during an update and five connections per replica require 40 database connections.

With a database limit of 50, three reserved connections and two held by other clients, 45 connections remain available, so the example fits. This illustrates why deployment overlap belongs in capacity planning; it is arithmetic, not a measured throughput or reliability result.

Assessment & evidence

limitations

The gateway does not itself prevent developers with separate provider credentials from connecting directly. Enforcing an exclusive route requires network controls. Blocking direct Anthropic access also affects the client's WebFetch domain safety check, so the documented workaround involves disabling that check.

There is no individual session revocation mechanism. Identity-provider deprovisioning takes effect within the session lifetime; replacing signing secrets outright invalidates all outstanding sessions. Longer session lifetimes therefore trade fewer sign-ins for slower removal of access.

During a PostgreSQL outage, existing sessions can still support inference, but default readiness behavior can remove every replica from service. Spending enforcement fails open by default. Separately, the default 256 concurrent upstream requests per replica is not an admission limit: waiting requests retain bodies in memory and can still exhaust the process.

A compromised gateway host is particularly consequential because it holds provider credentials and distributes settings capable of running shell commands. Client update checks, hostname checks and marketplace traffic have separate controls; routing inference through the gateway alone does not establish that clients send nothing elsewhere.

reasoning

The guide's practical value comes from explaining interactions between settings and infrastructure. A passing liveness probe does not establish database readiness, and readiness withdrawal can stop inference that the gateway process could otherwise serve. Likewise, adding replicas increases both request capacity and database connection demand.

It supports an informed deployment design and operating checklist. It does not establish that a particular network, identity provider, cloud environment or security configuration will work correctly, and the linked prerequisites remain necessary for a complete implementation.

alternatives

For hosting the same gateway, the page describes Kubernetes, Cloud Run and other platforms capable of running a persistent HTTP service. Cloud Run requires private client reachability and a warm instance; it also allows only about 10 seconds after termination signaling before stopping an instance, which can cut long streams.

Kubernetes and ECS expose termination settings that can allow longer draining, subject to platform limits. Lambda and Cloud Functions are explicitly unsuitable for this long-running server. Separate gateway instances are the documented option for multiple OIDC issuers. The page provides no comparative evaluation of competing gateway products.

evidence

The evidence is the complete supplied capture of Anthropic's deployment-and-operations page, captured at 2026-11-24T18:24:30.834Z. Its recorded source revision is sha256:a2a5c401b3a31c0ad41739ce80b1d84b0f90a74cc36992d6c8a2efad55306b2e.

The page supplies implementation descriptions, configuration examples and troubleshooting explanations. No commands, gateway deployment or failure scenario were executed. Performance, security effectiveness, cloud behavior and deployment success were not independently assessed. Linked references and cloud walkthroughs are outside the supplied evidence.

Access & freshness

costs

The page states that the gateway has no separate license or per-seat fee because it is included in the claude binary. Inference remains payable through the organization's existing commitment, alongside the compute running the gateway.

No currency prices or total operating-cost estimates are supplied. Database, networking, logging and administration costs are not quantified. Cloud Run's recommended minimum of one instance means its hosting plan must account for a warm instance. Total cost and any savings are unknown.

rights

The supplied page does not establish a license to copy, modify or redistribute the documentation or gateway binary. The absence of a separate gateway license fee does not establish redistribution rights or open-source status.

The page says existing data-handling agreements apply when inference uses the Anthropic API. Broader contractual entitlements and other upstream providers' terms are not established here.

freshness

The capture date identifies the snapshot, not the page's publication or last-update date. The page contains feature-specific release requirements through Claude Code v2.1.319, but it does not establish the latest available release.

Examples include readiness grace periods requiring gateway v2.1.282 or later, client first-byte deadlines requiring v2.1.307 or later, and JSON operational logs requiring gateway v2.1.319 or later. These are feature thresholds, not evidence of a recommended current version.

Pinned images receive fixes only when rebuilt and redeployed. Rollbacks also require configuration review because older binaries reject unfamiliar keys, and removing an upstream's groups restriction can unintentionally open it to all developers.

actions

Before adopting this architecture, establish who will own the gateway, database, identity integration and developer settings. Confirm that DNS and network access satisfy the address restrictions, then obtain the missing configuration and prerequisite details from the references identified by the guide.

For a planned deployment, define session lifetime and offboarding expectations, database backup and spending-enforcement behavior, connection budgets, streaming timeouts and termination grace periods. Size sign-in limits around shared NAT or VPN addresses after establishing correct client-IP forwarding.

Include audit-log handling, signing-secret rotation and binary updates in operations planning. Audit records contain developer identities, and client debug files can contain hook and MCP server output, so redact support material before posting it publicly. Validate the intended sign-in, inference and outage journeys in the target environment; their outcomes remain unknown here.

Evidence for this report

selected-page.txtselected · checked 2026-11-24