Skip to content

docs: clarify Coder Agents AI Gateway routing#25852

Merged
ibetitsmike merged 7 commits into
mainfrom
mike/aibridge-500x
Jun 2, 2026
Merged

docs: clarify Coder Agents AI Gateway routing#25852
ibetitsmike merged 7 commits into
mainfrom
mike/aibridge-500x

Conversation

@ibetitsmike
Copy link
Copy Markdown
Collaborator

@ibetitsmike ibetitsmike commented May 29, 2026

Mux updated this PR on behalf of Mike.

Clarifies that Coder Agents route through AI Gateway automatically, while admins configure Agents providers with upstream provider or proxy endpoint/base URLs.

Moves Agents-specific setup and credential guidance into the Agents models page, removes the obsolete AI Gateway Coder Agents client page, removes Coder Agents from the AI Gateway external client list, points provider setup to Admin settings > AI, and keeps provider-specific details such as AWS Bedrock in the AI Gateway provider docs.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 29, 2026

Docs preview

📖 View docs preview for docs/ai-coder/agents/getting-started.md

Comment thread docs/ai-coder/agents/models.md Outdated
Comment thread docs/ai-coder/agents/models.md Outdated
Comment thread docs/ai-coder/agents/models.md Outdated
Comment thread docs/ai-coder/agents/models.md Outdated
Comment thread docs/ai-coder/agents/models.md Outdated
Comment thread docs/ai-coder/agents/models.md Outdated
Comment thread docs/ai-coder/ai-gateway/reference.md Outdated

- **Intercepted**: requests are intercepted, audited, and augmented - full AI Gateway functionality
- **Passthrough**: requests are proxied directly to the upstream, no auditing or augmentation takes place
- **Intercepted**: requests are intercepted, audited, and augmented. Full AI Gateway functionality applies
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.

Nit: can you revert these unrelated changes pls?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Mux responding on behalf of Mike.

Done. Reverted docs/ai-coder/ai-gateway/reference.md to origin/main for this PR, removing the unrelated punctuation and route coverage changes.

Comment thread docs/ai-coder/ai-gateway/setup.md Outdated
Comment on lines +31 to +34
Provider base URLs point to upstream providers or upstream proxies. The public
`/api/v2/aibridge/...` routes are client-facing AI Gateway URLs, not upstream
provider base URLs.

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.

Suggested change
Provider base URLs point to upstream providers or upstream proxies. The public
`/api/v2/aibridge/...` routes are client-facing AI Gateway URLs, not upstream
provider base URLs.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Mux responding on behalf of Mike.

Done. Removed the added provider base URL paragraph from docs/ai-coder/ai-gateway/setup.md. The only remaining setup.md change is the Azure OpenAI OpenAI-compatible base URL example.

@ibetitsmike ibetitsmike force-pushed the mike/aibridge-500x branch from 1bf0cc6 to fb3b090 Compare June 1, 2026 17:46
@ibetitsmike ibetitsmike marked this pull request as ready for review June 1, 2026 18:31
Copy link
Copy Markdown
Collaborator

@david-fraley david-fraley left a comment

Choose a reason for hiding this comment

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

I really only care about the manifest.json comment. approving so this isn't blocking, but what's up there?

Comment thread docs/ai-coder/agents/models.md Outdated
Comment on lines 48 to 55
@@ -47,7 +53,40 @@ status.</small>
<img src="../../images/guides/ai-agents/models-add-provider.png" alt="Screenshot of the add provider form">

<small>Adding a provider usually requires an API key. AWS Bedrock can also use
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should update screenshots at some point, but not going to worry about this for now

Comment thread docs/manifest.json
Copy link
Copy Markdown
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

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

Non-blocking comments but otherwise LGTM

Comment thread docs/ai-coder/agents/models.md Outdated
models, internal gateways, or third-party proxies like LiteLLM.

Coder Agents route model requests through AI Gateway automatically by using
the provider configuration stored in Coder. Configure the provider endpoint/base
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.

Suggested change
the provider configuration stored in Coder. Configure the provider endpoint/base
the provider configuration stored in Coder's database. Configure the provider endpoint/base

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Mux responding on behalf of Mike.

Done. Updated this sentence to say the provider configuration is stored in Coder's database.

Comment on lines +67 to +69
For the default Agents path through AI Gateway, set the endpoint/base URL to
the upstream provider or proxy endpoint. Do not set it to Coder's public AI
Gateway route, such as `https://<coder-host>/api/v2/aibridge/openai/v1`.
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.

This is duplication; let's only define this in one place ideally.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Mux responding on behalf of Mike.

Done. Removed the duplicate endpoint guidance from the intro paragraph and left the detailed guidance in the endpoint/base URL section.

Comment on lines +4 to +5
provider and model settings from the Agents dashboard. They do not use the AI
Gateway external client base URL flow.
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.

Suggested change
provider and model settings from the Agents dashboard. They do not use the AI
Gateway external client base URL flow.
provider and model settings from the Agents dashboard.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Mux responding on behalf of Mike.

Handled by deleting docs/ai-coder/ai-gateway/clients/coder-agents.md entirely. With Coder Agents removed from the AI Gateway client flow, keeping an orphan pointer page was not adding value.

## Prerequisites
For setup, configure providers and models in
[Coder Agents models and providers](../../agents/models.md). Set each provider's
endpoint/base URL to the upstream provider or proxy, not
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.

More duplication; thought this was removed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Mux responding on behalf of Mike.

Done. Deleted docs/ai-coder/ai-gateway/clients/coder-agents.md so the Agents models page is the only place that defines this behavior.

@ibetitsmike ibetitsmike enabled auto-merge (squash) June 2, 2026 14:38
@ibetitsmike ibetitsmike force-pushed the mike/aibridge-500x branch from 582434f to 51d103d Compare June 2, 2026 14:54
@ibetitsmike ibetitsmike merged commit efbaede into main Jun 2, 2026
29 checks passed
@ibetitsmike ibetitsmike deleted the mike/aibridge-500x branch June 2, 2026 14:59
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 2, 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.

3 participants