🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

docs(docs/ai-coder/ai-gateway): document key failover for AI Gateway - #25893

Merged
ssncferreira merged 1 commit into
mainfrom
docs/ai-gateway-key-failover
Jun 1, 2026
Merged

docs(docs/ai-coder/ai-gateway): document key failover for AI Gateway#25893
ssncferreira merged 1 commit into
mainfrom
docs/ai-gateway-key-failover

Conversation

@ssncferreira

@ssncferreira ssncferreira commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Document the automatic key failover feature for AI Gateway, which allows configuring multiple centralized API keys per provider instance (OpenAI and Anthropic only).

Changes

  • docs/ai-coder/ai-gateway/providers.md: Add "Key failover" section covering supported providers, configuration via the API (max 5 keys), and failover behavior (auth errors permanently disable a key until restart/reload, exhausted pool returns 429 or 502).
  • docs/ai-coder/ai-gateway/auth.md: Add note in BYOK section clarifying that key failover is skipped when a user-supplied credential is present.

Note

Generated by Coder Agents (by @ssncferreira)

@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown

Docs preview

📖 View docs preview for docs/ai-coder/ai-gateway/auth.md

@ssncferreira
ssncferreira force-pushed the docs/ai-gateway-key-failover branch 12 times, most recently from cef8b68 to 6df9aab Compare June 1, 2026 12:01
@ssncferreira
ssncferreira marked this pull request as ready for review June 1, 2026 12:06
@ssncferreira
ssncferreira force-pushed the docs/ai-gateway-key-failover branch 2 times, most recently from 9dfe3c9 to 9e58552 Compare June 1, 2026 12:24
Comment thread docs/ai-coder/ai-gateway/setup.md Outdated

@dannykopping dannykopping left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread docs/ai-coder/ai-gateway/setup.md Outdated
@ssncferreira
ssncferreira force-pushed the docs/ai-gateway-key-failover branch 2 times, most recently from a6b060b to fc091e5 Compare June 1, 2026 14:28
Add documentation for the automatic key failover feature, which allows
configuring multiple centralized API keys per provider instance (OpenAI
and Anthropic).

Changes:
- Add 'Key failover' section to providers.md with configuration and
  failover behavior.
- Add BYOK note in auth.md clarifying that failover is skipped for
  user-supplied credentials.
@ssncferreira
ssncferreira force-pushed the docs/ai-gateway-key-failover branch from fc091e5 to f69759d Compare June 1, 2026 14:31
@ssncferreira
ssncferreira merged commit 98c2b60 into main Jun 1, 2026
29 checks passed
@ssncferreira
ssncferreira deleted the docs/ai-gateway-key-failover branch June 1, 2026 15:05
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants