Answer: You configure multiple upstreams by listing them under `upstreams:` in gateway.yaml, giving each a distinct `name:`; the same provider can appear more than once, and the gateway tries upstreams in order. Status: Confirmed Entry: tool/claude-code/admin-and-enterprise/gateway-multiple-upstreams Revision: 4 Digest: sha256:0e6a52b8db9b1d3e (changes whenever the content changes) Timeline: Created: 2026-11-13T03:03:25Z Last changed: 2026-11-18T12:14:14Z (Minimum gateway version for streaming TTFB setting: — → v2.1.295) Last verified: 2026-11-20T12:18:33Z Next check: 2026-11-21T12:18:33Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Configuration key | upstreams | [1] | 2026-11-20 Distinct identifier | name: | [1] | 2026-11-20 Failover status codes | 5xx | [1] | 2026-11-20 Other providers max wait | one hour | [1] | 2026-11-20 Minimum gateway version for streaming TTFB setting | v2.1.295 | [1] | 2026-11-20 Sources: [1] Anthropic. "Claude apps gateway configuration". https://code.claude.com/docs/en/claude-apps-gateway-config.md Role: primary. Accessed: 2026-11-20T12:18:33Z Quote: "upstreams:" (Supports: Configuration key) Quote: "The same provider can appear more than once with a distinct `name:`." (Supports: Distinct identifier) Quote: "`5xx`, `429`, `401`, `403`, `404`, timeouts, and missing-endpoint (`501`) fail over; other `4xx` doesn't." (Supports: Failover status codes) Quote: "**Other providers**: up to one hour." (Supports: Other providers max wait) Quote: "set `timeouts.upstream_ttfb_ms` on gateway v2.1.295 or later" (Supports: Minimum gateway version for streaming TTFB setting) Published: 2026-11-20T10:36:07Z Snapshot SHA-256: c110ccb1294b9d24e010a27fafad5aebb5627347fedd99744031249eb8098d9d (captured 2026-11-17T12:23:05Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-17T12:23:04Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:18:33Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:18:33Z Last attempt: 2026-11-20T12:18:33Z Notes and limitations: Extracted automatically from a single official source (section "Multiple upstreams"). Related: https://latestn.com/tool/claude-code/admin-and-enterprise/gateway-oidc-setup How do I set up OIDC authentication for the Claude apps gateway? https://latestn.com/tool/claude-code/admin-and-enterprise/gateway-requirements What are the requirements a gateway must meet before rolling it out for Claude Code in an organization? https://latestn.com/tool/claude-code/admin-and-enterprise/gateway-telemetry-export How do I configure telemetry export in the Claude apps gateway? https://latestn.com/tool/claude-code/admin-and-enterprise/enforce-sandbox-org-wide How do I enforce a sandbox isolation policy across an organization in Claude Code? https://latestn.com/tool/claude-code/admin-and-enterprise/foundry-rbac-permissions What Azure RBAC permissions are required to use Claude Code with Microsoft Foundry? https://latestn.com/tool/claude-code/admin-and-enterprise/gateway-availability-limitations What are the availability and limitations of the Claude apps gateway for Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T12:14:14Z | changed | Minimum gateway version for streaming TTFB setting: — → v2.1.295 | [1] 2026-11-18T12:14:14Z | changed | Other providers max wait: — → one hour | [1] 2026-11-18T12:14:14Z | changed | Distinct identifier: — → name: | [1] 2026-11-18T12:14:14Z | changed | Default anthropic upstream TTFB: 120 seconds → — | [1] 2026-11-18T12:14:14Z | changed | Order behavior: The gateway tries upstreams in order. → — | [1] 2026-11-18T12:14:14Z | changed | Distinct name requirement: name: → — | [1] 2026-11-16T12:07:05Z | changed | Example upstream name: bedrock-pt → — | [1] 2026-11-16T12:07:05Z | changed | Failover status codes: `5xx`, `429`, `401`, `403`, `404`, timeouts, and missing-endpoint (`501`) → 5xx | [1] 2026-11-16T12:07:05Z | changed | Order behavior: in order → The gateway tries upstreams in order. | [1] 2026-11-16T12:07:05Z | changed | Distinct name requirement: distinct `name:` → name: | [1] 2026-11-16T12:07:05Z | changed | Configuration key: upstreams: → upstreams | [1] 2026-11-14T12:14:16Z | changed | Default anthropic upstream TTFB: — → 120 seconds | [1] 2026-11-14T12:14:16Z | changed | Order behavior: — → in order | [1] 2026-11-14T12:14:16Z | changed | Distinct name requirement: — → distinct `name:` | [1] 2026-11-14T12:14:16Z | changed | Other providers max wait: one hour → — | [1] 2026-11-14T12:14:16Z | changed | Failover status codes: 5xx → `5xx`, `429`, `401`, `403`, `404`, timeouts, and missing-endpoint (`501`) | [1] 2026-11-14T12:14:16Z | changed | Distinct identifier: name: → — | [1] 2026-11-14T12:14:16Z | changed | Configuration key: upstreams → upstreams: | [1] 2026-11-13T03:03:25Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/admin-and-enterprise/gateway-multiple-upstreams/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/gateway-multiple-upstreams POST: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/gateway-multiple-upstreams with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/gateway-multiple-upstreams?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure multiple upstreams in the Claude apps gateway.yaml file? Revision 4, last verified 2026-11-20T12:18:33Z. https://latestn.com/tool/claude-code/admin-and-enterprise/gateway-multiple-upstreams (accessed 2026-11-21T09:57:27Z). @misc{LatestN_tool_claude_code_admin_and_enterprise_gateway_multiple_upstreams_r4, title = {How do I configure multiple upstreams in the Claude apps gateway.yaml file?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/admin-and-enterprise/gateway-multiple-upstreams}}, note = {Revision 4; digest sha256:0e6a52b8db9b1d3e; last verified 2026-11-20T12:18:33Z; accessed 2026-11-21T09:57:27Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/admin-and-enterprise/gateway-multiple-upstreams