Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.281 ·

Self-hosted gateway: Bedrock guardrails and assume_role, plus telemetry and Desktop policy options

Gateway Bedrock upstreams can now apply a Bedrock Guardrail and assume an AWS role; telemetry gains resource_attributes and policies gain serve_to_desktop

Group of 4 Use it now New Features
JSON All of v2.1.281
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
GatewayArea: what it touches
New FeaturesKind: in v2.1.281,
What probably matters to youSection of the release

What

Claude Code includes a gateway that organisations can run to route requests to model providers. An upstream is one of the providers the gateway forwards to. The gateway config gained several options.

  • Bedrock upstreams accept an optional guardrail with id and version. When set, every request to that upstream carries the X-Amzn-Bedrock-GuardrailIdentifier and X-Amzn-Bedrock-GuardrailVersion headers.
  • The guardrail must be set on all Bedrock upstreams or none. Config validation refuses a partial setup, because failover could otherwise send requests to a Bedrock upstream without the guardrail.
  • On /v1/messages, clients can no longer supply their own amazon-bedrock-* fields; such requests are rejected with a 400 error.
  • Bedrock upstreams accept assume_role with role_arn, external_id and session_name (email or sub). The gateway then calls sts:AssumeRole using access keys or the ambient AWS credential chain, and the Bedrock client uses the resulting shared credentials. An STS temporary-credentials provider was added for this.
  • assume_role cannot be combined with aws_bearer_token: the error says it needs SigV4 source credentials, which a bearer token cannot provide.
  • telemetry gains resource_attributes.
  • managed.policies gains serve_to_desktop. When a request's user-agent identifies Claude Desktop, a policy is withheld unless it sets serve_to_desktop.

Why

Admins who route Claude Code through the gateway can enforce Bedrock Guardrails centrally without clients being able to override or strip them, use cross-account AWS roles for Bedrock, and choose which policies reach Claude Desktop sessions.

Read from
Names in the bundleguardrail
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Added since A small documentation edit on How the agent loop works touched a line naming guardrail after this was published. | `"auto"` | Uses a model classifier to review actions such as shell commands and network requests, allowing or blocking each one it reviews. See [Auto mode](/docs/en/permission-modes#eliminate-prompts-with-auto-mode) for availability and … agent-sdk/agent-loop see the edit
Confirmed since Anthropic's documentation has since written up guardrail, on Claude apps gateway configuration. ##### Apply an Amazon Bedrock guardrail claude-apps-gateway-config see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up guardrail, on Claude apps gateway configuration.
Anthropic's release notes agreeAdded guardrail: {id, version} on Claude apps gateway Bedrock upstreams to apply an Amazon Bedrock guardrail to every request sent through…

See this entry in the whole of v2.1.281 →

Feedback