In short.
This guide helps IT and platform teams route Claude Code through a self-hosted gateway, but the organization must run the infrastructure and accept reduced feature availability. It documents centralized upstream credentials, corporate sign-in, group-based model access, managed settings and usage telemetry across several cloud providers. Its strongest fit is an organization that needs inference routed through its own cloud provider. Important constraints include private-network access, browser-based authentication, policy differences between CLI and Desktop sessions, and unavailable features such as server-side web search and Remote Control. Prices, redistribution rights and measured operational performance are not established by the page.
Researched and written by an AI model and checked by a second AI model. How it works
The scope is the complete selected documentation page at [https://code.claude.com/docs/en/claude-apps-gateway.md], including its prerequisites, examples, security notices, client-policy details and availability table. Linked pages and assets were not separately assessed. Configuration samples, startup logs and authentication responses remain documentation examples. No commands, deployment, authentication flow or inference requests were executed. Performance, resilience, actual costs, legal terms and the effectiveness of deployed controls remain unassessed.
The overview
Identity
This is Anthropic's documentation guide for Claude apps gateway, a self-hosted intermediary between Claude Code clients and model providers. The gateway is included in the claude executable and starts with claude gateway --config gateway.yaml. The selected resource is the guide, rather than a separately supplied executable or code library.
The page covers motivation, prerequisites, a Docker Compose quickstart, developer sign-in, Claude Desktop integration, policy enforcement, telemetry and feature limitations. Its original address is [https://code.claude.com/docs/en/claude-apps-gateway.md].
Assessment
The guide is useful for organizations that must or prefer to send inference through their own cloud provider. It explains both the initial authentication setup and operational details that can change deployment decisions, including session expiry, certificate trust, settings precedence and differences between CLI and Desktop clients.
The main tradeoff is operational responsibility. Centralized credentials and policy delivery require a gateway, database, identity integration, network controls and client configuration. The page supplies instructions and illustrative responses, but does not establish deployment reliability, throughput, added latency or security effectiveness through independent results.
Users
Platform engineers, IT administrators and identity administrators are the primary readers. They need to coordinate cloud permissions, corporate sign-in, private networking, database access and managed settings on developer machines. Beginners receive an ordered quickstart, while experienced operators get details about policy precedence, proxy behavior and authentication failures.
Developers use their corporate account without holding the organization's upstream API key or cloud credentials. The page says they do not need a claude.ai account or individual subscription for this connection. Remote developers can approve an SSH machine's sign-in from a laptop browser. Fully unattended CI jobs cannot complete the required browser approval.
Capabilities
The gateway forwards inference to Amazon Bedrock, Claude Platform on AWS, Google Cloud's Agent Platform, Microsoft Foundry or the Anthropic API. It translates model identifiers for each upstream and supports failover. IdP groups can select upstreams, model allowlists and managed settings. Model access is enforced by the server, rather than only by filtering the client's model picker.
Telemetry uses OpenTelemetry Protocol over HTTP, with protobuf and JSON encodings. Configured destinations receive metrics containing identity, token counts, model and latency; logs and traces are optional per destination. The page also lists per-user and per-group spend limits, but their detailed enforcement is covered on an excluded companion page.
Standard prompt caching is supported. Gateway sessions use a five-minute cache lifetime by default; a policy can request one hour only when every relevant upstream and model supports it. Claude Desktop support requires an explicit policy opt-in and separate client configuration.
Using it
Requirements
The documented baseline is Claude Code v2.1.195 or later on both gateway and developer machines. Claude Platform on AWS requires gateway v2.1.198 or later, and Desktop integration requires gateway v2.1.203 or later. The production server uses the native Linux binary; macOS is described for local development, and Windows is unsupported as a server.
Required services include an OpenID Connect identity provider, PostgreSQL 11 or later and credentials for a supported model upstream. SAML and LDAP are not directly supported. PostgreSQL 11, 12 and 13 require gateway v2.1.290 or later; the page recommends newer PostgreSQL versions because those older releases are no longer maintained. The database role needs permission to create and alter tables.
Developer laptops and sign-in browsers need HTTPS access to a gateway resolving only to accepted private addresses, with a loopback HTTP exception. An explicitly configured exception exists for organization-owned public IPv4 space used internally. Proxy configuration must also be compatible with the private-address rules; NO_PROXY, and no_proxy when present, may need the gateway hostname.
Mechanism
A developer initiates device sign-in and approves it in a browser using the corporate identity provider. The gateway holds the upstream credential and issues a short-lived bearer token to the client. PostgreSQL supports device authentication and rate-limit counters; with spend limits enabled, it also stores durable spend, audit and identity data.
The gateway rejects requests for unauthorized models and delivers the matched group's managed settings. CLI sessions apply settings at startup and refresh them hourly, although some changes require a new launch. Disabling a user in the IdP ends access within the configured session lifetime when refresh fails; the default lifetime is one hour.
The CLI pins the gateway's TLS leaf certificate for sign-in, session refresh and managed-settings retrieval. Inference requests use ordinary TLS validation without that pin, and HTTPS-proxied requests skip pin checking. A sign-in token identifies the approving developer, not the requesting program; User-Agent values do not prove that a request came from Claude Code.
The gateway says it does not log or store prompt or completion content. Optional logs and traces can include commands and file paths. Its own data plane sends nothing to Anthropic unless the Anthropic API is configured as an upstream, but the page separately points to additional CLI traffic considerations. This does not establish a blanket guarantee that all client traffic stays within the organization.
Setup
The quickstart begins by choosing a hostname, registering an OIDC web application with the matching /oauth/callback redirect URI, and provisioning PostgreSQL. Its gateway.yaml example defines listen, oidc, session, store and upstreams sections, with secrets expanded from environment variables. The Bedrock example uses the AWS default credential chain; the guide recommends workload roles over static keys.
The operator builds a container around the claude binary and runs it with PostgreSQL, or places the binary behind an existing TLS-terminating ingress. Boot exits on configuration, database, OIDC discovery or upstream-client construction failures. Successful startup does not establish working inference: Bedrock and Google Cloud instance credentials can resolve only on the first request.
The documented authentication checks fetch discovery metadata, request device authorization and complete browser approval. Client-side managed settings then supply forceLoginMethod and forceLoginGatewayUrl before /login. These login keys cannot bootstrap clients from a gateway policy that reaches them only after connection. The page also warns against placing forceLoginMethod or forceLoginOrgUUID in the gateway's managed block.
Example
An organization using Amazon Bedrock could follow the guide's example to expose an internal HTTPS gateway, authenticate staff through its OIDC provider and use an AWS workload role for inference. A developer would receive the gateway address through managed settings, run /login and approve the browser flow. This is a proposed use of the documented configuration, not an observed deployment.
The minimal configuration automatically includes the built-in model catalog. It does not demonstrate a restricted team configuration: the operator must add group policies, selected model access and telemetry destinations. The quickstart also starts with an empty access_control.allow_cidrs list, so additional configuration is needed to restrict which client addresses the gateway serves.
Assessment & evidence
Limitations
Gateway sign-in replaces the existing Teams or Enterprise sign-in and does not retrieve settings from the claude.ai admin console. Server-side web search, Remote Control, /design-sync, /design-login, features requiring feature-flag fetching such as /import, and certain first-party optimizations are unavailable. The gateway supports one OIDC issuer per instance, HTTP telemetry rather than OTLP/gRPC, and no unattended service-token authentication.
Claude Desktop policy delivery needs particular care. On machines with administrator-managed settings, embedded sessions need parentSettingsBehavior set to merge in the selected source to receive parent-delivered egress restrictions and installed-plugin marketplace restrictions. Without the egress opt-in, those sessions run without that restriction and no warning appears. Fleets using policyHelper cannot use this parent-settings merge path.
Enabling parent-settings merging also lets other launching applications supply permitted settings. The guide recommends five allowManaged*Only locks with explicit organizational allowlists, but some keys still pass the filter. Empty or absent lists have different effects: an empty locked network list blocks sandboxed outbound traffic, while locking MCP servers with no allowedMcpServers list in any admin source or in parent-supplied settings loads every server that deniedMcpServers does not block. Read-path exceptions must be paired with denied regions.
A trusted gateway can deliver settings that run commands on developer machines, making private deployment and operator trust consequential. Signed-in CLI sessions exit at startup after about ten seconds when the gateway is unreachable. The bundled server offers no logout revocation endpoint, so /logout removes the local credential without ending the server-side session. General configuration remains YAML-based and requires redeployment; the documented admin UI covers spend limits only.
Reasoning
The strongest reason to use this guide is a concrete requirement to route inference through organizational cloud infrastructure while keeping provider credentials off developer laptops. Corporate sign-in, server-enforced model access and centralized settings address that requirement directly. These documented mechanisms support a fit assessment, but do not prove regulatory compliance or complete prevention of alternative access paths.
The operational dependency is equally concrete: gateway availability affects client startup, certificate rotation triggers renewed trust prompts, and Desktop restrictions depend on correct settings precedence. Organizations should weigh those responsibilities and missing features against their cloud-routing requirement. There is no evidence here to justify claims of lower cost, faster inference or higher coding quality.
Alternatives
The page suggests Claude Enterprise when routing inference through the organization's cloud provider is unnecessary, especially for organizations wanting SCIM provisioning or Claude Code on web and mobile. The selected page does not establish a complete Enterprise comparison or pricing.
Organizations with an existing suitable LLM or API gateway are advised to keep using it. The page points to compatibility documentation but does not evaluate named alternatives. For unattended CI, it recommends direct provider authentication. Multiple OIDC issuers require separate gateway instances, while non-OIDC identity systems need an OIDC bridge.
Evidence
The source is the complete page at [https://code.claude.com/docs/en/claude-apps-gateway.md], captured at 2026-11-15T00:22:33.870Z.
This is vendor documentation. Its startup logs, OAuth responses, configuration and commands are illustrative material, not evidence of an actual deployment. Linked configuration, deployment, spend-limit, protocol and cloud-specific guides are outside the selected scope. Runtime performance, security effectiveness and end-to-end operation are not established.
Access & freshness
Costs
The page gives no gateway price, licensing fee, model rate or worked cost example. Inclusion in the claude executable and the absence of a required individual developer subscription do not establish zero cost. Actual prices and total operating cost are unknown.
A deployment requires model-provider access and infrastructure for the gateway, PostgreSQL, networking and any telemetry collection. Their charges depend on the chosen services and workload. Per-user and per-group spend limits are listed, but the selected page does not establish their accounting details, enforcement timing or protection against every possible overrun.
Rights
The selected page does not provide an open-source license or redistribution terms for the documentation, claude binary or example files. Being self-hosted and included in an executable does not itself grant redistribution rights. Commercial-use terms, applicable provider agreements and support entitlements are not established by this evidence.
Freshness
The capture timestamp establishes when this copy was obtained, rather than when the page was published or last revised. The page does not establish the latest available Claude Code release. Its version thresholds should be treated as documented requirements for particular features.
Later thresholds matter beyond the baseline: gateway login keys in user settings require client v2.1.295 or later, organization-owned public-address exceptions require v2.1.268 or later, and the described parent hook and skill keys require Claude Code v2.1.309 or TypeScript Agent SDK v0.3.309 or later. The page also warns that indefinite gateway-protocol backward compatibility is not guaranteed.
Actions
First establish whether organizational cloud routing is required and whether unavailable features or browser-only initial authentication conflict with the intended work. Confirm server and client versions, OIDC support, PostgreSQL permissions, private DNS, HTTPS access and upstream model permissions before implementing the example.
For a deployment, continue with the configuration reference [https://code.claude.com/docs/en/claude-apps-gateway-config.md], deployment guide [https://code.claude.com/docs/en/claude-apps-gateway-deploy.md] and spend-limit guide [https://code.claude.com/docs/en/claude-apps-gateway-spend-limits.md]. Their contents are not assessed here.
A pilot should establish both browser sign-in and a real inference request, then check rejected model access, selected managed-settings sources, Desktop egress restrictions, telemetry arrival, deprovisioning and certificate rotation. Review applicable terms and obtain provider and infrastructure prices before budgeting. These are recommended checks; no execution results are available.
