Implement the Claude apps gateway on AWS: govern model access, usage, and cost
Anthropic announced the Claude apps gateway, a self-hosted control plane for Claude Code access, cost, and policy. It leaves two gaps: spend control is API-only, and model access is baked into the container. This is the operating model that closes them without taking on an operations team: a lightweight admin console for model access, usage, and cost governance, deployed on Amazon ECS Express Mode with one CDK command. Full sample repo included.
Anthropic recently announced the Claude apps gateway: a self-hosted control plane that centralizes access, cost, and policy for Claude Code. AWS followed with a reference architecture for running it on Amazon Bedrock . It is the right architecture for adopting Claude Code across an organization, and it closes the obvious problem, per-developer credentials and settings sprawl.
It also exposes a second problem, and this is the one that decides whether an enterprise rollout actually sticks: the distance between a gateway that is deployed and a gateway a platform team can operate. Two specifics make the point.
Cost control is API-only. The gateway enforces spend caps, but you set and read them through an application programming interface (API). That is the right primitive, but it is only a primitive. To make it usable by the people actually accountable for spend, a finance partner or a platform lead, you have to stand up your own higher-level system on top: a way to see effective spend by team and person, and to change a cap without writing a script. The gateway hands you the control; it leaves you to build the cockpit.
Model access is baked into the container configuration. The allowlist that governs which Claude models a team can use lives in the gateway's config, inside the container image. Changing it is therefore a configuration-and-redeploy exercise. For something a platform team will adjust regularly, as teams onboard and as Anthropic ships new models, threading that through a container rebuild is operationally heavy and slow.
Neither is a defect. It is the line where a reference architecture ends and an operating model begins, and in my work supporting Anthropic adoption on AWS, it is exactly where enterprise teams stall.
The trap to avoid: solving governance by taking on an operations burden
The obvious response to those gaps is to build tooling around the gateway, and the obvious risk is that you sign up for a pile of new operational responsibility in the process: a cluster to run, a control-plane service to patch, another database to own. That would trade one problem for a worse one.
The design principle that matters here is the opposite: close the governance gap while adding the least operational surface possible. Everything below follows from that.
The operating model
Governance needs a surface, not just an API, but a lightweight one. Spend and model access should be managed from a small console, not a platform. It shows effective spend by organization, team, and individual, lets an admin set a cap that takes effect on the next inference request, and surfaces the live Anthropic model catalog, read directly from Amazon Bedrock, so a new model is enabled with a checkbox rather than a redeploy. Every change is attributed to the admin's own identity through an audit trail, not applied through a shared credential. Accountability that cannot be traced to a person is not accountability.

Setting a cap is a scope, an amount, and a period. It is enforced on the very next request, with no soft-warning state.

Model management stops being a container change. The console reads the live catalog from Amazon Bedrock and applies a new allowlist as a plain Amazon Elastic Container Service (Amazon ECS) parameter update, so a model is switched on for the organization in a couple of minutes with no image rebuild.

Because every change carries the admin's identity, the audit trail answers "who changed what" without a shared credential in sight.

Keep the operational footprint minimal by design. This is why the whole thing runs on Amazon ECS Express Mode rather than a cluster you operate: Express Mode provisions and manages the load balancer, scaling, and the service itself in your account, so there is no control plane for you to run. The console is deliberately lightweight, a small server-rendered application, not a platform. The gateway and the console together add governance, not a second system to keep alive.
The management surface and the data plane have opposite exposure requirements. The gateway should stay private, reachable only through the sign-in flow. The console should not inherit that constraint: gate it by identity-provider group membership and place it where an admin can reach it without a virtual private network (VPN). Forcing admins onto a VPN merely to adjust a spend cap is a common and avoidable friction.
Reachability is a first-class deliverable, not a footnote. If developers cannot connect to a private gateway, nothing else matters. A self-service VPN with split-tunnel routing, so only gateway-bound traffic is tunneled and the identity-provider redirect still resolves normally, is the difference between a gateway that demos and one that ships.
One command, not an integration project
The point of minimal operational surface is undone if standing it up is itself a project. So the entire operating model, the gateway, the console, the store, the networking, and the self-service VPN, deploys through a single AWS Cloud Development Kit (AWS CDK) command.

The reference implementation is published at github.com/aws-samples/sample-claude-apps-gateway-on-aws . One
cdk deploy --all stands up the gateway on Amazon ECS Express Mode against Amazon Bedrock, an Amazon Aurora Serverless v2 store, the identity and networking plumbing, the admin console, and the VPN, from a clean account in roughly half an hour. The prerequisites are an AWS account with Amazon Bedrock model access and one OpenID Connect application in your identity provider. The gateway container's binary is cryptographically verified (GNU Privacy Guard signature and SHA256 checksum against Anthropic's published manifest) at build time, on a temporary build instance the deploy provisions and tears down automatically, and the app uses the native CfnExpressGatewayService construct rather than a hand-rolled custom resource. For a control plane that holds an upstream credential and governs organization-wide spend, that provenance is a governance requirement, not a nicety.Why Amazon Bedrock as the upstream
The gateway supports either upstream, and the choice is a governance decision, not a technical one. Amazon Bedrock keeps inference within your AWS security boundary, under the same data-handling controls as any other Bedrock workload in your account, which is the posture most regulated enterprises need to satisfy first. Claude Platform on AWS is the alternative when a team wants Anthropic's native platform experience with AWS authentication and billing. Leading with Bedrock is the defensible default for an enterprise standardizing on one control plane.
It deploys billable resources (a NAT gateway, an Aurora Serverless v2 cluster, two Amazon ECS Express Mode services, and Amazon Bedrock inference), none of which fall under the AWS Free Tier; the AWS Pricing Calculator will give an estimate for your usage, and the repository carries the cleanup guide.
The takeaway
Adopting Claude Code across an enterprise is not a deployment problem; the gateway solves that. It is a governance problem, cost accountability, model entitlement, and secure reachability, and the trap is solving it by taking on an operations team's worth of new responsibility. The better path is to close the gap with the least operational surface that will hold: managed compute, a lightweight console, and one command to stand it all up. Teams that treat that operating model as a first-class part of the rollout, rather than something to assemble later, are the ones that move from a working gateway to organization-wide adoption.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article