Skip to content

feat(agents): add opencode provider merge mode#263

Open
Golosay wants to merge 1 commit intocodemie-ai:mainfrom
Golosay:feat/opencode-merge-providers
Open

feat(agents): add opencode provider merge mode#263
Golosay wants to merge 1 commit intocodemie-ai:mainfrom
Golosay:feat/opencode-merge-providers

Conversation

@Golosay
Copy link
Copy Markdown

@Golosay Golosay commented Apr 25, 2026

Summary

Add --merge-providers to codemie-opencode so the launcher can merge
CodeMie's generated OpenCode provider config with the user's existing
OpenCode setup instead of replacing it outright.

This also removes the injected enabled_providers whitelist in merge
mode, which lets OpenCode keep showing authenticated native providers
such as corporate GitHub Copilot alongside CodeMie SSO models.

Changes

  • add the --merge-providers flag to codemie-opencode
  • merge CodeMie-owned OpenCode providers with the user's config without
    duplicating providers or stale CodeMie model lists
  • preserve CodeMie proxy and SSO behavior by keeping codemie-proxy
    authoritative while still allowing other providers to remain visible
  • remove the merge-mode provider whitelist so authenticated OpenCode
    providers like corporate Copilot are not filtered out
  • add unit and integration coverage for merge behavior and whitelist
    removal
  • document the new launch mode in the README

Impact

Before this change, launching with codemie-opencode replaced the
visible OpenCode providers with a CodeMie-only set. That prevented users
from switching to already-authenticated corporate Copilot models inside
OpenCode.

With codemie-opencode --merge-providers, users can launch OpenCode with
CodeMie SSO models and corporate Copilot models in the same session.
This improves usage management because teams can keep CodeMie-governed
model access available while still using approved corporate Copilot
capacity when it makes sense.

image

Checklist

  • Self-reviewed
  • Manual testing performed
  • Documentation updated (if needed)
  • No breaking changes (or clearly documented)

Add --merge-providers to codemie-opencode so CodeMie SSO models can run alongside existing OpenCode providers without breaking proxy-backed launches.

Remove the injected enabled_providers whitelist in merge mode so authenticated corporate providers such as GitHub Copilot remain visible, and cover the new behavior with tests and documentation.
@Golosay Golosay force-pushed the feat/opencode-merge-providers branch from b1d6612 to d6a24cf Compare April 25, 2026 07:26
@codemie-ai
Copy link
Copy Markdown
Owner

[AUTO_CLOSE_WARNING] ⏰ This pull request is older than 14 days and will be automatically closed in 16 more days (when it reaches 30 days old)! To maintain this PR, either convert it to Draft or complete your changes and merge.

@Golosay
Copy link
Copy Markdown
Author

Golosay commented May 11, 2026

Hello colleagues! Any decision with this PR?)

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.

3 participants