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

feat: add OpenCode AI Bridge client support - #26098

Merged
dannykopping merged 1 commit into
mainfrom
feat/opencode-client-support
Jun 8, 2026
Merged

feat: add OpenCode AI Bridge client support#26098
dannykopping merged 1 commit into
mainfrom
feat/opencode-client-support

Conversation

@dannykopping

Copy link
Copy Markdown
Contributor

Adds OpenCode to AI Bridge client detection so requests with user agents like opencode/1.16.0 ai-sdk/provider-utils/4.0.23 runtime/bun/1.3.14 show up as a first-class client instead of Unknown.

This also wires the existing OpenCode frontend asset into the AIBridge UI, adds a Storybook story for the client icon, and updates the monitoring docs list of supported client values.

Coder Agents generated

This pull request was generated by Coder Agents.

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

Docs preview

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

@dannykopping dannykopping left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Self-review: ✅

@dannykopping
dannykopping marked this pull request as ready for review June 5, 2026 13:53
@dannykopping
dannykopping marked this pull request as draft June 5, 2026 14:17

@ssncferreira ssncferreira 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 👍
Edit: (Unrelated comment, regarding providers)
Now with multiple provider support, I'm wondering if we could remove the copilot provider and just use a customizable openai provider 🤔 this would require some changes:

  • Copilot is only BYOK and OpenAI also supports Centralized, so we would need a way to limit this
  • Route prefix: make /v1 optional
  • Passthrough routes: make them configurable

I think this would probably be cleaner

@dannykopping
dannykopping marked this pull request as ready for review June 5, 2026 15:38
@dannykopping

Copy link
Copy Markdown
Contributor Author

LGTM 👍 Now with multiple provider support, I'm wondering if we could do the same for copilot. We could remove the copilot provider and just use a customizable openai provider 🤔 this would require some changes:

  • Copilot is only BYOK and OpenAI also supports Centralized, so we would need a way to limit this
  • Route prefix: make /v1 optional
  • Passthrough routes: make them configurable

I think this would probably be cleaner

Not sure I follow
This is just to identify the client being used

Can you elaborate please?

@ssncferreira

Copy link
Copy Markdown
Contributor

Not sure I follow This is just to identify the client being used

Can you elaborate please?

Sorry, ignore me. My comment was about providers, not clients. I thought we were using an OpenAI provider for OpenCode, but this is just a client 🤦‍♀️

@dannykopping
dannykopping merged commit 47a8c95 into main Jun 8, 2026
66 checks passed
@dannykopping
dannykopping deleted the feat/opencode-client-support branch June 8, 2026 04:26
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants