All areas Feed Weekly digests

gateway

The tracked changes tagged gateway, newest release first. Every sentence is an item's summary.

128 items from 29 releases, 9 breaking Sources: Claude Code, Codex Last change:

Goes with

Changes

Claude Code v2.1.332

  1. breaking Breaking

    Desktop Code tab on Anthropic's API now ignores default, side-request, alias and subagent model IDs not starting with claude in user settings when a gateway address is set.

  2. breaking Breaking

    Desktop Code tab on Anthropic's API now ignores CLAUDE_CODE_AUTO_COMPACT_WINDOW under 200K in user settings when a gateway address is set; use /autocompact instead.

  3. fix

    Fixed opus failing on Bedrock, Agent Platform and Foundry behind a gateway that refuses a model; it now steps down to an older model that answers.

  4. other

    Improved the error for a proxy or gateway that cuts or damages a compressed response; the turn now ends with plain words instead of raw ZlibError text.

  5. other

    Improved recovery for long conversations behind a proxy or gateway with a request size limit where every message and /compact failed with a 413.

+1 more
  1. other

    The Claude apps gateway built-in model list now uses Sonnet 5.5 as its second model instead of Sonnet 4.5, and Claude Desktop starts on it where policy allows no Opus 4.6.

Claude Code v2.1.331

  1. feature

    Added oidc.groups_jsonpath to the Claude apps gateway to read groups from matching entries of a list of objects using a subset of JSONPath (RFC 9535).

  2. feature

    Added CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME=1 so that with oidc.use_proxy true, sign-in requests give the proxy an https IdP hostname even when NO_PROXY is set.

  3. fix

    [VSCode] Fixed the panel showing Something went wrong for a conversation in which a gateway sent a tool call with no name.

Claude Code v2.1.330

  1. other

    Subagent progress summaries in terminal sessions signed in to a Claude apps gateway are written from short notes instead of the full conversation, using far fewer tokens.

Claude Code v2.1.329

  1. breaking Breaking

    Removed the automatic retry at the limit named in a max_tokens error added in 2.1.326; gateways whose model takes fewer output tokens should set CLAUDE_CODE_MAX_OUTPUT_TOKENS to that limit.

  2. other

    Gateway start-up warning for an empty access_control.allow_cidrs is now a notice shown at every start, boxed in text logs, stating never expose the gateway to the public internet.

Claude Code v2.1.327

  1. feature

    Added x-claude-code-managed-settings-checksum to the gateway hint headers, sent where managed settings set CLAUDE_CODE_GATEWAY_HINT_HEADERS=1.

Claude Code v2.1.323

  1. fix

    Fixed sessions failing after a Claude apps gateway sign-in expired; they now continue at the next message once signed in again with /login in another terminal.

  2. fix

    Fixed auto mode running behind a gateway on a model whose gateway name contains haiku; such models other than claude-haiku-5-5 are now refused.

  3. fix

    Fixed the Claude apps gateway JSON logs escaping newlines and control characters in a message twice.

  4. other

    Improved the Claude apps gateway /v1/models endpoint to state max_input_tokens for models whose context window is certain on every upstream.

Claude Code v2.1.321

  1. breaking Breaking

    With policy_mode layered in the Claude apps gateway, managed MCP servers now add up over every matching policy, including match {}, so a gateway already on it serves more after upgrade.

  2. breaking Breaking

    The gateway now ignores ANTHROPIC_*_BASE_URL variables for Bedrock, Vertex and Foundry upstreams; set base_url on the upstream to use another endpoint.

  3. fix

    The Claude apps gateway no longer refuses to start when a desktop setting has a field newer than the gateway; it now warns and serves it.

  4. fix

    Claude Desktop now shows spend limit warnings behind a Claude apps gateway whose policy has no code: rules.

  5. performance

    Spend limits on a busy gateway replica skip fewer checks and record spend sooner.

+3 more
  1. other

    Sign-in limit messages in Claude Code and on the /device page for the Claude apps gateway no longer name gateway settings.

  2. other

    Claude apps gateway error messages show the gateway address without any user name or password.

  3. other

    The Claude apps gateway spend limit error now shows the reset time in local time, such as 'resets 4pm (America/Los_Angeles)'.

Claude Code v2.1.319

  1. breaking Breaking

    Auto mode with telemetry or feature flags off, including behind LLM gateways, no longer falls back to the built-in classifier; calls the server can't check are asked about or denied unless CLAUDE_CODE_AUTO_MODE_SERVER=0 is set.

  2. breaking Breaking

    Behind an LLM gateway, CLAUDE_CODE_AUTO_MODE_SERVER=1 is needed to turn on the server-side auto mode check even when CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS is set, and managed settings that set the latter must also set the former to 1.

  3. feature

    Added spend for today, this week and this month to /usage for developers behind a Claude apps gateway without a spend limit, when the gateway runs this version or later.

  4. feature

    Added admin.pooled_conflict_rule and admin.pooled_priority_order settings to the Claude apps gateway to set which pooled group budget pays first for a developer in several groups.

  5. feature

    Added an optional login_notice setting to the Claude apps gateway that shows an operator-defined message on the gateway's browser verification page and on Claude Code's sign-in screen.

+14 more
  1. feature

    Added CLAUDE_GATEWAY_LOG_FORMAT=json to the Claude apps gateway so operational log lines are JSON with severity, time and message fields.

  2. feature

    Added a Claude apps gateway boot warning for when another policy's availableModels allows a custom model id that one policy lists by name.

  3. feature

    Added Claude apps gateway start-up warnings for policies without desktopHome that rely on coworkTabEnabled: false or chatSessionRetentionDays, ahead of Claude Desktop's November 10 change.

  4. fix

    Fixed /status showing "Auto mode server: Enabled" when the server-side review is not reaching the session, such as behind an LLM gateway that drops it.

  5. fix

    Fixed Claude drafting feedback on third-party gateways, where it cannot be sent.

  6. fix

    Fixed a terminal with an expired Claude apps gateway sign-in sending telemetry and managed-settings requests that the gateway refused and logged as invalid_token.

  7. fix

    Fixed CLAUDE_CODE_AUTO_MODE_SERVER=1 in managed settings being ignored behind an LLM gateway when the gateway URL is set only there and server-managed settings cannot be fetched.

  8. fix

    Fixed idle background sessions started through a shell-exported LLM gateway leaving the gateway after an update.

  9. other

    Improved the Claude apps gateway's warnings about a failed upstream call so each names the upstream, not only its provider.

  10. other

    Improved the Claude apps gateway's spend limit error to read "spend limit reached ยท resets Dec 1", followed by admin.blocked_message if set.

  11. feature

    Gateway: Added startup warnings for upstreams that mix AWS GovCloud with other upstreams, and for base URL variables in the gateway's environment.

  12. feature

    Gateway: Added a start-up log warning when managed settings name an Amazon Bedrock guardrail in a header, which the gateway does not forward, and no bedrock upstream sets a guardrail.

  13. fix

    Gateway: Fixed Claude Desktop offering a web search tool that always failed when every upstream is Amazon Bedrock.

  14. other

    [VSCode] Improved the "not signed in" message behind a Claude apps gateway so it looks like an error and has a Sign in link.

Claude Code v2.1.318

  1. feature

    Adds assume_role on mantle upstreams of the Claude apps gateway, for a role in another AWS account and per-developer AWS cost attribution.

  2. feature

    Adds a gateway log warning when the Google access token from a federation (external_account) credentials file is about to expire.

  3. docs

    Improves the gateway log hints about listen.trusted_proxies to say to list only a proxy that adds the connecting address to X-Forwarded-For itself.

  4. other

    Improves the gateway warning when AWS CountTokens fails on Amazon Bedrock: it says Claude Code, not the gateway, counts after the 501, and points at IAM only when AWS denies access.

Claude Code v2.1.317

  1. feature

    Adds a cost report to the Claude apps gateway admin API at GET /v1/organizations/analytics/cost, showing past spend over a date range in total, per developer, per day or per IdP group.

  2. feature

    Adds a daily record of each developer's IdP groups on Claude apps gateways with admin set, kept for admin.identity_retention_days, which the cost report groups by.

  3. fix

    Fixes auto mode failing every turn when an LLM gateway set as the base URL answers 403 or 422 to its server-side safety check; a 403 with an apiKeyHelper is unchanged.

  4. fix

    Fixes the Claude apps gateway hiding Amazon Bedrock's Input is too long error, which left sessions failing every turn instead of compacting.

  5. other

    Improves the startup error when a required Claude apps gateway cannot be reached, pointing to the network instead of a sign-in and saying when the gateway's TLS certificate cannot be verified.

+1 more
  1. fix

    Gateway: fixes the status line and /usage showing a developer's own spend limit as 100% used after the group's pooled budget ran out.

Claude Code v2.1.316

  1. feature

    Added pooled group budgets to the Claude apps gateway: one monthly budget shared by a group's members, on top of each member's own limit, set with pooled_budget on the spend limits admin API.

  2. feature

    Added managed.policy_mode set to layered on the Claude apps gateway, so every matching policy applies, each merged over the policies listed below it, not only the first.

  3. feature

    Added guardrail.input_tagging on Claude apps gateway Bedrock upstreams, which wraps prompts in the input tags that an Amazon Bedrock guardrail's prompt attacks filter needs; all_messages_and_system also tags the system prompt.

  4. fix

    Fixed the Claude apps gateway not checking every model a request names against availableModels, deniedModels, and models; a request naming a blocked model now gets a 400 error naming the field.

  5. fix

    Fixed claude auth login refusing to run where managed settings require a Claude apps gateway; in a terminal it now shows the gateway sign-in.

+2 more
  1. fix

    Fixed CLAUDE_CODE_AUTO_MODE_SERVER=1 being ignored in sessions started by a host application (such as Claude Desktop) behind a proxy or LLM gateway with experimental betas turned off.

  2. feature

    [VSCode] Added sign-in to a Claude apps gateway from the chat panel, with no terminal needed.

Claude Code v2.1.314

  1. feature

    Added an optional groups list to Claude apps gateway upstreams so that only developers in the listed IdP groups are sent to that upstream, including on failover.

  2. feature

    Added guardrail_trace to Claude apps gateway Bedrock upstreams to log which Amazon Bedrock guardrail filter fired on a request, without the matched text.

  3. fix

    Fixed repeated refused requests behind a gateway that rejects tool search tool_reference blocks; the request is resent once without tool search and the session remembers this.

  4. fix

    Fixed a Claude apps gateway Vertex upstream hanging for minutes when a Google token endpoint accepts connections but never responds.

  5. fix

    Fixed the gateway start-up warning for a deprecated Claude Desktop key, which said the key stops being accepted after its end date even though it is still served as written.

+3 more
  1. fix

    Fixed requests failing when a gateway or cloud provider refuses a named beta header; the request is now sent again without that header.

    gatewaybeta-headers
  2. fix

    Fixed dotted model IDs behind an LLM gateway, such as claude-opus-4.8, being treated as an older model with the wrong context window, output limit, effort, thinking mode and cost.

  3. other

    Changed idle compaction to run for subscribers with telemetry off, and on Bedrock, Vertex, Foundry and LLM gateways once the one-hour prompt cache is on.

Codex 0.166.0

  1. other

    Defaulted gateway OAuth delivery to Authorization bearer tokens.

Claude Code v2.1.312

  1. feature

    Added oidc.user_id_claim to the Claude apps gateway to identify people by an id_token claim other than sub, such as Microsoft Entra ID's oid.

Claude Code v2.1.310

  1. fix

    Requests no longer fail behind some gateways and compatible servers that reject the effort-2025-11-24 beta value or mid-conversation system messages; Claude Code now retries without them.

Claude Code v2.1.307

  1. fix

    Fixed CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS being ignored in Claude apps gateway sessions.

  2. fix

    Fixed telemetry from Claude Desktop sessions behind a Claude apps gateway being rejected when OTEL_EXPORTER_OTLP_HEADERS is set.

Claude Code v2.1.304

  1. breaking Breaking

    Changed tool search to be on by default behind a custom ANTHROPIC_BASE_URL; a 400 or 422 from the gateway is retried without it.

  2. fix

    Fixed context_management "Extra inputs are not permitted" errors behind LLM gateways; Claude Code now resends the request without that field.

Claude Code v2.1.301

  1. fix

    Conversations are no longer compacted repeatedly on an unselected model when an LLM gateway responds with a different model name than the one requested.

Claude Code v2.1.300

  1. breaking Breaking

    claude gateway now stops at start, naming the key, on a desktop: policy key that Claude Desktop cannot use from a gateway, where it previously started with a warning.

Claude Code v2.1.299

  1. feature

    Added support for disabling the attribution block in Claude Desktop's Code tab by setting CLAUDE_CODE_ATTRIBUTION_HEADER=0 in the env of a Claude apps gateway code policy.

    desktopgatewayattribution
  2. other

    Added a field to the attribution block in Claude Code sessions behind a Claude apps gateway; the block can be removed with CLAUDE_CODE_ATTRIBUTION_HEADER=0.

    gatewayattribution
  3. fix

    Fixed gateway-specific model names behind a custom ANTHROPIC_BASE_URL failing near 200K tokens with a compaction error instead of sending the request.

  4. fix

    Fixed the Claude apps gateway serving models blocked by a policy's availableModelsMatch exact or deniedModels; it now answers 400 and omits them from model lists.

  5. fix

    Fixed the server-managed settings request to Anthropic carrying a third-party gateway API key when a managed settings file sets ANTHROPIC_BASE_URL.

+2 more
  1. fix

    Fixed streams through a custom ANTHROPIC_BASE_URL aborting after 180 seconds without data; they now wait 300 seconds regardless of feature flag loading.

  2. fix

    Fixed feature flag, startup, fast mode, profile and feedback requests carrying the API key for a third-party gateway; Anthropic API keys are still sent.

Claude Code v2.1.296

  1. feature

    Added a code key to the Claude apps gateway's managed.policies[] with the same settings as cli, also applied in Claude Desktop's Code tab; beside desktop, it turns on Claude Desktop's gateway mode.

  2. fix

    Fixed a Claude apps gateway serving allowedProviders with "gateway" locking out laptops that name that gateway in user settings.

  3. fix

    Fixed a saved Claude apps gateway sign-in being ignored on machines whose managed settings set forceLoginMethod to gateway without forceLoginGatewayUrl (regression in 2.1.295).

  4. other

    Improved Claude Desktop's Code tab behind a Claude apps gateway so that when a session can't start, the reason shows as a reply, including on machines not set up for the gateway's code settings.

Claude Code v2.1.295

  1. feature

    Added support for timeouts.upstream_ttfb_ms on the Claude apps gateway cloud upstreams to limit how long a stream may take to start before failover or a 502.

  2. feature

    Added an optional models list to every Claude apps gateway upstream so only listed models are sent there, including on failover, with * as a wildcard.

  3. feature

    Added forceLoginMethod "gateway" and forceLoginGatewayUrl in user settings on machines without managed settings so /login opens on the gateway.

  4. feature

    Added upstream_request_id to the gateway inference audit event, carrying the upstream provider's request ID.

  5. feature

    Added a request-id header to successful gateway inference responses so telemetry request_id matches the gateway audit log.

+10 more
  1. fix

    Fixed requests failing on a [1m] model when a gateway, Bedrock, Vertex or Foundry refuses the context-1m beta; Claude Code now resends without it.

  2. fix

    Fixed Fable models in availableModels not appearing in the /model picker for gateway sessions; the built-in row is now shown in place of a matching modelPicker row.

  3. fix

    Fixed the gateway admin spend view showing a developer's old groups and group cap after the session stopped carrying groups.

  4. fix

    Fixed CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC hiding the gateway spend limit in /usage and the status line; the request goes to the gateway the session is signed in to.

  5. fix

    Fixed the claude_code.auth OpenTelemetry login event not being emitted on gateway sign-in.

  6. performance

    Improved token counts behind the gateway on Amazon Bedrock, which now use AWS CountTokens instead of a one-token model request; bedrock:CountTokens permission is needed.

  7. other

    Improved the gateway to log a warning every 30 seconds while its PostgreSQL database is read-only, stating what fails and how to recover.

  8. other

    Improved background requests behind the gateway to use Haiku 4.5, falling back to the session's model where the gateway does not serve Haiku 4.5.

  9. other

    Improved gateway handling of models not listed under models in Bedrock regions outside the AWS US geography: it tries the model in the user's region and names the model to add on refusal.

  10. other

    Changed the gateway to start with a warning and serve an unknown desktop policy key rather than rejecting it.

Claude Code v2.1.293

  1. fix

    Fixed the Claude apps gateway refusing to start when a desktop policy sets Claude Desktop's built-in browser keys such as builtinBrowserEnabled.

Claude Code v2.1.290

  1. feature

    Added a Deny button to the Claude apps gateway's sign-in approval page that ends the pending sign-in.

  2. fix

    Fixed mods staying off for gateway users with ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN and no Anthropic account.

  3. fix

    Fixed the gateway retention sweep deleting a concurrently refreshed identity row on older PostgreSQL versions.

  4. fix

    Fixed the gateway failing to start when its identity provider certificate has an empty subject.

  5. fix

    The gateway's error for an unparseable store.postgres_url now names the setting and describes valid content.

+5 more
  1. fix

    Fixed background components sending telemetry and feature-flag requests to Anthropic behind a gateway without forced gateway login.

  2. other

    Gateway upstream failure warnings now end with the underlying cause.

  3. other

    The gateway logs a warning in the last 30 days before its identity provider certificate expires.

  4. other

    Gateway sign-in pages got brand fonts, centered layout and dark mode.

  5. other

    The gateway's minimum supported PostgreSQL version changed from 14 to 11.

Claude Code v2.1.287

  1. other

    Improved the Claude apps gateway error when Bedrock rejects a model ID to show the unavailable model and log the sent ID.

Claude Code v2.1.286

  1. fix

    Fixed the Claude apps gateway's spend meter pricing 1-hour prompt cache writes at the 5-minute rate and counting only the first model call's input tokens on streamed turns that run a server-side tool.

  2. docs

    The Claude apps gateway /protocol page now says not to reject unknown input and matches what Claude Code currently sends.

Claude Code v2.1.284

  1. feature

    Added dollar amounts for the Claude apps gateway spend limit to /usage and the status line, and added used_usd, limit_usd and period to rate_limits.spend_limit.

  2. feature

    Added Claude apps gateway startup warnings when a managed policy's availableModels is empty or omits the startup model without setting model or enforceAvailableModels.

  3. feature

    Added auth: { google: {} } for Claude apps gateway telemetry.forward_to destinations to export telemetry to Google Cloud's OTLP endpoint using the gateway's credentials.

  4. feature

    Added private_key_jwt certificate client authentication between the Claude apps gateway and its identity provider.

  5. fix

    Fixed Claude Desktop behind a Claude apps gateway offering no 1M context option; the gateway now marks 1M-capable models automatically.

+1 more
  1. fix

    Fixed the Claude apps gateway returning 431 for sign-ins with many identity provider groups; it now accepts request headers up to 256 KiB.

Claude Code v2.1.283

  1. feature

    Added x-claude-code-prompt-id to gateway hint headers, opt-in via CLAUDE_CODE_GATEWAY_HINT_HEADERS=1, so gateways can group requests serving one prompt.

  2. feature

    Added an opt-in load_test_mode block to the Claude apps gateway config that signs requests without sending them upstream and returns a canned reply.

  3. feature

    Added a mantle upstream provider to the Claude apps gateway for Amazon Bedrock's Mantle endpoint.

Claude Code v2.1.282

  1. feature

    Added store.readiness_grace_seconds to the Claude apps gateway so /readyz can stay ready through a short Postgres outage.