Transition OpenCode Zen into OpenCode Console with dual authentication - #51
Merged
Merged
Conversation
- Merge the zen provider group into OpenCode Console; migrate stored Zen API keys, defaultMode values, inline gateway settings, and usage scopes. - Accept service-account API keys and Console device-code sign-in for both Console and Go, with key precedence over device-flow sessions. - Load Console key-credential catalogs from public discovery with free-only filtering; keep organization-scoped /api/config for device profiles. - Refresh live model catalogs and supplemental mirrors for new Console and Go model ids. - Update manifest, commands, diagnostics, docs, and README branding.
The org-scoped /api/config response lists every provider the Console manages, including opencode-go and BYOK entries. The Console model group serves the pay-as-you-go gateway only, so provider ids other than opencode are dropped from that group's catalog.
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
Transitions OpenCode Zen into OpenCode Console, matching upstream's consolidation of the standalone Zen gateway into the Console (provider id
opencode, two auth methods: device-code Console account + "API key (service account)"), and adds Console device-code sign-in for Go.Zen → Console
opencodezenvendor andzenmode are removed. Former Zen models now live in the OpenCode Console group, still served byhttps://opencode.ai/zen/v1(upstream retains the historical URL path).opencode.defaultModeandopencode.inlineSuggestionsGatewayaccept onlyconsole/go; persistedzenvalues are normalized toconsoleat read time.opencode.apiKeys.v1are migrated to theconsoleslot on first read (and the blob is rewritten to the new shape).zen:*) are migrated toconsole:*snapshots.Dual authentication for Console and Go
/modelsdiscovery with free-only filtering; device-code profiles keep organization-scoped/api/configdiscovery withx-org-id(never cached publicly, never falling back to public lists).Catalog refresh
/modelsendpoints (85 Console / 43 Go ids) and models.dev.jev-1.13,jev-1.13-free; Gomimo-v2-pro,mimo-v2-omni,omen-alpha(canonical models.dev entries supersede once cataloged; no guessed pricing).qwen3.8-maxis live on Console again; alias/deprecated filtering behavior unchanged.Branding and docs
apiKeyplusprofile), commands, diagnostics, README, anddocs/{setup,models,security}.mdupdated; no endpoint or protocol changes beyond mode consolidation.Validation
npm test— 150 passing (includes new migration, key-precedence, Go device-credential, gateway-normalization, and catalog-cache tests)npm run package— VSIX builds cleanlynpx changeset status— minor bump registered foropencode-bridge-copilot-chatNotes
zendisplay strings that remain intentionally: URL paths (/zen/v1) are upstream-owned, and legacy-value handling is documented in the settings descriptions.