feat(agents): add opencode provider merge mode#263
Open
Golosay wants to merge 1 commit intocodemie-ai:mainfrom
Open
feat(agents): add opencode provider merge mode#263Golosay wants to merge 1 commit intocodemie-ai:mainfrom
Golosay wants to merge 1 commit intocodemie-ai:mainfrom
Conversation
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.
b1d6612 to
d6a24cf
Compare
TarasSpashchenko
approved these changes
Apr 30, 2026
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. |
Author
|
Hello colleagues! Any decision with this PR?) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
--merge-providerstocodemie-opencodeso the launcher can mergeCodeMie's generated OpenCode provider config with the user's existing
OpenCode setup instead of replacing it outright.
This also removes the injected
enabled_providerswhitelist in mergemode, which lets OpenCode keep showing authenticated native providers
such as corporate GitHub Copilot alongside CodeMie SSO models.
Changes
--merge-providersflag tocodemie-opencodeduplicating providers or stale CodeMie model lists
codemie-proxyauthoritative while still allowing other providers to remain visible
providers like corporate Copilot are not filtered out
removal
Impact
Before this change, launching with
codemie-opencodereplaced thevisible 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 withCodeMie 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.
Checklist