gateway
The tracked changes tagged gateway, newest release first. Every sentence is an item's summary.
Goes with
Changes
Claude Code v2.1.332
-
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.
-
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.
-
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.
-
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.
-
Improved recovery for long conversations behind a proxy or gateway with a request size limit where every message and /compact failed with a 413.
Claude Code v2.1.331
-
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).
-
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.
-
[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
-
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
-
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.
-
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
-
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
-
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.
-
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.
-
Fixed the Claude apps gateway JSON logs escaping newlines and control characters in a message twice.
-
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
-
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.
-
The gateway now ignores ANTHROPIC_*_BASE_URL variables for Bedrock, Vertex and Foundry upstreams; set base_url on the upstream to use another endpoint.
-
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.
-
Claude Desktop now shows spend limit warnings behind a Claude apps gateway whose policy has no code: rules.
-
Spend limits on a busy gateway replica skip fewer checks and record spend sooner.
+3 more
-
Sign-in limit messages in Claude Code and on the /device page for the Claude apps gateway no longer name gateway settings.
-
Claude apps gateway error messages show the gateway address without any user name or password.
-
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
-
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.
-
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.
-
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.
-
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.
-
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
-
Added CLAUDE_GATEWAY_LOG_FORMAT=json to the Claude apps gateway so operational log lines are JSON with severity, time and message fields.
-
Added a Claude apps gateway boot warning for when another policy's availableModels allows a custom model id that one policy lists by name.
-
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.
-
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.
-
Fixed Claude drafting feedback on third-party gateways, where it cannot be sent.
-
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.
-
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.
-
Fixed idle background sessions started through a shell-exported LLM gateway leaving the gateway after an update.
-
Improved the Claude apps gateway's warnings about a failed upstream call so each names the upstream, not only its provider.
-
Improved the Claude apps gateway's spend limit error to read "spend limit reached ยท resets Dec 1", followed by admin.blocked_message if set.
-
Gateway: Added startup warnings for upstreams that mix AWS GovCloud with other upstreams, and for base URL variables in the gateway's environment.
-
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.
-
Gateway: Fixed Claude Desktop offering a web search tool that always failed when every upstream is Amazon Bedrock.
-
[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
-
Adds assume_role on mantle upstreams of the Claude apps gateway, for a role in another AWS account and per-developer AWS cost attribution.
-
Adds a gateway log warning when the Google access token from a federation (external_account) credentials file is about to expire.
-
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.
-
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
-
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.
-
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.
-
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.
-
Fixes the Claude apps gateway hiding Amazon Bedrock's Input is too long error, which left sessions failing every turn instead of compacting.
-
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.
Claude Code v2.1.316
-
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.
-
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.
-
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.
-
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.
-
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
-
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.
-
[VSCode] Added sign-in to a Claude apps gateway from the chat panel, with no terminal needed.
Claude Code v2.1.314
-
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.
-
Added guardrail_trace to Claude apps gateway Bedrock upstreams to log which Amazon Bedrock guardrail filter fired on a request, without the matched text.
-
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.
-
Fixed a Claude apps gateway Vertex upstream hanging for minutes when a Google token endpoint accepts connections but never responds.
-
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
-
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 -
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.
-
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
-
Defaulted gateway OAuth delivery to Authorization bearer tokens.
Claude Code v2.1.312
-
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
-
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
-
Fixed CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS being ignored in Claude apps gateway sessions.
-
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
-
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.
-
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
-
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
-
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
-
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.
-
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 -
Fixed gateway-specific model names behind a custom ANTHROPIC_BASE_URL failing near 200K tokens with a compaction error instead of sending the request.
-
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.
-
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
-
Fixed streams through a custom ANTHROPIC_BASE_URL aborting after 180 seconds without data; they now wait 300 seconds regardless of feature flag loading.
-
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
-
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.
-
Fixed a Claude apps gateway serving allowedProviders with "gateway" locking out laptops that name that gateway in user settings.
-
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).
-
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
-
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.
-
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.
-
Added forceLoginMethod "gateway" and forceLoginGatewayUrl in user settings on machines without managed settings so /login opens on the gateway.
-
Added upstream_request_id to the gateway inference audit event, carrying the upstream provider's request ID.
-
Added a request-id header to successful gateway inference responses so telemetry request_id matches the gateway audit log.
+10 more
-
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.
-
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.
-
Fixed the gateway admin spend view showing a developer's old groups and group cap after the session stopped carrying groups.
-
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.
-
Fixed the claude_code.auth OpenTelemetry login event not being emitted on gateway sign-in.
-
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.
-
Improved the gateway to log a warning every 30 seconds while its PostgreSQL database is read-only, stating what fails and how to recover.
-
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.
-
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.
-
Changed the gateway to start with a warning and serve an unknown desktop policy key rather than rejecting it.
Claude Code v2.1.293
-
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
-
Added a Deny button to the Claude apps gateway's sign-in approval page that ends the pending sign-in.
-
Fixed mods staying off for gateway users with ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN and no Anthropic account.
-
Fixed the gateway retention sweep deleting a concurrently refreshed identity row on older PostgreSQL versions.
-
Fixed the gateway failing to start when its identity provider certificate has an empty subject.
-
The gateway's error for an unparseable store.postgres_url now names the setting and describes valid content.
+5 more
-
Fixed background components sending telemetry and feature-flag requests to Anthropic behind a gateway without forced gateway login.
-
Gateway upstream failure warnings now end with the underlying cause.
-
The gateway logs a warning in the last 30 days before its identity provider certificate expires.
-
Gateway sign-in pages got brand fonts, centered layout and dark mode.
-
The gateway's minimum supported PostgreSQL version changed from 14 to 11.
Claude Code v2.1.287
-
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
-
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.
-
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
-
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.
-
Added Claude apps gateway startup warnings when a managed policy's availableModels is empty or omits the startup model without setting model or enforceAvailableModels.
-
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.
-
Added private_key_jwt certificate client authentication between the Claude apps gateway and its identity provider.
-
Fixed Claude Desktop behind a Claude apps gateway offering no 1M context option; the gateway now marks 1M-capable models automatically.
Claude Code v2.1.283
-
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.
-
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.
-
Added a mantle upstream provider to the Claude apps gateway for Amazon Bedrock's Mantle endpoint.
Claude Code v2.1.282
-
Added store.readiness_grace_seconds to the Claude apps gateway so /readyz can stay ready through a short Postgres outage.