Skip to content

feat(enterprise/coderd): add /api/v2/aibridge/serve endpoint#26507

Draft
pawbana wants to merge 1 commit into
pawel/aigov-308-implement-apiv2aibridgeserve-endpoint-2from
pawel/aigov-308-implement-apiv2aibridgeserve-endpoint-3
Draft

feat(enterprise/coderd): add /api/v2/aibridge/serve endpoint#26507
pawbana wants to merge 1 commit into
pawel/aigov-308-implement-apiv2aibridgeserve-endpoint-2from
pawel/aigov-308-implement-apiv2aibridgeserve-endpoint-3

Conversation

@pawbana

@pawbana pawbana commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Add the DRPC-over-WebSocket endpoint that standalone AI Gateway replicas
connect to. The handler validates the requested API version, upgrades to
a WebSocket, sets up a yamux session, and serves the Recorder,
MCPConfigurator, and Authorizer services, mirroring the embedded
CreateInMemoryAIBridgeServer and the external provisioner daemon serve
transport. While a session is active it records last_used_at for the
authenticating gateway key so operators can safely rotate keys.

The route is registered outside the /aibridge catch-all so its overload
middleware does not apply, and is gated by FeatureAIBridge plus gateway
key authentication. A shared aibridgedserver.Register helper now backs
both the embedded and standalone service registration.

Part of AIGOV-308.

Generated with Coder Agents.
@linear-code

linear-code Bot commented Jun 18, 2026

Copy link
Copy Markdown

AIGOV-308

@github-actions

Copy link
Copy Markdown

Docs preview

📖 View docs preview for docs/reference/api/enterprise.md

pawbana commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant