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

docs: document AI providers seeding mechanism & support for new types (#25855) - #25906

Merged
f0ssel merged 2 commits into
release/2.34from
backport/25855-to-2.34
Jun 1, 2026
Merged

docs: document AI providers seeding mechanism & support for new types (#25855)#25906
f0ssel merged 2 commits into
release/2.34from
backport/25855-to-2.34

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown

Cherry-pick of #25855

Original PR: #25855 — docs: document AI providers seeding mechanism & support for new types
Merge commit: f9937a8
Requested by: @dannykopping

…#25855)

Adds a new **Provider Configuration** reference page (`providers.md`) covering:

- The migration from environment-variable-based provider config to database-backed management introduced in v2.34, including the one-time seeding behavior and deprecation of `CODER_AI_GATEWAY_PROVIDER_<N>_*` and related flags
- All supported provider types (`openai`, `anthropic`, `bedrock`, `copilot`, `azure`, `google`, `openrouter`, `vercel`, `openai-compat`) with setup notes for each
- Provider lifecycle statuses (`enabled`, `disabled`, `error`) and their effect on request handling
- Reload behavior and how configuration changes apply without restarting `coderd`
- Bring Your Own Key (BYOK) and failure mode reference table

Updates **Setup** (`setup.md`) to replace the environment-variable-based provider configuration instructions with dashboard-driven steps (Add provider form, provider list, edit/disable flow), referencing the new `providers.md` page for deeper detail. Screenshots of the provider list, add, and edit forms are included.

Adds a **Provider metrics** section to **Monitoring** (`monitoring.md`) documenting the `coder_aibridged_*` and `coder_aibridgeproxyd_*` Prometheus metrics for provider status and reload timestamps, along with two suggested PromQL alert queries.

(cherry picked from commit f9937a8)
…25893)

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)

(cherry picked from commit 98c2b60)
@ssncferreira

Copy link
Copy Markdown
Contributor

@dannykopping @f0ssel Note: there was a doc PR dependency for AI Gateway, so adding the cherry-pick commit directly in this PR for simplicity.

Cherry-pick of #25893

Original PR: #25893 — docs(docs/ai-coder/ai-gateway): document key failover for AI Gateway
Merge commit: 98c2b60
Requested by: @ssncferreira

@f0ssel
f0ssel merged commit f4bf286 into release/2.34 Jun 1, 2026
25 checks passed
@f0ssel
f0ssel deleted the backport/25855-to-2.34 branch June 1, 2026 17:41
@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.

Labels

cherry-pick/v2.34 Cherry-pick PR targeting release/2.34

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants