AI News
All stories
Official

Claude Code 2.1.318 adds AWS role assumption to the Claude apps gateway

Claude Code 2.1.318 lets the gateway's mantle upstreams assume a role in another AWS account and supports per-developer AWS cost attribution.

Products · · 1 min read

Claude Code 2.1.318, dated November 4, 2026, adds an assume_role option to the mantle upstreams of Anthropic's Claude apps gateway. According to the changelog, the option lets an upstream act on a role in a different AWS account. It also supports per-developer AWS cost attribution.

The entry does not say how the role is chosen, how the gateway gets credentials for it, or how spend is tied to individual developers. It also does not define a mantle upstream. Cost attribution is presented as a supported use of the option, but the entry does not show what the AWS side records or how a team would read it.

The same release adds a sign-in expiry date. Claude Code now reports the end of a stored claude.ai sign-in as loginExpiresAt in the output of claude auth status, and as credential_expires_at in claude -p JSON results. Starting 10 days before that sign-in ends, claude -p prints a one-line warning on stderr in its text output. A separate fix in the same release changes the failure message for a login that reaches its time limit. In claude -p, the message now names claude auth login and claude setup-token as the ways to recover.

On the gateway side, the release adds a log warning when the Google access token from a federation credentials file, of the external_account type, is about to expire. The changelog lists it as a gateway addition without describing how far ahead of expiry the warning fires.

What changed

Mantle upstreams in the Claude apps gateway gain an assume_role option that lets them act on a role in a different AWS account and supports per-developer AWS cost attribution.

Type: New capability · Applies to: Claude Code 2.1.318, Claude apps gateway, mantle upstreams

Why it matters

Organisations running Claude through AWS gateways can use roles in other accounts and attribute AWS costs to individual developers.

What you can do

If you run the Claude apps gateway on AWS, check whether per-developer cost attribution fits your internal chargeback process.

Original source

Where we saw it

1 source

Claude Code changelog

AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it. How it works